Skip to content

Commit 15b3ffb

Browse files
author
AWS
committed
Amazon Timestream Query Update: This change allows users to update and describe account settings associated with their accounts.
1 parent d39b95b commit 15b3ffb

File tree

2 files changed

+101
-2
lines changed

2 files changed

+101
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Timestream Query",
4+
"contributor": "",
5+
"description": "This change allows users to update and describe account settings associated with their accounts."
6+
}

services/timestreamquery/src/main/resources/codegen-resources/service-2.json

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"endpointPrefix":"query.timestream",
66
"jsonVersion":"1.0",
77
"protocol":"json",
8+
"protocols":["json"],
89
"serviceAbbreviation":"Timestream Query",
910
"serviceFullName":"Amazon Timestream Query",
1011
"serviceId":"Timestream Query",
@@ -73,6 +74,23 @@
7374
"endpointdiscovery":{"required":true},
7475
"idempotent":true
7576
},
77+
"DescribeAccountSettings":{
78+
"name":"DescribeAccountSettings",
79+
"http":{
80+
"method":"POST",
81+
"requestUri":"/"
82+
},
83+
"input":{"shape":"DescribeAccountSettingsRequest"},
84+
"output":{"shape":"DescribeAccountSettingsResponse"},
85+
"errors":[
86+
{"shape":"AccessDeniedException"},
87+
{"shape":"InternalServerException"},
88+
{"shape":"ThrottlingException"},
89+
{"shape":"InvalidEndpointException"}
90+
],
91+
"documentation":"<p>Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload.</p> <p>You're charged only for the duration of compute units used for your workloads.</p>",
92+
"endpointdiscovery":{"required":true}
93+
},
7694
"DescribeEndpoints":{
7795
"name":"DescribeEndpoints",
7896
"http":{
@@ -237,6 +255,25 @@
237255
"documentation":"<p>Removes the association of tags from a Timestream query resource.</p>",
238256
"endpointdiscovery":{"required":true}
239257
},
258+
"UpdateAccountSettings":{
259+
"name":"UpdateAccountSettings",
260+
"http":{
261+
"method":"POST",
262+
"requestUri":"/"
263+
},
264+
"input":{"shape":"UpdateAccountSettingsRequest"},
265+
"output":{"shape":"UpdateAccountSettingsResponse"},
266+
"errors":[
267+
{"shape":"AccessDeniedException"},
268+
{"shape":"InternalServerException"},
269+
{"shape":"ThrottlingException"},
270+
{"shape":"ValidationException"},
271+
{"shape":"InvalidEndpointException"}
272+
],
273+
"documentation":"<p>Transitions your account to use TCUs for query pricing and modifies the maximum query compute units that you've configured. If you reduce the value of <code>MaxQueryTCU</code> to a desired configuration, the new value can take up to 24 hours to be effective.</p> <note> <p>After you've transitioned your account to use TCUs for query pricing, you can't transition to using bytes scanned for query pricing.</p> </note>",
274+
"endpointdiscovery":{"required":true},
275+
"idempotent":true
276+
},
240277
"UpdateScheduledQuery":{
241278
"name":"UpdateScheduledQuery",
242279
"http":{
@@ -433,6 +470,24 @@
433470
}
434471
}
435472
},
473+
"DescribeAccountSettingsRequest":{
474+
"type":"structure",
475+
"members":{
476+
}
477+
},
478+
"DescribeAccountSettingsResponse":{
479+
"type":"structure",
480+
"members":{
481+
"MaxQueryTCU":{
482+
"shape":"MaxQueryCapacity",
483+
"documentation":"<p>The maximum number of <a href=\"https://docs.aws.amazon.com/timestream/latest/developerguide/tcu.html\">Timestream compute units</a> (TCUs) the service will use at any point in time to serve your queries.</p>"
484+
},
485+
"QueryPricingModel":{
486+
"shape":"QueryPricingModel",
487+
"documentation":"<p>The pricing model for queries in your account.</p>"
488+
}
489+
}
490+
},
436491
"DescribeEndpointsRequest":{
437492
"type":"structure",
438493
"members":{
@@ -576,6 +631,10 @@
576631
"shape":"Long",
577632
"documentation":"<p>Bytes metered for a single scheduled query run.</p>"
578633
},
634+
"CumulativeBytesScanned":{
635+
"shape":"Long",
636+
"documentation":"<p>Bytes scanned for a single scheduled query run.</p>"
637+
},
579638
"RecordsIngested":{
580639
"shape":"Long",
581640
"documentation":"<p>The number of records ingested for a single scheduled query run. </p>"
@@ -592,7 +651,7 @@
592651
"members":{
593652
"Message":{"shape":"ErrorMessage"}
594653
},
595-
"documentation":"<p> Timestream was unable to fully process this request because of an internal server error. </p>",
654+
"documentation":"<p> The service was unable to fully process this request because of an internal server error. </p>",
596655
"exception":true
597656
},
598657
"InvalidEndpointException":{
@@ -663,6 +722,7 @@
663722
}
664723
},
665724
"Long":{"type":"long"},
725+
"MaxQueryCapacity":{"type":"integer"},
666726
"MaxQueryResults":{
667727
"type":"integer",
668728
"box":true,
@@ -856,6 +916,13 @@
856916
"min":1,
857917
"pattern":"[a-zA-Z0-9]+"
858918
},
919+
"QueryPricingModel":{
920+
"type":"string",
921+
"enum":[
922+
"BYTES_SCANNED",
923+
"COMPUTE_UNITS"
924+
]
925+
},
859926
"QueryRequest":{
860927
"type":"structure",
861928
"required":["QueryString"],
@@ -1186,7 +1253,7 @@
11861253
"type":"string",
11871254
"max":64,
11881255
"min":1,
1189-
"pattern":"[a-zA-Z0-9_.-]+"
1256+
"pattern":"[a-zA-Z0-9|!\\-_*'\\(\\)]([a-zA-Z0-9]|[!\\-_*'\\(\\)\\/.])+"
11901257
},
11911258
"ScheduledQueryRunStatus":{
11921259
"type":"string",
@@ -1505,6 +1572,32 @@
15051572
"members":{
15061573
}
15071574
},
1575+
"UpdateAccountSettingsRequest":{
1576+
"type":"structure",
1577+
"members":{
1578+
"MaxQueryTCU":{
1579+
"shape":"MaxQueryCapacity",
1580+
"documentation":"<p>The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on.</p> <p>The maximum value supported for <code>MaxQueryTCU</code> is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see <a href=\"https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.default\">Default quotas</a>.</p>"
1581+
},
1582+
"QueryPricingModel":{
1583+
"shape":"QueryPricingModel",
1584+
"documentation":"<p>The pricing model for queries in an account.</p>"
1585+
}
1586+
}
1587+
},
1588+
"UpdateAccountSettingsResponse":{
1589+
"type":"structure",
1590+
"members":{
1591+
"MaxQueryTCU":{
1592+
"shape":"MaxQueryCapacity",
1593+
"documentation":"<p>The configured maximum number of compute units the service will use at any point in time to serve your queries.</p>"
1594+
},
1595+
"QueryPricingModel":{
1596+
"shape":"QueryPricingModel",
1597+
"documentation":"<p>The pricing model for an account.</p>"
1598+
}
1599+
}
1600+
},
15081601
"UpdateScheduledQueryRequest":{
15091602
"type":"structure",
15101603
"required":[

0 commit comments

Comments
 (0)