aws-sdk-timestreamquery 1.30.0 → 1.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fcba434e037fa8c14d47ccf0548d821cdb9ee9eb5993b5abf89fac8d2dc47e2
4
- data.tar.gz: 2230fc43474963d9d7d1664a4f9c135e4282d510eae59b00f80c17f001ecf358
3
+ metadata.gz: 472a1543a3ecfe96e63bf7c7c441199e20ecd07bb0d080a78a4c6f99e44c9d49
4
+ data.tar.gz: fa9e3035188079039e89f03b4b05e021a8b041afbde91f12884b24ec8678e85c
5
5
  SHA512:
6
- metadata.gz: a5d376af62d00588c2e81993f4f7e7d78c0b627d05eb66c3669e9c22b37e464a81093fd3e54214bee34862e811a2f7fc841be516e260a75f43fa09eec1b981d6
7
- data.tar.gz: 3010ae9c34fe7ff795c626ceaa9df72e3f077f847ae3519694c15cfc8b1f96782747dd6a9d6e3d74b272cad0e6ddfbe94a650b248d74c64fb8679a9a72c72488
6
+ metadata.gz: 06b70ee06342655df755fd5491c639b679c3f21da30865a5d264df7b2e4698f8ed88f8f8263a614e35638f5c8507effe730be480d18a3fdfb16b36b0cecf0210
7
+ data.tar.gz: 76119b8f6a90d4103124c2ed817aa505c10e58854f470ddb1d25f7f842d4cbc2dd6499268d35e9895608b717c816b39c10f88a9557b451e1647970a254e7da30
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.32.0 (2024-05-13)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.31.0 (2024-04-29)
10
+ ------------------
11
+
12
+ * Feature - This change allows users to update and describe account settings associated with their accounts.
13
+
4
14
  1.30.0 (2024-04-25)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.30.0
1
+ 1.32.0
@@ -301,8 +301,9 @@ module Aws::TimestreamQuery
301
301
  #
302
302
  # @option options [String] :sdk_ua_app_id
303
303
  # A unique and opaque application ID that is appended to the
304
- # User-Agent header as app/<sdk_ua_app_id>. It should have a
305
- # maximum length of 50.
304
+ # User-Agent header as app/sdk_ua_app_id. It should have a
305
+ # maximum length of 50. This variable is sourced from environment
306
+ # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
306
307
  #
307
308
  # @option options [String] :secret_access_key
308
309
  #
@@ -638,6 +639,32 @@ module Aws::TimestreamQuery
638
639
  req.send_request(options)
639
640
  end
640
641
 
642
+ # Describes the settings for your account that include the query pricing
643
+ # model and the configured maximum TCUs the service can use for your
644
+ # query workload.
645
+ #
646
+ # You're charged only for the duration of compute units used for your
647
+ # workloads.
648
+ #
649
+ # @return [Types::DescribeAccountSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
650
+ #
651
+ # * {Types::DescribeAccountSettingsResponse#max_query_tcu #max_query_tcu} => Integer
652
+ # * {Types::DescribeAccountSettingsResponse#query_pricing_model #query_pricing_model} => String
653
+ #
654
+ # @example Response structure
655
+ #
656
+ # resp.max_query_tcu #=> Integer
657
+ # resp.query_pricing_model #=> String, one of "BYTES_SCANNED", "COMPUTE_UNITS"
658
+ #
659
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeAccountSettings AWS API Documentation
660
+ #
661
+ # @overload describe_account_settings(params = {})
662
+ # @param [Hash] params ({})
663
+ def describe_account_settings(params = {}, options = {})
664
+ req = build_request(:describe_account_settings, params)
665
+ req.send_request(options)
666
+ end
667
+
641
668
  # DescribeEndpoints returns a list of available endpoints to make
642
669
  # Timestream API calls against. This API is available through both Write
643
670
  # and Query.
@@ -740,6 +767,7 @@ module Aws::TimestreamQuery
740
767
  # resp.scheduled_query.last_run_summary.execution_stats.execution_time_in_millis #=> Integer
741
768
  # resp.scheduled_query.last_run_summary.execution_stats.data_writes #=> Integer
