aws-sdk-timestreamquery 1.45.0 → 1.47.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: b39c918c88743d7a60ecb65c177f04f1695348dd02a391895b34cf26c88dea97
4
- data.tar.gz: fae881f8ca767b245fcef19494598c9a730632071579a0f7464cc2584dd0ec34
3
+ metadata.gz: 20a5befd2bef29efe6f726b8b3a7ba52955e7da8c64f68f5c3c02f5813658941
4
+ data.tar.gz: 2d38a61b8906e52bc5c4b325c87ccfcdfd3d2136834d081dd26b7eacf6837a5a
5
5
  SHA512:
6
- metadata.gz: 531ff9cfd18b0f42b7e7b84f4d0e1b1892c077255a4465a920e2fc6594996f3fb75bc13cdd343b797075399f8f0477b65812130cb1e79f7898de18e72931f6df
7
- data.tar.gz: daa2de32ef02725c20b53334779ef4dbe3d03b35a6d5361a308b9a709db47823014e0aeb3f0c1f8269a0f60a9a775550026a9279d8d8147e6c06ff1d2666283a
6
+ metadata.gz: 3151a28a83abeeabcaf2bc8775a571ed889c7b5d99f505f0c0bca118761857ca8c099d038ad1a6fca33b7564167998a9ffcd1216711a020641b58a5a457c4f23
7
+ data.tar.gz: 2e4718112884ddc5ef1f99d84097034012166bd77bb3619710ae7bbf60e7888a1ec8de6ee5c4bdf5fbadfa2c39cd1b2c37e43241e5073dafc37952496baba5c7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.47.0 (2024-11-20)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for Provisioning Timestream Compute Units (TCUs), a new feature that allows provisioning dedicated compute resources for your queries, providing predictable and cost-effective query performance.
8
+
9
+ 1.46.0 (2024-10-22)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for Query Insights, a feature that provides details of query execution, enabling users to identify areas for improvement to optimize their queries, resulting in improved query performance and lower query costs.
13
+
4
14
  1.45.0 (2024-10-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.47.0
@@ -681,11 +681,19 @@ module Aws::TimestreamQuery
681
681
  #
682
682
  # * {Types::DescribeAccountSettingsResponse#max_query_tcu #max_query_tcu} => Integer
683
683
  # * {Types::DescribeAccountSettingsResponse#query_pricing_model #query_pricing_model} => String
684
+ # * {Types::DescribeAccountSettingsResponse#query_compute #query_compute} => Types::QueryComputeResponse
684
685
  #
685
686
  # @example Response structure
686
687
  #
687
688
  # resp.max_query_tcu #=> Integer
688
689
  # resp.query_pricing_model #=> String, one of "BYTES_SCANNED", "COMPUTE_UNITS"
690
+ # resp.query_compute.compute_mode #=> String, one of "ON_DEMAND", "PROVISIONED"
691
+ # resp.query_compute.provisioned_capacity.active_query_tcu #=> Integer
692
+ # resp.query_compute.provisioned_capacity.notification_configuration.sns_configuration.topic_arn #=> String
693
+ # resp.query_compute.provisioned_capacity.notification_configuration.role_arn #=> String
694
+ # resp.query_compute.provisioned_capacity.last_update.target_query_tcu #=> Integer
695
+ # resp.query_compute.provisioned_capacity.last_update.status #=> String, one of "PENDING", "FAILED", "SUCCEEDED"
696
+ # resp.query_compute.provisioned_capacity.last_update.status_message #=> String
689
697
  #
690
698
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeAccountSettings AWS API Documentation
691
699
  #
@@ -801,6 +809,15 @@ module Aws::TimestreamQuery
801
809
  # resp.scheduled_query.last_run_summary.execution_stats.cumulative_bytes_scanned #=> Integer
802
810
  # resp.scheduled_query.last_run_summary.execution_stats.records_ingested #=> Integer
803
811
  # resp.scheduled_query.last_run_summary.execution_stats.query_result_rows #=> Integer
812
+ # resp.scheduled_query.last_run_summary.query_insights_response.query_spatial_coverage.max.value #=> Float
813
+ # resp.scheduled_query.last_run_summary.query_insights_response.query_spatial_coverage.max.table_arn #=> String
814
+ # resp.scheduled_query.last_run_summary.query_insights_response.query_spatial_coverage.max.partition_key #=> Array
815
+ # resp.scheduled_query.last_run_summary.query_insights_response.query_spatial_coverage.max.partition_key[0] #=> String
816
+ # resp.scheduled_query.last_run_summary.query_insights_response.query_temporal_range.max.value #=> Integer
817
+ # resp.scheduled_query.last_run_summary.query_insights_response.query_temporal_range.max.table_arn #=> String
818
+ # resp.scheduled_query.last_run_summary.query_insights_response.query_table_count #=> Integer
819
+ # resp.scheduled_query.last_run_summary.query_insights_response.output_rows #=> Integer
820
+ # resp.scheduled_query.last_run_summary.query_insights_response.output_bytes #=> Integer
804
821
  # resp.scheduled_query.last_run_summary.error_report_location.s3_report_location.bucket_name #=> String
805
822
  # resp.scheduled_query.last_run_summary.error_report_location.s3_report_location.object_key #=> String
806
823
  # resp.scheduled_query.last_run_summary.failure_reason #=> String
@@ -814,6 +831,15 @@ module Aws::TimestreamQuery
814
831
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.cumulative_bytes_scanned #=> Integer
815
832
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.records_ingested #=> Integer
816
833
  # resp.scheduled_query.recently_failed_runs[0].execution_stats.query_result_rows #=> Integer
834
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_spatial_coverage.max.value #=> Float
835
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_spatial_coverage.max.table_arn #=> String
836
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_spatial_coverage.max.partition_key #=> Array
837
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_spatial_coverage.max.partition_key[0] #=> String
838
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_temporal_range.max.value #=> Integer
839
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_temporal_range.max.table_arn #=> String
840
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.query_table_count #=> Integer
841
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.output_rows #=> Integer
842
+ # resp.scheduled_query.recently_failed_runs[0].query_insights_response.output_bytes #=> Integer
817
843
  # resp.scheduled_query.recently_failed_runs[0].error_report_location.s3_report_location.bucket_name #=> String
818
844
  # resp.scheduled_query.recently_failed_runs[0].error_report_location.s3_report_location.object_key #=> String
819
845
  # resp.scheduled_query.recently_failed_runs[0].failure_reason #=> String
@@ -829,6 +855,16 @@ module Aws::TimestreamQuery
829
855
 
830
856
  # You can use this API to run a scheduled query manually.
831
857
  #
858
+ # If you enabled `QueryInsights`, this API also returns insights and
859
+ # metrics related to the query that you executed as part of an Amazon
860
+ # SNS notification. `QueryInsights` helps with performance tuning of
861
+ # your query. For more information about `QueryInsights`, see [Using
862
+ # query insights to optimize queries in Amazon Timestream][1].
863
+ #
864
+ #
865
+ #
866
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/using-query-insights.html
867
+ #
832
868
  # @option params [required, String] :scheduled_query_arn
833
869
  # ARN of the scheduled query.
834
870
  #
@@ -842,6 +878,13 @@ module Aws::TimestreamQuery
842
878
  # **A suitable default value is auto-generated.** You should normally
843
879
  # not need to pass this option.**
844
880
  #
881
+ # @option params [Types::ScheduledQueryInsights] :query_insights
882
+ # Encapsulates settings for enabling `QueryInsights`.
883
+ #
884
+ # Enabling `QueryInsights` returns insights and metrics as a part of the
885
+ # Amazon SNS notification for the query that you executed. You can use
886
+ # `QueryInsights` to tune your query performance and cost.
887
+ #
845
888
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
846
889
  #
847
890
  # @example Request syntax with placeholder values
@@ -850,6 +893,9 @@ module Aws::TimestreamQuery
850
893
  # scheduled_query_arn: "AmazonResourceName", # required
851
894
  # invocation_time: Time.now, # required
852
895
  # client_token: "ClientToken",
896
+ # query_insights: {
897
+ # mode: "ENABLED_WITH_RATE_CONTROL", # required, accepts ENABLED_WITH_RATE_CONTROL, DISABLED
898
+ # },
853
899
  # })
854
900
  #
855
901
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ExecuteScheduledQuery AWS API Documentation
@@ -1021,9 +1067,23 @@ module Aws::TimestreamQuery
1021
1067
  end
1022
1068
 
1023
1069
  # `Query` is a synchronous operation that enables you to run a query
1024
- # against your Amazon Timestream data. `Query` will time out after 60
1025
- # seconds. You must update the default timeout in the SDK to support a
1026
- # timeout of 60 seconds. See the [code sample][1] for details.
1070
+ # against your Amazon Timestream data.
1071
+ #
1072
+ # If you enabled `QueryInsights`, this API also returns insights and
1073
+ # metrics related to the query that you executed. `QueryInsights` helps
1074
+ # with performance tuning of your query. For more information about
1075
+ # `QueryInsights`, see [Using query insights to optimize queries in
1076
+ # Amazon Timestream][1].
1077
+ #
1078
+ # <note markdown="1"> The maximum number of `Query` API requests you're allowed to make
1079
+ # with `QueryInsights` enabled is 1 query per second (QPS). If you
1080
+ # exceed this query rate, it might result in throttling.
1081
+ #
1082
+ # </note>
1083
+ #
1084
+ # `Query` will time out after 60 seconds. You must update the default
1085
+ # timeout in the SDK to support a timeout of 60 seconds. See the [code
1086
+ # sample][2] for details.
1027
1087
  #
1028
1088
  # Your query request will fail in the following cases:
1029
1089
  #
@@ -1046,7 +1106,8 @@ module Aws::TimestreamQuery
1046
1106
  #
1047
1107
  #
1048
1108
  #
1049
- # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.run-query.html
1109
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/using-query-insights.html
1110
+ # [2]: https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.run-query.html
1050
1111
  #
1051
1112
  # @option params [required, String] :query_string
1052
1113
  # The query to be run by Timestream.
@@ -1129,6 +1190,13 @@ module Aws::TimestreamQuery
1129
1190
  # limit. If `MaxRows` is not provided, Timestream will send the
1130
1191
  # necessary number of rows to meet the 1 MB limit.
1131
1192
  #
1193
+ # @option params [Types::QueryInsights] :query_insights
1194
+ # Encapsulates settings for enabling `QueryInsights`.
1195
+ #
1196
+ # Enabling `QueryInsights` returns insights and metrics in addition to
1197
+ # query results for the query that you executed. You can use
1198
+ # `QueryInsights` to tune your query performance.
1199
+ #
1132
1200
  # @return [Types::QueryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1133
1201
  #
1134
1202
  # * {Types::QueryResponse#query_id #query_id} => String
@@ -1136,6 +1204,7 @@ module Aws::TimestreamQuery
1136
1204
  # * {Types::QueryResponse#rows #rows} => Array&lt;Types::Row&gt;
1137
1205
  # * {Types::QueryResponse#column_info #column_info} => Array&lt;Types::ColumnInfo&gt;
1138
1206
  # * {Types::QueryResponse#query_status #query_status} => Types::QueryStatus
1207
+ # * {Types::QueryResponse#query_insights_response #query_insights_response} => Types::QueryInsightsResponse
1139
1208
  #
1140
1209
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1141
1210
  #
@@ -1146,6 +1215,9 @@ module Aws::TimestreamQuery
1146
1215
  # client_token: "ClientRequestToken",
1147
1216
  # next_token: "PaginationToken",
1148
1217
  # max_rows: 1,
1218
+ # query_insights: {
1219
+ # mode: "ENABLED_WITH_RATE_CONTROL", # required, accepts ENABLED_WITH_RATE_CONTROL, DISABLED
1220
+ # },
1149
1221
  # })
1150
1222
  #
1151
1223
  # @example Response structure
@@ -1170,6 +1242,18 @@ module Aws::TimestreamQuery
1170
1242
  # resp.query_status.progress_percentage #=> Float
1171
1243
  # resp.query_status.cumulative_bytes_scanned #=> Integer
1172
1244
  # resp.query_status.cumulative_bytes_metered #=> Integer
1245
+ # resp.query_insights_response.query_spatial_coverage.max.value #=> Float
1246
+ # resp.query_insights_response.query_spatial_coverage.max.table_arn #=> String
1247
+ # resp.query_insights_response.query_spatial_coverage.max.partition_key #=> Array
1248
+ # resp.query_insights_response.query_spatial_coverage.max.partition_key[0] #=> String
1249
+ # resp.query_insights_response.query_temporal_range.max.value #=> Integer
1250
+ # resp.query_insights_response.query_temporal_range.max.table_arn #=> String
1251
+ # resp.query_insights_response.query_table_count #=> Integer
1252
+ # resp.query_insights_response.output_rows #=> Integer
1253
+ # resp.query_insights_response.output_bytes #=> Integer
1254
+ # resp.query_insights_response.unload_partition_count #=> Integer
1255
+ # resp.query_insights_response.unload_written_rows #=> Integer
1256
+ # resp.query_insights_response.unload_written_bytes #=> Integer
1173
1257
  #
1174
1258
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/Query AWS API Documentation
1175
1259
  #
@@ -1256,11 +1340,16 @@ module Aws::TimestreamQuery
1256
1340
  # The maximum number of compute units the service will use at any point
1257
1341
  # in time to serve your queries. To run queries, you must set a minimum
1258
1342
  # capacity of 4 TCU. You can set the maximum number of TCU in multiples
1259
- # of 4, for example, 4, 8, 16, 32, and so on.
1343
+ # of 4, for example, 4, 8, 16, 32, and so on. The maximum value
1344
+ # supported for `MaxQueryTCU` is 1000. To request an increase to this
1345
+ # soft limit, contact Amazon Web Services Support. For information about
1346
+ # the default quota for maxQueryTCU, see Default quotas. This
1347
+ # configuration is applicable only for on-demand usage of Timestream
1348
+ # Compute Units (TCUs).
1260
1349
  #
1261
1350
  # The maximum value supported for `MaxQueryTCU` is 1000. To request an
1262
1351
  # increase to this soft limit, contact Amazon Web Services Support. For
1263
- # information about the default quota for maxQueryTCU, see [Default
1352
+ # information about the default quota for `maxQueryTCU`, see [Default
1264
1353
  # quotas][1].
1265
1354
  #
1266
1355
  #
@@ -1276,22 +1365,52 @@ module Aws::TimestreamQuery
1276
1365
  #
1277
1366
  # </note>
1278
1367
  #
1368
+ # @option params [Types::QueryComputeRequest] :query_compute
1369
+ # Modifies the query compute settings configured in your account,
1370
+ # including the query pricing model and provisioned Timestream Compute
1371
+ # Units (TCUs) in your account.
1372
+ #
1373
+ # <note markdown="1"> This API is idempotent, meaning that making the same request multiple
1374
+ # times will have the same effect as making the request once.
1375
+ #
1376
+ # </note>
1377
+ #
1279
1378
  # @return [Types::UpdateAccountSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1280
1379
  #
1281
1380
  # * {Types::UpdateAccountSettingsResponse#max_query_tcu #max_query_tcu} => Integer
1282
1381
  # * {Types::UpdateAccountSettingsResponse#query_pricing_model #query_pricing_model} => String
1382
+ # * {Types::UpdateAccountSettingsResponse#query_compute #query_compute} => Types::QueryComputeResponse
1283
1383
  #
1284
1384
  # @example Request syntax with placeholder values
1285
1385
  #
1286
1386
  # resp = client.update_account_settings({
1287
1387
  # max_query_tcu: 1,
1288
1388
  # query_pricing_model: "BYTES_SCANNED", # accepts BYTES_SCANNED, COMPUTE_UNITS
1389
+ # query_compute: {
1390
+ # compute_mode: "ON_DEMAND", # accepts ON_DEMAND, PROVISIONED
1391
+ # provisioned_capacity: {
1392
+ # target_query_tcu: 1, # required
1393
+ # notification_configuration: {
1394
+ # sns_configuration: {
1395
+ # topic_arn: "AmazonResourceName", # required
1396
+ # },
1397
+ # role_arn: "AmazonResourceName", # required
1398
+ # },
1399
+ # },
1400
+ # },
1289
1401
  # })
1290
1402
  #
1291
1403
  # @example Response structure
1292
1404
  #
1293
1405
  # resp.max_query_tcu #=> Integer
1294
1406
  # resp.query_pricing_model #=> String, one of "BYTES_SCANNED", "COMPUTE_UNITS"
1407
+ # resp.query_compute.compute_mode #=> String, one of "ON_DEMAND", "PROVISIONED"
1408
+ # resp.query_compute.provisioned_capacity.active_query_tcu #=> Integer
1409
+ # resp.query_compute.provisioned_capacity.notification_configuration.sns_configuration.topic_arn #=> String
1410
+ # resp.query_compute.provisioned_capacity.notification_configuration.role_arn #=> String
1411
+ # resp.query_compute.provisioned_capacity.last_update.target_query_tcu #=> Integer
1412
+ # resp.query_compute.provisioned_capacity.last_update.status #=> String, one of "PENDING", "FAILED", "SUCCEEDED"
1413
+ # resp.query_compute.provisioned_capacity.last_update.status_message #=> String
1295
1414
  #
1296
1415
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UpdateAccountSettings AWS API Documentation
1297
1416
  #
@@ -1346,7 +1465,7 @@ module Aws::TimestreamQuery
1346
1465
  tracer: tracer
1347
1466
  )
