aws-sdk-timestreamquery 1.23.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: 1beacc4369d0e809a318c1ad8ad8fa79b7c61de982b408f572f0c9030dabe853
4
- data.tar.gz: ebfff5a9a1dff82f6529b741276ca9501fcc791e68b15d421dc8a6171e07b7b7
3
+ metadata.gz: 472a1543a3ecfe96e63bf7c7c441199e20ecd07bb0d080a78a4c6f99e44c9d49
4
+ data.tar.gz: fa9e3035188079039e89f03b4b05e021a8b041afbde91f12884b24ec8678e85c
5
5
  SHA512:
6
- metadata.gz: a4dd8615b27d42b3493ea9c21ddd7b8949081048b5564e83089d86cfe2b2541529870289be071f5b00d4233702dc29dfd50b765cbe999a0ee7472ea09e900f30
7
- data.tar.gz: b96e9d6aa93bae45b7011423d6ce4765b4bef28b094242f84c81ce2c5c9a1ea133765ac704ce2ce0c13b965106ff540a1b3bc09115abc6738dabaf8fe05b39a7
6
+ metadata.gz: 06b70ee06342655df755fd5491c639b679c3f21da30865a5d264df7b2e4698f8ed88f8f8263a614e35638f5c8507effe730be480d18a3fdfb16b36b0cecf0210
7
+ data.tar.gz: 76119b8f6a90d4103124c2ed817aa505c10e58854f470ddb1d25f7f842d4cbc2dd6499268d35e9895608b717c816b39c10f88a9557b451e1647970a254e7da30
data/CHANGELOG.md CHANGED
@@ -1,6 +1,51 @@
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
+
14
+ 1.30.0 (2024-04-25)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.29.0 (2024-03-18)
20
+ ------------------
21
+
22
+ * Feature - Documentation updates, March 2024
23
+
24
+ 1.28.0 (2024-01-26)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.27.0 (2023-11-28)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.26.0 (2023-11-22)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.25.0 (2023-09-27)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.24.0 (2023-09-19)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
4
49
  1.23.0 (2023-07-11)
5
50
  ------------------
6
51
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.23.0
1
+ 1.32.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::TimestreamQuery
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::TimestreamQuery
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -292,8 +301,9 @@ module Aws::TimestreamQuery
292
301
  #
293
302
  # @option options [String] :sdk_ua_app_id
294
303
  # A unique and opaque application ID that is appended to the
295
- # User-Agent header as app/<sdk_ua_app_id>. It should have a
296
- # 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.
297
307
  #
298
308
  # @option options [String] :secret_access_key
299
309
  #
@@ -347,50 +357,65 @@ module Aws::TimestreamQuery
347
357
  # @option options [Aws::TimestreamQuery::EndpointProvider] :endpoint_provider