742
769
  # resp.scheduled_query.last_run_summary.execution_stats.bytes_metered #=> Integer
770
+ # resp.scheduled_query.last_run_summary.execution_stats.cumulative_bytes_scanned #=> Integer
743
771
  # resp.scheduled_query.last_run_summary.execution_stats.records_ingested #=> Integer
744
772
  # resp.scheduled_query.last_run_summary.execution_stats.query_result_rows #=> Integer
745
773
  # resp.scheduled_query.last_run_summary.error_report_location.s3_report_location.bucket_name #=> String
@@ -752,6 +780,7 @@ module Aws::TimestreamQuery
752
780
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.execution_time_in_millis #=> Integer
753
781
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.data_writes #=> Integer
754
782
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.bytes_metered #=> Integer
783
+ # resp.scheduled_query.recently_failed_runs[0].execution_stats.cumulative_bytes_scanned #=> Integer
755
784
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.records_ingested #=> Integer
756
785
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.query_result_rows #=> Integer
757
786
  # resp.scheduled_query.recently_failed_runs[0].error_report_location.s3_report_location.bucket_name #=> String
@@ -1182,6 +1211,60 @@ module Aws::TimestreamQuery
1182
1211
  req.send_request(options)
1183
1212
  end
1184
1213
 
1214
+ # Transitions your account to use TCUs for query pricing and modifies
1215
+ # the maximum query compute units that you've configured. If you reduce
1216
+ # the value of `MaxQueryTCU` to a desired configuration, the new value
1217
+ # can take up to 24 hours to be effective.
1218
+ #
1219
+ # <note markdown="1"> After you've transitioned your account to use TCUs for query pricing,
1220
+ # you can't transition to using bytes scanned for query pricing.
1221
+ #
1222
+ # </note>
1223
+ #
1224
+ # @option params [Integer] :max_query_tcu
1225
+ # The maximum number of compute units the service will use at any point
1226
+ # in time to serve your queries. To run queries, you must set a minimum
1227
+ # capacity of 4 TCU. You can set the maximum number of TCU in multiples
1228
+ # of 4, for example, 4, 8, 16, 32, and so on.
1229
+ #
1230
+ # The maximum value supported for `MaxQueryTCU` is 1000. To request an
1231
+ # increase to this soft limit, contact Amazon Web Services Support. For
1232
+ # information about the default quota for maxQueryTCU, see [Default
1233
+ # quotas][1].
1234
+ #
1235
+ #
1236
+ #
1237
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.default
1238
+ #
1239
+ # @option params [String] :query_pricing_model
1240
+ # The pricing model for queries in an account.
1241
+ #
1242
+ # @return [Types::UpdateAccountSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1243
+ #
1244
+ # * {Types::UpdateAccountSettingsResponse#max_query_tcu #max_query_tcu} => Integer
1245
+ # * {Types::UpdateAccountSettingsResponse#query_pricing_model #query_pricing_model} => String
1246
+ #
1247
+ # @example Request syntax with placeholder values
1248
+ #
1249
+ # resp = client.update_account_settings({
1250
+ # max_query_tcu: 1,
1251
+ # query_pricing_model: "BYTES_SCANNED", # accepts BYTES_SCANNED, COMPUTE_UNITS
1252
+ # })
1253
+ #
1254
+ # @example Response structure
1255
+ #
1256
+ # resp.max_query_tcu #=> Integer
1257
+ # resp.query_pricing_model #=> String, one of "BYTES_SCANNED", "COMPUTE_UNITS"
1258
+ #
1259
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UpdateAccountSettings AWS API Documentation
1260
+ #
1261
+ # @overload update_account_settings(params = {})
1262
+ # @param [Hash] params ({})
1263
+ def update_account_settings(params = {}, options = {})
1264
+ req = build_request(:update_account_settings, params)
1265
+ req.send_request(options)
1266
+ end
1267
+
1185
1268
  # Update a scheduled query.
1186
1269
  #
1187
1270
  # @option params [required, String] :scheduled_query_arn
@@ -1221,7 +1304,7 @@ module Aws::TimestreamQuery
1221
1304
  params: params,
1222
1305
  config: config)