1348
1467
  context[:gem_name] = 'aws-sdk-timestreamquery'
1349
- context[:gem_version] = '1.45.0'
1468
+ context[:gem_version] = '1.47.0'
1350
1469
  Seahorse::Client::Request.new(handlers, context)
1351
1470
  end
1352
1471
 
@@ -15,6 +15,7 @@ module Aws::TimestreamQuery
15
15
  include Seahorse::Model
16
16
 
17
17
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ AccountSettingsNotificationConfiguration = Shapes::StructureShape.new(name: 'AccountSettingsNotificationConfiguration')
18
19
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
19
20
  CancelQueryRequest = Shapes::StructureShape.new(name: 'CancelQueryRequest')
20
21
  CancelQueryResponse = Shapes::StructureShape.new(name: 'CancelQueryResponse')
@@ -22,6 +23,7 @@ module Aws::TimestreamQuery
22
23
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
23
24
  ColumnInfo = Shapes::StructureShape.new(name: 'ColumnInfo')
24
25
  ColumnInfoList = Shapes::ListShape.new(name: 'ColumnInfoList')
26
+ ComputeMode = Shapes::StringShape.new(name: 'ComputeMode')
25
27
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
26
28
  CreateScheduledQueryRequest = Shapes::StructureShape.new(name: 'CreateScheduledQueryRequest')