348
358
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::TimestreamQuery::EndpointParameters`
349
359
  #
350
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
351
- # requests through. Formatted like 'http://proxy.com:123'.
352
- #
353
- # @option options [Float] :http_open_timeout (15) The number of
354
- # seconds to wait when opening a HTTP session before raising a
355
- # `Timeout::Error`.
356
- #
357
- # @option options [Float] :http_read_timeout (60) The default
358
- # number of seconds to wait for response data. This value can
359
- # safely be set per-request on the session.
360
- #
361
- # @option options [Float] :http_idle_timeout (5) The number of
362
- # seconds a connection is allowed to sit idle before it is
363
- # considered stale. Stale connections are closed and removed
364
- # from the pool before making a request.
365
- #
366
- # @option options [Float] :http_continue_timeout (1) The number of
367
- # seconds to wait for a 100-continue response before sending the
368
- # request body. This option has no effect unless the request has
369
- # "Expect" header set to "100-continue". Defaults to `nil` which
370
- # disables this behaviour. This value can safely be set per
371
- # request on the session.
372
- #
373
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
374
- # in seconds.
375
- #
376
- # @option options [Boolean] :http_wire_trace (false) When `true`,
377
- # HTTP debug output will be sent to the `:logger`.
360
+ # @option options [Float] :http_continue_timeout (1)
361
+ # The number of seconds to wait for a 100-continue response before sending the
362
+ # request body. This option has no effect unless the request has "Expect"
363
+ # header set to "100-continue". Defaults to `nil` which disables this
364
+ # behaviour. This value can safely be set per request on the session.
365
+ #
366
+ # @option options [Float] :http_idle_timeout (5)
367
+ # The number of seconds a connection is allowed to sit idle before it
368
+ # is considered stale. Stale connections are closed and removed from the
369
+ # pool before making a request.
370
+ #
371
+ # @option options [Float] :http_open_timeout (15)
372
+ # The default number of seconds to wait for response data.
373
+ # This value can safely be set per-request on the session.
374
+ #
375
+ # @option options [URI::HTTP,String] :http_proxy
376
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
377
+ #
378
+ # @option options [Float] :http_read_timeout (60)
379
+ # The default number of seconds to wait for response data.
380
+ # This value can safely be set per-request on the session.
381
+ #
382
+ # @option options [Boolean] :http_wire_trace (false)
383
+ # When `true`, HTTP debug output will be sent to the `:logger`.
384
+ #
385
+ # @option options [Proc] :on_chunk_received
386
+ # When a Proc object is provided, it will be used as callback when each chunk
387
+ # of the response body is received. It provides three arguments: the chunk,
388
+ # the number of bytes received, and the total number of
389
+ # bytes in the response (or nil if the server did not send a `content-length`).
390
+ #
391
+ # @option options [Proc] :on_chunk_sent
392
+ # When a Proc object is provided, it will be used as callback when each chunk
393
+ # of the request body is sent. It provides three arguments: the chunk,
394
+ # the number of bytes read from the body, and the total number of
395
+ # bytes in the body.
396
+ #
397
+ # @option options [Boolean] :raise_response_errors (true)
398
+ # When `true`, response errors are raised.
399
+ #
400
+ # @option options [String] :ssl_ca_bundle
401
+ # Full path to the SSL certificate authority bundle file that should be used when
402
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
403
+ # `:ssl_ca_directory` the the system default will be used if available.
404
+ #
405
+ # @option options [String] :ssl_ca_directory
406
+ # Full path of the directory that contains the unbundled SSL certificate
407
+ # authority files for verifying peer certificates. If you do
408
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
409
+ # default will be used if available.
378
410
  #
379
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
380
- # SSL peer certificates are verified when establishing a
381
- # connection.
411
+ # @option options [String] :ssl_ca_store
412
+ # Sets the X509::Store to verify peer certificate.
382
413
  #
383
- # @option options [String] :ssl_ca_bundle Full path to the SSL
384
- # certificate authority bundle file that should be used when
385
- # verifying peer certificates. If you do not pass
386
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
387
- # will be used if available.
414
+ # @option options [Float] :ssl_timeout
415
+ # Sets the SSL timeout in seconds
388
416
  #
389
- # @option options [String] :ssl_ca_directory Full path of the
390
- # directory that contains the unbundled SSL certificate
391
- # authority files for verifying peer certificates. If you do
392
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
393
- # system default will be used if available.
417
+ # @option options [Boolean] :ssl_verify_peer (true)
418
+ # When `true`, SSL peer certificates are verified when establishing a connection.
394
419
  #
395
420
  def initialize(*args)
396
421
  super
@@ -614,6 +639,32 @@ module Aws::TimestreamQuery
614
639
  req.send_request(options)
615
640
  end
616
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
+
617
668
  # DescribeEndpoints returns a list of available endpoints to make
618
669
  # Timestream API calls against. This API is available through both Write
619
670
  # and Query.
@@ -716,6 +767,7 @@ module Aws::TimestreamQuery
716
767
  # resp.scheduled_query.last_run_summary.execution_stats.execution_time_in_millis #=> Integer
717
768
  # resp.scheduled_query.last_run_summary.execution_stats.data_writes #=> Integer
718
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
719
771
  # resp.scheduled_query.last_run_summary.execution_stats.records_ingested #=> Integer
720
772
  # resp.scheduled_query.last_run_summary.execution_stats.query_result_rows #=> Integer
721
773
  # resp.scheduled_query.last_run_summary.error_report_location.s3_report_location.bucket_name #=> String
@@ -728,6 +780,7 @@ module Aws::TimestreamQuery
728
780
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.execution_time_in_millis #=> Integer
729
781
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.data_writes #=> Integer
730
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
731
784
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.records_ingested #=> Integer
732
785
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.query_result_rows #=> Integer
733
786
  # resp.scheduled_query.recently_failed_runs[0].error_report_location.s3_report_location.bucket_name #=> String
@@ -875,8 +928,7 @@ module Aws::TimestreamQuery
875
928
 
876
929
  # A synchronous operation that allows you to submit a query with
877
930
  # parameters to be stored by Timestream for later running. Timestream
878
- # only supports using this operation with the
879
- # `PrepareQueryRequest$ValidateOnly` set to `true`.
931
+ # only supports using this operation with `ValidateOnly` set to `true`.
880
932
  #
881
933
  # @option params [required, String] :query_string
882
934
  # The Timestream query string that you want to use as a prepared
@@ -1159,6 +1211,60 @@ module Aws::TimestreamQuery
1159
1211
  req.send_request(options)
1160
1212
  end
1161
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
+
1162
1268
  # Update a scheduled query.
1163
1269
  #
1164
1270
  # @option params [required, String] :scheduled_query_arn
@@ -1198,7 +1304,7 @@ module Aws::TimestreamQuery
1198
1304
  params: params,
1199
1305
  config: config)
1200
1306
  context[:gem_name] = 'aws-sdk-timestreamquery'
1201
- context[:gem_version] = '1.23.0'
1307
+ context[:gem_version] = '1.32.0'
1202
1308
  Seahorse::Client::Request.new(handlers, context)
1203
1309
  end
1204
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"
@@ -14,36 +14,39 @@ module Aws::TimestreamQuery
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://query.timestream-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://query.timestream-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://query.timestream.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://query.timestream-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ return Aws::Endpoints::Endpoint.new(url: "https://query.timestream-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://query.timestream.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://query.timestream.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://query.timestream.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -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
@@ -14,6 +14,7 @@ module Aws::TimestreamQuery
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::TimestreamQuery::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -25,16 +26,17 @@ module Aws::TimestreamQuery
25
26
  # @api private
26
27
  class Handler < Seahorse::Client::Handler
27
28
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
29
  unless context[:discovered_endpoint]
30
30
  params = parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
34
34
  apply_endpoint_headers(context, endpoint.headers)
35
+
36
+ context[:endpoint_params] = params
37
+ context[:endpoint_properties] = endpoint.properties
35
38
  end
36
39
 
37
- context[:endpoint_params] = params
38
40
  context[:auth_scheme] =
39
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
42
 
@@ -62,6 +64,8 @@ module Aws::TimestreamQuery
62
64
  Aws::TimestreamQuery::Endpoints::CreateScheduledQuery.build(context)
63
65
  when :delete_scheduled_query
64
66
  Aws::TimestreamQuery::Endpoints::DeleteScheduledQuery.build(context)
67
+ when :describe_account_settings
68
+ Aws::TimestreamQuery::Endpoints::DescribeAccountSettings.build(context)
65
69
  when :describe_endpoints
66
70
  Aws::TimestreamQuery::Endpoints::DescribeEndpoints.build(context)
67
71
  when :describe_scheduled_query
@@ -80,6 +84,8 @@ module Aws::TimestreamQuery
80
84
  Aws::TimestreamQuery::Endpoints::TagResource.build(context)
81
85
  when :untag_resource
82
86
  Aws::TimestreamQuery::Endpoints::UntagResource.build(context)
87
+ when :update_account_settings
88
+ Aws::TimestreamQuery::Endpoints::UpdateAccountSettings.build(context)
83
89
  when :update_scheduled_query
84
90
  Aws::TimestreamQuery::Endpoints::UpdateScheduledQuery.build(context)
85
91
  end