1223
1306
  context[:gem_name] = 'aws-sdk-timestreamquery'
1224
- context[:gem_version] = '1.30.0'
1307
+ context[:gem_version] = '1.32.0'
1225
1308
  Seahorse::Client::Request.new(handlers, context)
1226
1309
  end
1227
1310
 
@@ -27,6 +27,8 @@ module Aws::TimestreamQuery
27
27
  Datum = Shapes::StructureShape.new(name: 'Datum')
28
28
  DatumList = Shapes::ListShape.new(name: 'DatumList')
29
29
  DeleteScheduledQueryRequest = Shapes::StructureShape.new(name: 'DeleteScheduledQueryRequest')
30
+ DescribeAccountSettingsRequest = Shapes::StructureShape.new(name: 'DescribeAccountSettingsRequest')
31
+ DescribeAccountSettingsResponse = Shapes::StructureShape.new(name: 'DescribeAccountSettingsResponse')
30
32
  DescribeEndpointsRequest = Shapes::StructureShape.new(name: 'DescribeEndpointsRequest')
31
33
  DescribeEndpointsResponse = Shapes::StructureShape.new(name: 'DescribeEndpointsResponse')
32
34
  DescribeScheduledQueryRequest = Shapes::StructureShape.new(name: 'DescribeScheduledQueryRequest')
@@ -49,6 +51,7 @@ module Aws::TimestreamQuery
49
51
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
50
52
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
51
53
  Long = Shapes::IntegerShape.new(name: 'Long')
54
+ MaxQueryCapacity = Shapes::IntegerShape.new(name: 'MaxQueryCapacity')
52
55
  MaxQueryResults = Shapes::IntegerShape.new(name: 'MaxQueryResults')
53
56
  MaxScheduledQueriesResults = Shapes::IntegerShape.new(name: 'MaxScheduledQueriesResults')
54
57
  MaxTagsForResourceResult = Shapes::IntegerShape.new(name: 'MaxTagsForResourceResult')
@@ -69,6 +72,7 @@ module Aws::TimestreamQuery
69
72
  PrepareQueryResponse = Shapes::StructureShape.new(name: 'PrepareQueryResponse')
70
73
  QueryExecutionException = Shapes::StructureShape.new(name: 'QueryExecutionException')
71
74
  QueryId = Shapes::StringShape.new(name: 'QueryId')
75
+ QueryPricingModel = Shapes::StringShape.new(name: 'QueryPricingModel')
72
76
  QueryRequest = Shapes::StructureShape.new(name: 'QueryRequest')
73
77
  QueryResponse = Shapes::StructureShape.new(name: 'QueryResponse')
74
78
  QueryStatus = Shapes::StructureShape.new(name: 'QueryStatus')
@@ -123,6 +127,8 @@ module Aws::TimestreamQuery
123
127
  Type = Shapes::StructureShape.new(name: 'Type')
124
128
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
125
129
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
130
+ UpdateAccountSettingsRequest = Shapes::StructureShape.new(name: 'UpdateAccountSettingsRequest')
131
+ UpdateAccountSettingsResponse = Shapes::StructureShape.new(name: 'UpdateAccountSettingsResponse')
126
132
  UpdateScheduledQueryRequest = Shapes::StructureShape.new(name: 'UpdateScheduledQueryRequest')
127
133
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
128
134
 
@@ -171,6 +177,12 @@ module Aws::TimestreamQuery
171
177
  DeleteScheduledQueryRequest.add_member(:scheduled_query_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ScheduledQueryArn"))
172
178
  DeleteScheduledQueryRequest.struct_class = Types::DeleteScheduledQueryRequest
173
179
 
180
+ DescribeAccountSettingsRequest.struct_class = Types::DescribeAccountSettingsRequest
181
+
182
+ DescribeAccountSettingsResponse.add_member(:max_query_tcu, Shapes::ShapeRef.new(shape: MaxQueryCapacity, location_name: "MaxQueryTCU"))
183
+ DescribeAccountSettingsResponse.add_member(:query_pricing_model, Shapes::ShapeRef.new(shape: QueryPricingModel, location_name: "QueryPricingModel"))
184
+ DescribeAccountSettingsResponse.struct_class = Types::DescribeAccountSettingsResponse
185
+
174
186
  DescribeEndpointsRequest.struct_class = Types::DescribeEndpointsRequest
175
187
 
176
188
  DescribeEndpointsResponse.add_member(:endpoints, Shapes::ShapeRef.new(shape: Endpoints, required: true, location_name: "Endpoints"))
@@ -208,6 +220,7 @@ module Aws::TimestreamQuery
208
220
  ExecutionStats.add_member(:execution_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "ExecutionTimeInMillis"))