27
29
  CreateScheduledQueryResponse = Shapes::StructureShape.new(name: 'CreateScheduledQueryResponse')
@@ -47,6 +49,8 @@ module Aws::TimestreamQuery
47
49
  ExecutionStats = Shapes::StructureShape.new(name: 'ExecutionStats')
48
50
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
49
51
  InvalidEndpointException = Shapes::StructureShape.new(name: 'InvalidEndpointException')
52
+ LastUpdate = Shapes::StructureShape.new(name: 'LastUpdate')
53
+ LastUpdateStatus = Shapes::StringShape.new(name: 'LastUpdateStatus')
50
54
  ListScheduledQueriesRequest = Shapes::StructureShape.new(name: 'ListScheduledQueriesRequest')
51
55
  ListScheduledQueriesResponse = Shapes::StructureShape.new(name: 'ListScheduledQueriesResponse')
52
56
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
@@ -69,15 +73,29 @@ module Aws::TimestreamQuery
69
73
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
70
74
  ParameterMapping = Shapes::StructureShape.new(name: 'ParameterMapping')
71
75
  ParameterMappingList = Shapes::ListShape.new(name: 'ParameterMappingList')
76
+ PartitionKey = Shapes::StringShape.new(name: 'PartitionKey')
77
+ PartitionKeyList = Shapes::ListShape.new(name: 'PartitionKeyList')
72
78
  PrepareQueryRequest = Shapes::StructureShape.new(name: 'PrepareQueryRequest')
73
79
  PrepareQueryResponse = Shapes::StructureShape.new(name: 'PrepareQueryResponse')
80
+ ProvisionedCapacityRequest = Shapes::StructureShape.new(name: 'ProvisionedCapacityRequest')
81
+ ProvisionedCapacityResponse = Shapes::StructureShape.new(name: 'ProvisionedCapacityResponse')
82
+ QueryComputeRequest = Shapes::StructureShape.new(name: 'QueryComputeRequest')
83
+ QueryComputeResponse = Shapes::StructureShape.new(name: 'QueryComputeResponse')
74
84
  QueryExecutionException = Shapes::StructureShape.new(name: 'QueryExecutionException')
75
85
  QueryId = Shapes::StringShape.new(name: 'QueryId')
86
+ QueryInsights = Shapes::StructureShape.new(name: 'QueryInsights')
87
+ QueryInsightsMode = Shapes::StringShape.new(name: 'QueryInsightsMode')
88
+ QueryInsightsResponse = Shapes::StructureShape.new(name: 'QueryInsightsResponse')
76
89
  QueryPricingModel = Shapes::StringShape.new(name: 'QueryPricingModel')
77
90
  QueryRequest = Shapes::StructureShape.new(name: 'QueryRequest')
78
91
  QueryResponse = Shapes::StructureShape.new(name: 'QueryResponse')