209
221
  ExecutionStats.add_member(:data_writes, Shapes::ShapeRef.new(shape: Long, location_name: "DataWrites"))
210
222
  ExecutionStats.add_member(:bytes_metered, Shapes::ShapeRef.new(shape: Long, location_name: "BytesMetered"))
223
+ ExecutionStats.add_member(:cumulative_bytes_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "CumulativeBytesScanned"))
211
224
  ExecutionStats.add_member(:records_ingested, Shapes::ShapeRef.new(shape: Long, location_name: "RecordsIngested"))
212
225
  ExecutionStats.add_member(:query_result_rows, Shapes::ShapeRef.new(shape: Long, location_name: "QueryResultRows"))
213
226
  ExecutionStats.struct_class = Types::ExecutionStats
@@ -424,6 +437,14 @@ module Aws::TimestreamQuery
424
437
 
425
438
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
426
439
 
440
+ UpdateAccountSettingsRequest.add_member(:max_query_tcu, Shapes::ShapeRef.new(shape: MaxQueryCapacity, location_name: "MaxQueryTCU"))
441
+ UpdateAccountSettingsRequest.add_member(:query_pricing_model, Shapes::ShapeRef.new(shape: QueryPricingModel, location_name: "QueryPricingModel"))
442
+ UpdateAccountSettingsRequest.struct_class = Types::UpdateAccountSettingsRequest
443
+
444
+ UpdateAccountSettingsResponse.add_member(:max_query_tcu, Shapes::ShapeRef.new(shape: MaxQueryCapacity, location_name: "MaxQueryTCU"))
445
+ UpdateAccountSettingsResponse.add_member(:query_pricing_model, Shapes::ShapeRef.new(shape: QueryPricingModel, location_name: "QueryPricingModel"))
446
+ UpdateAccountSettingsResponse.struct_class = Types::UpdateAccountSettingsResponse
447
+
427
448
  UpdateScheduledQueryRequest.add_member(:scheduled_query_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ScheduledQueryArn"))
428
449
  UpdateScheduledQueryRequest.add_member(:state, Shapes::ShapeRef.new(shape: ScheduledQueryState, required: true, location_name: "State"))
429
450
  UpdateScheduledQueryRequest.struct_class = Types::UpdateScheduledQueryRequest
@@ -442,6 +463,7 @@ module Aws::TimestreamQuery
442
463
  "endpointPrefix" => "query.timestream",
443
464
  "jsonVersion" => "1.0",
444
465
  "protocol" => "json",
466
+ "protocols" => ["json"],
445
467
  "serviceAbbreviation" => "Timestream Query",
446
468
  "serviceFullName" => "Amazon Timestream Query",
447
469
  "serviceId" => "Timestream Query",
@@ -504,6 +526,21 @@ module Aws::TimestreamQuery
504
526
  o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
505
527
  end)
506
528
 
529
+ api.add_operation(:describe_account_settings, Seahorse::Model::Operation.new.tap do |o|
530
+ o.name = "DescribeAccountSettings"
531
+ o.http_method = "POST"
532
+ o.http_request_uri = "/"
533
+ o.endpoint_discovery = {
534
+ "required" => true,
535
+ }
536
+ o.input = Shapes::ShapeRef.new(shape: DescribeAccountSettingsRequest)
537
+ o.output = Shapes::ShapeRef.new(shape: DescribeAccountSettingsResponse)
538
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
539
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
540
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
541
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
542
+ end)
543
+
507
544
  api.add_operation(:describe_endpoints, Seahorse::Model::Operation.new.tap do |o|
508
545
  o.name = "DescribeEndpoints"
509
546
  o.http_method = "POST"
@@ -664,6 +701,22 @@ module Aws::TimestreamQuery
664
701
  o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
665
702
  end)
666
703
 
704
+ api.add_operation(:update_account_settings, Seahorse::Model::Operation.new.tap do |o|
705
+ o.name = "UpdateAccountSettings"
706
+ o.http_method = "POST"
707
+ o.http_request_uri = "/"
708
+ o.endpoint_discovery = {
709
+ "required" => true,
710
+ }
711
+ o.input = Shapes::ShapeRef.new(shape: UpdateAccountSettingsRequest)
712
+ o.output = Shapes::ShapeRef.new(shape: UpdateAccountSettingsResponse)
713
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
714
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
715
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
716
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
717
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
718
+ end)
719
+
667
720
  api.add_operation(:update_scheduled_query, Seahorse::Model::Operation.new.tap do |o|
668
721
  o.name = "UpdateScheduledQuery"
669
722
  o.http_method = "POST"
@@ -54,6 +54,20 @@ module Aws::TimestreamQuery
54
54
  end
55
55
  end
56
56
 
57
+ class DescribeAccountSettings
58
+ def self.build(context)
59
+ unless context.config.regional_endpoint
60
+ endpoint = context.config.endpoint.to_s
61
+ end
62
+ Aws::TimestreamQuery::EndpointParameters.new(
63
+ region: context.config.region,
64
+ use_dual_stack: context.config.use_dualstack_endpoint,
65
+ use_fips: context.config.use_fips_endpoint,
66
+ endpoint: endpoint,
67
+ )
68
+ end
69
+ end
70
+
57
71
  class DescribeEndpoints
58
72
  def self.build(context)
59
73
  unless context.config.regional_endpoint
@@ -180,6 +194,20 @@ module Aws::TimestreamQuery
180
194
  end
181
195
  end
182
196
 
197
+ class UpdateAccountSettings
198
+ def self.build(context)
199
+ unless context.config.regional_endpoint
200
+ endpoint = context.config.endpoint.to_s
201
+ end
202
+ Aws::TimestreamQuery::EndpointParameters.new(
203
+ region: context.config.region,
204
+ use_dual_stack: context.config.use_dualstack_endpoint,
205
+ use_fips: context.config.use_fips_endpoint,
206
+ endpoint: endpoint,
207
+ )
208
+ end
209
+ end
210
+
183
211
  class UpdateScheduledQuery
184
212
  def self.build(context)
185
213
  unless context.config.regional_endpoint
@@ -64,6 +64,8 @@ module Aws::TimestreamQuery
64
64
  Aws::TimestreamQuery::Endpoints::CreateScheduledQuery.build(context)
65
65
  when :delete_scheduled_query
66
66
  Aws::TimestreamQuery::Endpoints::DeleteScheduledQuery.build(context)
67
+ when :describe_account_settings
68
+ Aws::TimestreamQuery::Endpoints::DescribeAccountSettings.build(context)
67
69
  when :describe_endpoints
68
70
  Aws::TimestreamQuery::Endpoints::DescribeEndpoints.build(context)
69
71
  when :describe_scheduled_query
@@ -82,6 +84,8 @@ module Aws::TimestreamQuery
82
84
  Aws::TimestreamQuery::Endpoints::TagResource.build(context)
83
85
  when :untag_resource
84
86
  Aws::TimestreamQuery::Endpoints::UntagResource.build(context)
87
+ when :update_account_settings
88
+ Aws::TimestreamQuery::Endpoints::UpdateAccountSettings.build(context)
85
89
  when :update_scheduled_query
86
90
  Aws::TimestreamQuery::Endpoints::UpdateScheduledQuery.build(context)
87
91
  end
@@ -236,6 +236,34 @@ module Aws::TimestreamQuery
236
236
  include Aws::Structure
237
237
  end
238
238
 
239
+ # @api private
240
+ #
241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeAccountSettingsRequest AWS API Documentation
242
+ #
243
+ class DescribeAccountSettingsRequest < Aws::EmptyStructure; end
244
+
245
+ # @!attribute [rw] max_query_tcu
246
+ # The maximum number of [Timestream compute units][1] (TCUs) the
247
+ # service will use at any point in time to serve your queries.
248
+ #
249
+ #
250
+ #
251
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/tcu.html
252
+ # @return [Integer]
253
+ #
254
+ # @!attribute [rw] query_pricing_model
255
+ # The pricing model for queries in your account.
256
+ # @return [String]
257
+ #
258
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeAccountSettingsResponse AWS API Documentation
259
+ #
260
+ class DescribeAccountSettingsResponse < Struct.new(
261
+ :max_query_tcu,
262
+ :query_pricing_model)
263
+ SENSITIVE = []
264
+ include Aws::Structure
265
+ end
266
+
239
267
  # @api private
240
268
  #
241
269
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeEndpointsRequest AWS API Documentation
@@ -390,6 +418,10 @@ module Aws::TimestreamQuery
390
418
  # Bytes metered for a single scheduled query run.
391
419
  # @return [Integer]
392
420
  #
421
+ # @!attribute [rw] cumulative_bytes_scanned
422
+ # Bytes scanned for a single scheduled query run.
423
+ # @return [Integer]
424
+ #
393
425
  # @!attribute [rw] records_ingested
394
426
  # The number of records ingested for a single scheduled query run.
395
427
  # @return [Integer]
@@ -405,13 +437,14 @@ module Aws::TimestreamQuery
405
437
  :execution_time_in_millis,
406
438
  :data_writes,
407
439
  :bytes_metered,
440
+ :cumulative_bytes_scanned,
408
441
  :records_ingested,
409
442
  :query_result_rows)