92
+ QuerySpatialCoverage = Shapes::StructureShape.new(name: 'QuerySpatialCoverage')
93
+ QuerySpatialCoverageMax = Shapes::StructureShape.new(name: 'QuerySpatialCoverageMax')
79
94
  QueryStatus = Shapes::StructureShape.new(name: 'QueryStatus')
80
95
  QueryString = Shapes::StringShape.new(name: 'QueryString')
96
+ QueryTCU = Shapes::IntegerShape.new(name: 'QueryTCU')
97
+ QueryTemporalRange = Shapes::StructureShape.new(name: 'QueryTemporalRange')
98
+ QueryTemporalRangeMax = Shapes::StructureShape.new(name: 'QueryTemporalRangeMax')
81
99
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
82
100
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
83
101
  Row = Shapes::StructureShape.new(name: 'Row')
@@ -95,6 +113,9 @@ module Aws::TimestreamQuery
95
113
  ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
96
114
  ScheduledQuery = Shapes::StructureShape.new(name: 'ScheduledQuery')
97
115
  ScheduledQueryDescription = Shapes::StructureShape.new(name: 'ScheduledQueryDescription')
116
+ ScheduledQueryInsights = Shapes::StructureShape.new(name: 'ScheduledQueryInsights')
117
+ ScheduledQueryInsightsMode = Shapes::StringShape.new(name: 'ScheduledQueryInsightsMode')
118
+ ScheduledQueryInsightsResponse = Shapes::StructureShape.new(name: 'ScheduledQueryInsightsResponse')
98
119
  ScheduledQueryList = Shapes::ListShape.new(name: 'ScheduledQueryList')
99
120
  ScheduledQueryName = Shapes::StringShape.new(name: 'ScheduledQueryName')
100
121
  ScheduledQueryRunStatus = Shapes::StringShape.new(name: 'ScheduledQueryRunStatus')
@@ -136,6 +157,10 @@ module Aws::TimestreamQuery
136
157
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ServiceErrorMessage, location_name: "Message"))
137
158
  AccessDeniedException.struct_class = Types::AccessDeniedException
138
159
 
160
+ AccountSettingsNotificationConfiguration.add_member(:sns_configuration, Shapes::ShapeRef.new(shape: SnsConfiguration, location_name: "SnsConfiguration"))
161
+ AccountSettingsNotificationConfiguration.add_member(:role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "RoleArn"))
162
+ AccountSettingsNotificationConfiguration.struct_class = Types::AccountSettingsNotificationConfiguration
163
+
139
164
  CancelQueryRequest.add_member(:query_id, Shapes::ShapeRef.new(shape: QueryId, required: true, location_name: "QueryId"))
140
165
  CancelQueryRequest.struct_class = Types::CancelQueryRequest
141
166
 
@@ -182,6 +207,7 @@ module Aws::TimestreamQuery
182
207
 
183
208
  DescribeAccountSettingsResponse.add_member(:max_query_tcu, Shapes::ShapeRef.new(shape: MaxQueryCapacity, location_name: "MaxQueryTCU"))