410
443
  SENSITIVE = []
411
444
  include Aws::Structure
412
445
  end
413
446
 
414
- # Timestream was unable to fully process this request because of an
447
+ # The service was unable to fully process this request because of an
415
448
  # internal server error.
416
449
  #
417
450
  # @!attribute [rw] message
@@ -1448,6 +1481,53 @@ module Aws::TimestreamQuery
1448
1481
  #
1449
1482
  class UntagResourceResponse < Aws::EmptyStructure; end
1450
1483
 
1484
+ # @!attribute [rw] max_query_tcu
1485
+ # The maximum number of compute units the service will use at any
1486
+ # point in time to serve your queries. To run queries, you must set a
1487
+ # minimum capacity of 4 TCU. You can set the maximum number of TCU in
1488
+ # multiples of 4, for example, 4, 8, 16, 32, and so on.
1489
+ #
1490
+ # The maximum value supported for `MaxQueryTCU` is 1000. To request an
1491
+ # increase to this soft limit, contact Amazon Web Services Support.
1492
+ # For information about the default quota for maxQueryTCU, see
1493
+ # [Default quotas][1].
1494
+ #
1495
+ #
1496
+ #
1497
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.default
1498
+ # @return [Integer]
1499
+ #
1500
+ # @!attribute [rw] query_pricing_model
1501
+ # The pricing model for queries in an account.
1502
+ # @return [String]
1503
+ #
1504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UpdateAccountSettingsRequest AWS API Documentation
1505
+ #
1506
+ class UpdateAccountSettingsRequest < Struct.new(
1507
+ :max_query_tcu,
1508
+ :query_pricing_model)
1509
+ SENSITIVE = []
1510
+ include Aws::Structure
1511
+ end
1512
+
1513
+ # @!attribute [rw] max_query_tcu
1514
+ # The configured maximum number of compute units the service will use
1515
+ # at any point in time to serve your queries.
1516
+ # @return [Integer]
1517
+ #
1518
+ # @!attribute [rw] query_pricing_model
1519
+ # The pricing model for an account.
1520
+ # @return [String]
1521
+ #
1522
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UpdateAccountSettingsResponse AWS API Documentation
1523
+ #
1524
+ class UpdateAccountSettingsResponse < Struct.new(
1525
+ :max_query_tcu,
1526
+ :query_pricing_model)
1527
+ SENSITIVE = []
1528
+ include Aws::Structure
1529
+ end
1530
+
1451
1531
  # @!attribute [rw] scheduled_query_arn
1452
1532
  # ARN of the scheuled query.
1453
1533
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-timestreamquery/customizations'
52
52
  # @!group service
53
53
  module Aws::TimestreamQuery
54
54
 
55
- GEM_VERSION = '1.30.0'
55
+ GEM_VERSION = '1.32.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -163,6 +163,16 @@ module Aws
163
163
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
164
164
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
165
165
 
166
+ interface _DescribeAccountSettingsResponseSuccess
167
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeAccountSettingsResponse]
168
+ def max_query_tcu: () -> ::Integer
169
+ def query_pricing_model: () -> ("BYTES_SCANNED" | "COMPUTE_UNITS")
170
+ end
171
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamQuery/Client.html#describe_account_settings-instance_method
172
+ def describe_account_settings: (
173
+ ) -> _DescribeAccountSettingsResponseSuccess
174
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeAccountSettingsResponseSuccess
175
+
166
176
  interface _DescribeEndpointsResponseSuccess
167
177
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeEndpointsResponse]
168
178
  def endpoints: () -> ::Array[Types::Endpoint]
@@ -270,6 +280,18 @@ module Aws
270
280
  ) -> _UntagResourceResponseSuccess
271
281
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
272
282
 
283
+ interface _UpdateAccountSettingsResponseSuccess
284
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateAccountSettingsResponse]
285
+ def max_query_tcu: () -> ::Integer
286
+ def query_pricing_model: () -> ("BYTES_SCANNED" | "COMPUTE_UNITS")
287
+ end
288
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamQuery/Client.html#update_account_settings-instance_method
289
+ def update_account_settings: (
290
+ ?max_query_tcu: ::Integer,
291
+ ?query_pricing_model: ("BYTES_SCANNED" | "COMPUTE_UNITS")
292
+ ) -> _UpdateAccountSettingsResponseSuccess
293
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAccountSettingsResponseSuccess
294
+
273
295
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamQuery/Client.html#update_scheduled_query-instance_method
274
296
  def update_scheduled_query: (
275
297
  scheduled_query_arn: ::String,
data/sig/types.rbs CHANGED
@@ -67,6 +67,15 @@ module Aws::TimestreamQuery
67
67
  SENSITIVE: []
68
68
  end
69
69
 
70
+ class DescribeAccountSettingsRequest < Aws::EmptyStructure
71
+ end
72
+
73
+ class DescribeAccountSettingsResponse
74
+ attr_accessor max_query_tcu: ::Integer
75
+ attr_accessor query_pricing_model: ("BYTES_SCANNED" | "COMPUTE_UNITS")
76
+ SENSITIVE: []
77
+ end
78
+
70
79
  class DescribeEndpointsRequest < Aws::EmptyStructure
71
80
  end
72
81
 
@@ -118,6 +127,7 @@ module Aws::TimestreamQuery
118
127
  attr_accessor execution_time_in_millis: ::Integer
119
128
  attr_accessor data_writes: ::Integer
120
129
  attr_accessor bytes_metered: ::Integer
130
+ attr_accessor cumulative_bytes_scanned: ::Integer
121
131
  attr_accessor records_ingested: ::Integer
122
132
  attr_accessor query_result_rows: ::Integer
123
133
  SENSITIVE: []
@@ -393,6 +403,18 @@ module Aws::TimestreamQuery
393
403
  class UntagResourceResponse < Aws::EmptyStructure
394
404
  end
395
405
 
406
+ class UpdateAccountSettingsRequest
407
+ attr_accessor max_query_tcu: ::Integer
408
+ attr_accessor query_pricing_model: ("BYTES_SCANNED" | "COMPUTE_UNITS")
409
+ SENSITIVE: []
410
+ end
411
+
412
+ class UpdateAccountSettingsResponse
413
+ attr_accessor max_query_tcu: ::Integer
414
+ attr_accessor query_pricing_model: ("BYTES_SCANNED" | "COMPUTE_UNITS")
415
+ SENSITIVE: []
416
+ end
417
+
396
418
  class UpdateScheduledQueryRequest
397
419
  attr_accessor scheduled_query_arn: ::String
398
420
  attr_accessor state: ("ENABLED" | "DISABLED")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-timestreamquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.30.0
4
+ version: 1.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core