184
209
  DescribeAccountSettingsResponse.add_member(:query_pricing_model, Shapes::ShapeRef.new(shape: QueryPricingModel, location_name: "QueryPricingModel"))
210
+ DescribeAccountSettingsResponse.add_member(:query_compute, Shapes::ShapeRef.new(shape: QueryComputeResponse, location_name: "QueryCompute"))
185
211
  DescribeAccountSettingsResponse.struct_class = Types::DescribeAccountSettingsResponse
186
212
 
187
213
  DescribeEndpointsRequest.struct_class = Types::DescribeEndpointsRequest
@@ -216,6 +242,7 @@ module Aws::TimestreamQuery
216
242
  ExecuteScheduledQueryRequest.add_member(:scheduled_query_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ScheduledQueryArn"))
217
243
  ExecuteScheduledQueryRequest.add_member(:invocation_time, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "InvocationTime"))
218
244
  ExecuteScheduledQueryRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
245
+ ExecuteScheduledQueryRequest.add_member(:query_insights, Shapes::ShapeRef.new(shape: ScheduledQueryInsights, location_name: "QueryInsights"))
219
246
  ExecuteScheduledQueryRequest.struct_class = Types::ExecuteScheduledQueryRequest
220
247
 
221
248
  ExecutionStats.add_member(:execution_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "ExecutionTimeInMillis"))
@@ -232,6 +259,11 @@ module Aws::TimestreamQuery
232
259
  InvalidEndpointException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
233
260
  InvalidEndpointException.struct_class = Types::InvalidEndpointException
234
261
 
262
+ LastUpdate.add_member(:target_query_tcu, Shapes::ShapeRef.new(shape: QueryTCU, location_name: "TargetQueryTCU"))
263
+ LastUpdate.add_member(:status, Shapes::ShapeRef.new(shape: LastUpdateStatus, location_name: "Status"))
264
+ LastUpdate.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "StatusMessage"))
265
+ LastUpdate.struct_class = Types::LastUpdate
266
+
235
267
  ListScheduledQueriesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxScheduledQueriesResults, location_name: "MaxResults"))
236
268
  ListScheduledQueriesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextScheduledQueriesResultsToken, location_name: "NextToken"))
237
269
  ListScheduledQueriesRequest.struct_class = Types::ListScheduledQueriesRequest
@@ -278,6 +310,8 @@ module Aws::TimestreamQuery
278
310
 
279
311
  ParameterMappingList.member = Shapes::ShapeRef.new(shape: ParameterMapping)
280
312
 
313
+ PartitionKeyList.member = Shapes::ShapeRef.new(shape: PartitionKey)
314
+
281
315
  PrepareQueryRequest.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
282
316
  PrepareQueryRequest.add_member(:validate_only, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "ValidateOnly"))
283
317
  PrepareQueryRequest.struct_class = Types::PrepareQueryRequest
@@ -287,13 +321,44 @@ module Aws::TimestreamQuery
287
321
  PrepareQueryResponse.add_member(:parameters, Shapes::ShapeRef.new(shape: ParameterMappingList, required: true, location_name: "Parameters"))
288
322
  PrepareQueryResponse.struct_class = Types::PrepareQueryResponse
289
323
 
324
+ ProvisionedCapacityRequest.add_member(:target_query_tcu, Shapes::ShapeRef.new(shape: QueryTCU, required: true, location_name: "TargetQueryTCU"))
325
+ ProvisionedCapacityRequest.add_member(:notification_configuration, Shapes::ShapeRef.new(shape: AccountSettingsNotificationConfiguration, location_name: "NotificationConfiguration"))
326
+ ProvisionedCapacityRequest.struct_class = Types::ProvisionedCapacityRequest
327
+
328
+ ProvisionedCapacityResponse.add_member(:active_query_tcu, Shapes::ShapeRef.new(shape: QueryTCU, location_name: "ActiveQueryTCU"))
329
+ ProvisionedCapacityResponse.add_member(:notification_configuration, Shapes::ShapeRef.new(shape: AccountSettingsNotificationConfiguration, location_name: "NotificationConfiguration"))
330
+ ProvisionedCapacityResponse.add_member(:last_update, Shapes::ShapeRef.new(shape: LastUpdate, location_name: "LastUpdate"))
331
+ ProvisionedCapacityResponse.struct_class = Types::ProvisionedCapacityResponse
332
+
333
+ QueryComputeRequest.add_member(:compute_mode, Shapes::ShapeRef.new(shape: ComputeMode, location_name: "ComputeMode"))
334
+ QueryComputeRequest.add_member(:provisioned_capacity, Shapes::ShapeRef.new(shape: ProvisionedCapacityRequest, location_name: "ProvisionedCapacity"))
335
+ QueryComputeRequest.struct_class = Types::QueryComputeRequest
336
+
337
+ QueryComputeResponse.add_member(:compute_mode, Shapes::ShapeRef.new(shape: ComputeMode, location_name: "ComputeMode"))
338
+ QueryComputeResponse.add_member(:provisioned_capacity, Shapes::ShapeRef.new(shape: ProvisionedCapacityResponse, location_name: "ProvisionedCapacity"))
339
+ QueryComputeResponse.struct_class = Types::QueryComputeResponse
340
+
290
341
  QueryExecutionException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
291
342
  QueryExecutionException.struct_class = Types::QueryExecutionException
292
343
 
344
+ QueryInsights.add_member(:mode, Shapes::ShapeRef.new(shape: QueryInsightsMode, required: true, location_name: "Mode"))
345
+ QueryInsights.struct_class = Types::QueryInsights
346
+
347
+ QueryInsightsResponse.add_member(:query_spatial_coverage, Shapes::ShapeRef.new(shape: QuerySpatialCoverage, location_name: "QuerySpatialCoverage"))
348
+ QueryInsightsResponse.add_member(:query_temporal_range, Shapes::ShapeRef.new(shape: QueryTemporalRange, location_name: "QueryTemporalRange"))
349
+ QueryInsightsResponse.add_member(:query_table_count, Shapes::ShapeRef.new(shape: Long, location_name: "QueryTableCount", metadata: {"box"=>true}))
350
+ QueryInsightsResponse.add_member(:output_rows, Shapes::ShapeRef.new(shape: Long, location_name: "OutputRows", metadata: {"box"=>true}))
351
+ QueryInsightsResponse.add_member(:output_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "OutputBytes", metadata: {"box"=>true}))
352
+ QueryInsightsResponse.add_member(:unload_partition_count, Shapes::ShapeRef.new(shape: Long, location_name: "UnloadPartitionCount", metadata: {"box"=>true}))
353
+ QueryInsightsResponse.add_member(:unload_written_rows, Shapes::ShapeRef.new(shape: Long, location_name: "UnloadWrittenRows", metadata: {"box"=>true}))
354
+ QueryInsightsResponse.add_member(:unload_written_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "UnloadWrittenBytes", metadata: {"box"=>true}))
355
+ QueryInsightsResponse.struct_class = Types::QueryInsightsResponse
356
+
293
357
  QueryRequest.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
294
358
  QueryRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
295
359
  QueryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
296
360
  QueryRequest.add_member(:max_rows, Shapes::ShapeRef.new(shape: MaxQueryResults, location_name: "MaxRows"))
361
+ QueryRequest.add_member(:query_insights, Shapes::ShapeRef.new(shape: QueryInsights, location_name: "QueryInsights"))
297
362
  QueryRequest.struct_class = Types::QueryRequest
298
363
 
299
364
  QueryResponse.add_member(:query_id, Shapes::ShapeRef.new(shape: QueryId, required: true, location_name: "QueryId"))
@@ -301,13 +366,29 @@ module Aws::TimestreamQuery
301
366
  QueryResponse.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, required: true, location_name: "Rows"))
302
367
  QueryResponse.add_member(:column_info, Shapes::ShapeRef.new(shape: ColumnInfoList, required: true, location_name: "ColumnInfo"))
303
368
  QueryResponse.add_member(:query_status, Shapes::ShapeRef.new(shape: QueryStatus, location_name: "QueryStatus"))
369
+ QueryResponse.add_member(:query_insights_response, Shapes::ShapeRef.new(shape: QueryInsightsResponse, location_name: "QueryInsightsResponse"))
304
370
  QueryResponse.struct_class = Types::QueryResponse
305
371
 
372
+ QuerySpatialCoverage.add_member(:max, Shapes::ShapeRef.new(shape: QuerySpatialCoverageMax, location_name: "Max"))
373
+ QuerySpatialCoverage.struct_class = Types::QuerySpatialCoverage
374
+
375
+ QuerySpatialCoverageMax.add_member(:value, Shapes::ShapeRef.new(shape: Double, location_name: "Value"))
376
+ QuerySpatialCoverageMax.add_member(:table_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "TableArn"))
377
+ QuerySpatialCoverageMax.add_member(:partition_key, Shapes::ShapeRef.new(shape: PartitionKeyList, location_name: "PartitionKey"))
378
+ QuerySpatialCoverageMax.struct_class = Types::QuerySpatialCoverageMax
379
+
306
380
  QueryStatus.add_member(:progress_percentage, Shapes::ShapeRef.new(shape: Double, location_name: "ProgressPercentage"))
307
381
  QueryStatus.add_member(:cumulative_bytes_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "CumulativeBytesScanned"))
308
382
  QueryStatus.add_member(:cumulative_bytes_metered, Shapes::ShapeRef.new(shape: Long, location_name: "CumulativeBytesMetered"))
309
383
  QueryStatus.struct_class = Types::QueryStatus
310
384
 
385
+ QueryTemporalRange.add_member(:max, Shapes::ShapeRef.new(shape: QueryTemporalRangeMax, location_name: "Max"))
386
+ QueryTemporalRange.struct_class = Types::QueryTemporalRange
387
+
388
+ QueryTemporalRangeMax.add_member(:value, Shapes::ShapeRef.new(shape: Long, location_name: "Value"))
389
+ QueryTemporalRangeMax.add_member(:table_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "TableArn"))
390
+ QueryTemporalRangeMax.struct_class = Types::QueryTemporalRangeMax
391
+
311
392
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
312
393
  ResourceNotFoundException.add_member(:scheduled_query_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ScheduledQueryArn"))
313
394
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
@@ -357,12 +438,23 @@ module Aws::TimestreamQuery
357
438
  ScheduledQueryDescription.add_member(:recently_failed_runs, Shapes::ShapeRef.new(shape: ScheduledQueryRunSummaryList, location_name: "RecentlyFailedRuns"))
358
439
  ScheduledQueryDescription.struct_class = Types::ScheduledQueryDescription
359
440
 
441
+ ScheduledQueryInsights.add_member(:mode, Shapes::ShapeRef.new(shape: ScheduledQueryInsightsMode, required: true, location_name: "Mode"))
442
+ ScheduledQueryInsights.struct_class = Types::ScheduledQueryInsights
443
+
444
+ ScheduledQueryInsightsResponse.add_member(:query_spatial_coverage, Shapes::ShapeRef.new(shape: QuerySpatialCoverage, location_name: "QuerySpatialCoverage"))
445
+ ScheduledQueryInsightsResponse.add_member(:query_temporal_range, Shapes::ShapeRef.new(shape: QueryTemporalRange, location_name: "QueryTemporalRange"))
446
+ ScheduledQueryInsightsResponse.add_member(:query_table_count, Shapes::ShapeRef.new(shape: Long, location_name: "QueryTableCount", metadata: {"box"=>true}))
447
+ ScheduledQueryInsightsResponse.add_member(:output_rows, Shapes::ShapeRef.new(shape: Long, location_name: "OutputRows", metadata: {"box"=>true}))
448
+ ScheduledQueryInsightsResponse.add_member(:output_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "OutputBytes", metadata: {"box"=>true}))
449
+ ScheduledQueryInsightsResponse.struct_class = Types::ScheduledQueryInsightsResponse
450
+
360
451
  ScheduledQueryList.member = Shapes::ShapeRef.new(shape: ScheduledQuery)
361
452
 
362
453
  ScheduledQueryRunSummary.add_member(:invocation_time, Shapes::ShapeRef.new(shape: Time, location_name: "InvocationTime"))
363
454
  ScheduledQueryRunSummary.add_member(:trigger_time, Shapes::ShapeRef.new(shape: Time, location_name: "TriggerTime"))
364
455
  ScheduledQueryRunSummary.add_member(:run_status, Shapes::ShapeRef.new(shape: ScheduledQueryRunStatus, location_name: "RunStatus"))
365
456
  ScheduledQueryRunSummary.add_member(:execution_stats, Shapes::ShapeRef.new(shape: ExecutionStats, location_name: "ExecutionStats"))
457
+ ScheduledQueryRunSummary.add_member(:query_insights_response, Shapes::ShapeRef.new(shape: ScheduledQueryInsightsResponse, location_name: "QueryInsightsResponse"))
366
458
  ScheduledQueryRunSummary.add_member(:error_report_location, Shapes::ShapeRef.new(shape: ErrorReportLocation, location_name: "ErrorReportLocation"))
367
459
  ScheduledQueryRunSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "FailureReason"))
368
460
  ScheduledQueryRunSummary.struct_class = Types::ScheduledQueryRunSummary
@@ -440,10 +532,12 @@ module Aws::TimestreamQuery
440
532
 
441
533
  UpdateAccountSettingsRequest.add_member(:max_query_tcu, Shapes::ShapeRef.new(shape: MaxQueryCapacity, location_name: "MaxQueryTCU"))
442
534
  UpdateAccountSettingsRequest.add_member(:query_pricing_model, Shapes::ShapeRef.new(shape: QueryPricingModel, location_name: "QueryPricingModel"))
535
+ UpdateAccountSettingsRequest.add_member(:query_compute, Shapes::ShapeRef.new(shape: QueryComputeRequest, location_name: "QueryCompute"))
443
536
  UpdateAccountSettingsRequest.struct_class = Types::UpdateAccountSettingsRequest
444
537
 
445
538
  UpdateAccountSettingsResponse.add_member(:max_query_tcu, Shapes::ShapeRef.new(shape: MaxQueryCapacity, location_name: "MaxQueryTCU"))
446
539
  UpdateAccountSettingsResponse.add_member(:query_pricing_model, Shapes::ShapeRef.new(shape: QueryPricingModel, location_name: "QueryPricingModel"))
540
+ UpdateAccountSettingsResponse.add_member(:query_compute, Shapes::ShapeRef.new(shape: QueryComputeResponse, location_name: "QueryCompute"))
447
541
  UpdateAccountSettingsResponse.struct_class = Types::UpdateAccountSettingsResponse
448
542
 
449
543
  UpdateScheduledQueryRequest.add_member(:scheduled_query_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ScheduledQueryArn"))