aws-sdk-redshiftdataapiservice 1.21.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c594c216b374545384b8a8d71dccf914c8c408ed1e333b0f7f114749ead80872
4
- data.tar.gz: 92937b919adca7baffa7d33fc1361176ae52e9405ab0ec12b1231f4a5eb4faf8
3
+ metadata.gz: e6c757a593b737ecc71e5f7bf9e98a618743a89f43bb5405ce41665b69f94a82
4
+ data.tar.gz: 4156423fe7e60ffe281ce21d10d4317ba990e42e7d133d4daf7e6ae93695fba5
5
5
  SHA512:
6
- metadata.gz: a78ea897ff7d205e87f0110147ee4323ecf66ba54a3df148ce96978f72074cb5286e5c240eb8f98113a948cc12c5e22898b71e7fadd4b21c58e4d8a7bd818793
7
- data.tar.gz: 9c0d436b2b6c50f8ed914f1282ade56e2a2b5270ad0950f5914274a5808638886d6dc724b07a57012d2c31c67902c4e90b6fdaaaee79f96982ef4ab52435e08b
6
+ metadata.gz: 98bd97ff6f0dfb056dd851b8ed7e68160f1856404e74cb11c81a2acaf02e9e41ad2bcf5ff9268790eb0b1aa953da4cac12df0251e00a2f46838aabc1f65fbba1
7
+ data.tar.gz: 98da868e069cf8a61fad52c132a1c66de7e0accee5cf2174c30e6694ce24046252322b01304d4b15602d95c76382c0c7e27147d98f03ba938ee23a310df971e7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.0 (2022-12-14)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new --client-token field to ExecuteStatement and BatchExecuteStatement operations. Customers can now run queries with the additional client token parameter to ensures idempotency.
8
+
9
+ 1.22.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.21.0 (2022-06-16)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.21.0
1
+ 1.23.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:redshiftdataapiservice)
@@ -79,8 +79,9 @@ module Aws::RedshiftDataAPIService
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::RedshiftDataAPIService::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::RedshiftDataAPIService
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::RedshiftDataAPIService
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::RedshiftDataAPIService::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::RedshiftDataAPIService::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -379,6 +396,21 @@ module Aws::RedshiftDataAPIService
379
396
  # specify the workgroup name and database name. Also, permission to
380
397
  # call the `redshift-serverless:GetCredentials` operation is required.
381
398
  #
399
+ # For more information about the Amazon Redshift Data API and CLI usage
400
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
401
+ # Redshift Management Guide*.
402
+ #
403
+ #
404
+ #
405
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
406
+ #
407
+ # @option params [String] :client_token
408
+ # A unique, case-sensitive identifier that you provide to ensure the
409
+ # idempotency of the request.
410
+ #
411
+ # **A suitable default value is auto-generated.** You should normally
412
+ # not need to pass this option.**
413
+ #
382
414
  # @option params [String] :cluster_identifier
383
415
  # The cluster identifier. This parameter is required when connecting to
384
416
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -397,7 +429,11 @@ module Aws::RedshiftDataAPIService
397
429
  # This parameter is required when authenticating using Secrets Manager.
398
430
  #
399
431
  # @option params [required, Array<String>] :sqls
400
- # One or more SQL statements to run.
432
+ # One or more SQL statements to run. The SQL statements are run as
433
+ # a single transaction. They run serially in the order of the array.
434
+ # Subsequent SQL statements don't start until the previous statement in
435
+ # the array completes. If any SQL statement fails, then because they are
436
+ # run as one transaction, all work is rolled back.</p>
401
437
  #
402
438
  # @option params [String] :statement_name
403
439
  # The name of the SQL statements. You can name the SQL statements when
@@ -425,6 +461,7 @@ module Aws::RedshiftDataAPIService
425
461
  # @example Request syntax with placeholder values
426
462
  #
427
463
  # resp = client.batch_execute_statement({
464
+ # client_token: "ClientToken",
428
465
  # cluster_identifier: "Location",
429
466
  # database: "String", # required
430
467
  # db_user: "String",
@@ -456,6 +493,14 @@ module Aws::RedshiftDataAPIService
456
493
 
457
494
  # Cancels a running query. To be canceled, a query must be running.
458
495
  #
496
+ # For more information about the Amazon Redshift Data API and CLI usage
497
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
498
+ # Redshift Management Guide*.
499
+ #
500
+ #
501
+ #
502
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
503
+ #
459
504
  # @option params [required, String] :id
460
505
  # The identifier of the SQL statement to cancel. This value is a
461
506
  # universally unique identifier (UUID) generated by Amazon Redshift Data
@@ -490,6 +535,14 @@ module Aws::RedshiftDataAPIService
490
535
  # query started, when it finished, the query status, the number of rows
491
536
  # returned, and the SQL statement.
492
537
  #
538
+ # For more information about the Amazon Redshift Data API and CLI usage
539
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
540
+ # Redshift Management Guide*.
541
+ #
542
+ #
543
+ #
544
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
545
+ #
493
546
  # @option params [required, String] :id
494
547
  # The identifier of the SQL statement to describe. This value is a
495
548
  # universally unique identifier (UUID) generated by Amazon Redshift Data
@@ -589,6 +642,14 @@ module Aws::RedshiftDataAPIService
589
642
  # specify the workgroup name and database name. Also, permission to
590
643
  # call the `redshift-serverless:GetCredentials` operation is required.
591
644
  #
645
+ # For more information about the Amazon Redshift Data API and CLI usage
646
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
647
+ # Redshift Management Guide*.
648
+ #
649
+ #
650
+ #
651
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
652
+ #
592
653
  # @option params [String] :cluster_identifier
593
654
  # The cluster identifier. This parameter is required when connecting to
594
655
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -707,6 +768,21 @@ module Aws::RedshiftDataAPIService
707
768
  # specify the workgroup name and database name. Also, permission to
708
769
  # call the `redshift-serverless:GetCredentials` operation is required.
709
770
  #
771
+ # For more information about the Amazon Redshift Data API and CLI usage
772
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
773
+ # Redshift Management Guide*.
774
+ #
775
+ #
776
+ #
777
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
778
+ #
779
+ # @option params [String] :client_token
780
+ # A unique, case-sensitive identifier that you provide to ensure the
781
+ # idempotency of the request.
782
+ #
783
+ # **A suitable default value is auto-generated.** You should normally
784
+ # not need to pass this option.**
785
+ #
710
786
  # @option params [String] :cluster_identifier
711
787
  # The cluster identifier. This parameter is required when connecting to
712
788
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -756,6 +832,7 @@ module Aws::RedshiftDataAPIService
756
832
  # @example Request syntax with placeholder values
757
833
  #
758
834
  # resp = client.execute_statement({
835
+ # client_token: "ClientToken",
759
836
  # cluster_identifier: "Location",
760
837
  # database: "String", # required
761
838
  # db_user: "String",
@@ -794,6 +871,14 @@ module Aws::RedshiftDataAPIService
794
871
  # Fetches the temporarily cached result of an SQL statement. A token is
795
872
  # returned to page through the statement results.
796
873
  #
874
+ # For more information about the Amazon Redshift Data API and CLI usage
875
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
876
+ # Redshift Management Guide*.
877
+ #
878
+ #
879
+ #
880
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
881
+ #
797
882
  # @option params [required, String] :id
798
883
  # The identifier of the SQL statement whose results are to be fetched.
799
884
  # This value is a universally unique identifier (UUID) generated by
@@ -880,6 +965,14 @@ module Aws::RedshiftDataAPIService
880
965
  # specify the workgroup name and database name. Also, permission to
881
966
  # call the `redshift-serverless:GetCredentials` operation is required.
882
967
  #
968
+ # For more information about the Amazon Redshift Data API and CLI usage
969
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
970
+ # Redshift Management Guide*.
971
+ #
972
+ #
973
+ #
974
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
975
+ #
883
976
  # @option params [String] :cluster_identifier
884
977
  # The cluster identifier. This parameter is required when connecting to
885
978
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -966,6 +1059,14 @@ module Aws::RedshiftDataAPIService
966
1059
  # specify the workgroup name and database name. Also, permission to
967
1060
  # call the `redshift-serverless:GetCredentials` operation is required.
968
1061
  #
1062
+ # For more information about the Amazon Redshift Data API and CLI usage
1063
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
1064
+ # Redshift Management Guide*.
1065
+ #
1066
+ #
1067
+ #
1068
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
1069
+ #
969
1070
  # @option params [String] :cluster_identifier
970
1071
  # The cluster identifier. This parameter is required when connecting to
971
1072
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -1051,6 +1152,14 @@ module Aws::RedshiftDataAPIService
1051
1152
  # List of SQL statements. By default, only finished statements are
1052
1153
  # shown. A token is returned to page through the statement list.
1053
1154
  #
1155
+ # For more information about the Amazon Redshift Data API and CLI usage
1156
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
1157
+ # Redshift Management Guide*.
1158
+ #
1159
+ #
1160
+ #
1161
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
1162
+ #
1054
1163
  # @option params [Integer] :max_results
1055
1164
  # The maximum number of SQL statements to return in the response. If
1056
1165
  # more SQL statements exist than fit in one response, then `NextToken`
@@ -1161,6 +1270,14 @@ module Aws::RedshiftDataAPIService
1161
1270
  # specify the workgroup name and database name. Also, permission to
1162
1271
  # call the `redshift-serverless:GetCredentials` operation is required.
1163
1272
  #
1273
+ # For more information about the Amazon Redshift Data API and CLI usage
1274
+ # examples, see [Using the Amazon Redshift Data API][1] in the *Amazon
1275
+ # Redshift Management Guide*.
1276
+ #
1277
+ #
1278
+ #
1279
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html
1280
+ #
1164
1281
  # @option params [String] :cluster_identifier
1165
1282
  # The cluster identifier. This parameter is required when connecting to
1166
1283
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -1271,7 +1388,7 @@ module Aws::RedshiftDataAPIService
1271
1388
  params: params,
1272
1389
  config: config)
1273
1390
  context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
1274
- context[:gem_version] = '1.21.0'
1391
+ context[:gem_version] = '1.23.0'
1275
1392
  Seahorse::Client::Request.new(handlers, context)
1276
1393
  end
1277
1394
 
@@ -24,6 +24,7 @@ module Aws::RedshiftDataAPIService
24
24
  BoxedLong = Shapes::IntegerShape.new(name: 'BoxedLong')
25
25
  CancelStatementRequest = Shapes::StructureShape.new(name: 'CancelStatementRequest')
26
26
  CancelStatementResponse = Shapes::StructureShape.new(name: 'CancelStatementResponse')
27
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
27
28
  ColumnList = Shapes::ListShape.new(name: 'ColumnList')
28
29
  ColumnMetadata = Shapes::StructureShape.new(name: 'ColumnMetadata')
29
30
  ColumnMetadataList = Shapes::ListShape.new(name: 'ColumnMetadataList')
@@ -88,6 +89,7 @@ module Aws::RedshiftDataAPIService
88
89
  BatchExecuteStatementException.add_member(:statement_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "StatementId"))
89
90
  BatchExecuteStatementException.struct_class = Types::BatchExecuteStatementException
90
91
 
92
+ BatchExecuteStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
91
93
  BatchExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, location_name: "ClusterIdentifier"))
92
94
  BatchExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
93
95
  BatchExecuteStatementInput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
@@ -182,6 +184,7 @@ module Aws::RedshiftDataAPIService
182
184
  ExecuteStatementException.add_member(:statement_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "StatementId"))
183
185
  ExecuteStatementException.struct_class = Types::ExecuteStatementException
184
186
 
187
+ ExecuteStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
185
188
  ExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, location_name: "ClusterIdentifier"))
186
189
  ExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
187
190
  ExecuteStatementInput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::RedshiftDataAPIService
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::RedshiftDataAPIService
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bH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RzRHVhbFN0YWNrIl19XX1dLCJ0eXBlIjoidHJlZSIs
98
+ InJ1bGVzIjpbeyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoi
99
+ aHR0cHM6Ly9yZWRzaGlmdC1kYXRhLntSZWdpb259LntQYXJ0aXRpb25SZXN1
100
+ bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFk
101
+ ZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpb
102
+ XSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0
103
+ aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJy
104
+ b3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0
105
+ dHBzOi8vcmVkc2hpZnQtZGF0YS57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0
106
+ I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0
107
+ eXBlIjoiZW5kcG9pbnQifV19XX0=
108
+
109
+ JSON
110
+ end
111
+ end
@@ -0,0 +1,155 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::RedshiftDataAPIService
12
+ module Endpoints
13
+
14
+ class BatchExecuteStatement
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CancelStatement
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DescribeStatement
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DescribeTable
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class ExecuteStatement
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class GetStatementResult
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class ListDatabases
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class ListSchemas
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class ListStatements
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class ListTables
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::RedshiftDataAPIService::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ end
155
+ end
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::RedshiftDataAPIService
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::RedshiftDataAPIService::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::RedshiftDataAPIService::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::RedshiftDataAPIService::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :batch_execute_statement
60
+ Aws::RedshiftDataAPIService::Endpoints::BatchExecuteStatement.build(context)
61
+ when :cancel_statement
62
+ Aws::RedshiftDataAPIService::Endpoints::CancelStatement.build(context)
63
+ when :describe_statement
64
+ Aws::RedshiftDataAPIService::Endpoints::DescribeStatement.build(context)
65
+ when :describe_table
66
+ Aws::RedshiftDataAPIService::Endpoints::DescribeTable.build(context)
67
+ when :execute_statement
68
+ Aws::RedshiftDataAPIService::Endpoints::ExecuteStatement.build(context)
69
+ when :get_statement_result
70
+ Aws::RedshiftDataAPIService::Endpoints::GetStatementResult.build(context)
71
+ when :list_databases
72
+ Aws::RedshiftDataAPIService::Endpoints::ListDatabases.build(context)
73
+ when :list_schemas
74
+ Aws::RedshiftDataAPIService::Endpoints::ListSchemas.build(context)
75
+ when :list_statements
76
+ Aws::RedshiftDataAPIService::Endpoints::ListStatements.build(context)
77
+ when :list_tables
78
+ Aws::RedshiftDataAPIService::Endpoints::ListTables.build(context)
79
+ end
80
+ end
81
+ end
82
+
83
+ def add_handlers(handlers, _config)
84
+ handlers.add(Handler, step: :build, priority: 75)
85
+ end
86
+ end
87
+ end
88
+ end
@@ -41,19 +41,13 @@ module Aws::RedshiftDataAPIService
41
41
  include Aws::Structure
42
42
  end
43
43
 
44
- # @note When making an API call, you may pass BatchExecuteStatementInput
45
- # data as a hash:
46
- #
47
- # {
48
- # cluster_identifier: "Location",
49
- # database: "String", # required
50
- # db_user: "String",
51
- # secret_arn: "SecretArn",
52
- # sqls: ["StatementString"], # required
53
- # statement_name: "StatementNameString",
54
- # with_event: false,
55
- # workgroup_name: "WorkgroupNameString",
56
- # }
44
+ # @!attribute [rw] client_token
45
+ # A unique, case-sensitive identifier that you provide to ensure the
46
+ # idempotency of the request.
47
+ #
48
+ # **A suitable default value is auto-generated.** You should normally
49
+ # not need to pass this option.
50
+ # @return [String]
57
51
  #
58
52
  # @!attribute [rw] cluster_identifier
59
53
  # The cluster identifier. This parameter is required when connecting
@@ -79,7 +73,12 @@ module Aws::RedshiftDataAPIService
79
73
  # @return [String]
80
74
  #
81
75
  # @!attribute [rw] sqls
82
- # One or more SQL statements to run.
76
+ # One or more SQL statements to run. The SQL statements are run
77
+ # as a single transaction. They run serially in the order of the
78
+ # array. Subsequent SQL statements don't start until the previous
79
+ # statement in the array completes. If any SQL statement fails, then
80
+ # because they are run as one transaction, all work is rolled
81
+ # back.</p>
83
82
  # @return [Array<String>]
84
83
  #
85
84
  # @!attribute [rw] statement_name
@@ -101,6 +100,7 @@ module Aws::RedshiftDataAPIService
101
100
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/BatchExecuteStatementInput AWS API Documentation
102
101
  #
103
102
  class BatchExecuteStatementInput < Struct.new(
103
+ :client_token,
104
104
  :cluster_identifier,
105
105
  :database,
106
106
  :db_user,
@@ -160,13 +160,6 @@ module Aws::RedshiftDataAPIService
160
160
  include Aws::Structure
161
161
  end
162
162
 
163
- # @note When making an API call, you may pass CancelStatementRequest
164
- # data as a hash:
165
- #
166
- # {
167
- # id: "StatementId", # required
168
- # }
169
- #
170
163
  # @!attribute [rw] id
171
164
  # The identifier of the SQL statement to cancel. This value is a
172
165
  # universally unique identifier (UUID) generated by Amazon Redshift
@@ -283,13 +276,6 @@ module Aws::RedshiftDataAPIService
283
276
  include Aws::Structure
284
277
  end
285
278
 
286
- # @note When making an API call, you may pass DescribeStatementRequest
287
- # data as a hash:
288
- #
289
- # {
290
- # id: "StatementId", # required
291
- # }
292
- #
293
279
  # @!attribute [rw] id
294
280
  # The identifier of the SQL statement to describe. This value is a
295
281
  # universally unique identifier (UUID) generated by Amazon Redshift
@@ -440,22 +426,6 @@ module Aws::RedshiftDataAPIService
440
426
  include Aws::Structure
441
427
  end
442
428
 
443
- # @note When making an API call, you may pass DescribeTableRequest
444
- # data as a hash:
445
- #
446
- # {
447
- # cluster_identifier: "Location",
448
- # connected_database: "String",
449
- # database: "String", # required
450
- # db_user: "String",
451
- # max_results: 1,
452
- # next_token: "String",
453
- # schema: "String",
454
- # secret_arn: "SecretArn",
455
- # table: "String",
456
- # workgroup_name: "WorkgroupNameString",
457
- # }
458
- #
459
429
  # @!attribute [rw] cluster_identifier
460
430
  # The cluster identifier. This parameter is required when connecting
461
431
  # to a cluster and authenticating using either Secrets Manager or
@@ -580,25 +550,13 @@ module Aws::RedshiftDataAPIService
580
550
  include Aws::Structure
581
551
  end
582
552
 
583
- # @note When making an API call, you may pass ExecuteStatementInput
584
- # data as a hash:
585
- #
586
- # {
587
- # cluster_identifier: "Location",
588
- # database: "String", # required
589
- # db_user: "String",
590
- # parameters: [
591
- # {
592
- # name: "ParameterName", # required
593
- # value: "ParameterValue", # required
594
- # },
595
- # ],
596
- # secret_arn: "SecretArn",
597
- # sql: "StatementString", # required
598
- # statement_name: "StatementNameString",
599
- # with_event: false,
600
- # workgroup_name: "WorkgroupNameString",
601
- # }
553
+ # @!attribute [rw] client_token
554
+ # A unique, case-sensitive identifier that you provide to ensure the
555
+ # idempotency of the request.
556
+ #
557
+ # **A suitable default value is auto-generated.** You should normally
558
+ # not need to pass this option.
559
+ # @return [String]
602
560
  #
603
561
  # @!attribute [rw] cluster_identifier
604
562
  # The cluster identifier. This parameter is required when connecting
@@ -650,6 +608,7 @@ module Aws::RedshiftDataAPIService
650
608
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ExecuteStatementInput AWS API Documentation
651
609
  #
652
610
  class ExecuteStatementInput < Struct.new(
611
+ :client_token,
653
612
  :cluster_identifier,
654
613
  :database,
655
614
  :db_user,
@@ -760,14 +719,6 @@ module Aws::RedshiftDataAPIService
760
719
  class Unknown < Field; end
761
720
  end
762
721
 
763
- # @note When making an API call, you may pass GetStatementResultRequest
764
- # data as a hash:
765
- #
766
- # {
767
- # id: "StatementId", # required
768
- # next_token: "String",
769
- # }
770
- #
771
722
  # @!attribute [rw] id
772
723
  # The identifier of the SQL statement whose results are to be fetched.
773
724
  # This value is a universally unique identifier (UUID) generated by
@@ -844,19 +795,6 @@ module Aws::RedshiftDataAPIService
844
795
  include Aws::Structure
845
796
  end
846
797
 
847
- # @note When making an API call, you may pass ListDatabasesRequest
848
- # data as a hash:
849
- #
850
- # {
851
- # cluster_identifier: "Location",
852
- # database: "String", # required
853
- # db_user: "String",
854
- # max_results: 1,
855
- # next_token: "String",
856
- # secret_arn: "SecretArn",
857
- # workgroup_name: "WorkgroupNameString",
858
- # }
859
- #
860
798
  # @!attribute [rw] cluster_identifier
861
799
  # The cluster identifier. This parameter is required when connecting
862
800
  # to a cluster and authenticating using either Secrets Manager or
@@ -937,21 +875,6 @@ module Aws::RedshiftDataAPIService
937
875
  include Aws::Structure
938
876
  end
939
877
 
940
- # @note When making an API call, you may pass ListSchemasRequest
941
- # data as a hash:
942
- #
943
- # {
944
- # cluster_identifier: "Location",
945
- # connected_database: "String",
946
- # database: "String", # required
947
- # db_user: "String",
948
- # max_results: 1,
949
- # next_token: "String",
950
- # schema_pattern: "String",
951
- # secret_arn: "SecretArn",
952
- # workgroup_name: "WorkgroupNameString",
953
- # }
954
- #
955
878
  # @!attribute [rw] cluster_identifier
956
879
  # The cluster identifier. This parameter is required when connecting
957
880
  # to a cluster and authenticating using either Secrets Manager or
@@ -1046,17 +969,6 @@ module Aws::RedshiftDataAPIService
1046
969
  include Aws::Structure
1047
970
  end
1048
971
 
1049
- # @note When making an API call, you may pass ListStatementsRequest
1050
- # data as a hash:
1051
- #
1052
- # {
1053
- # max_results: 1,
1054
- # next_token: "String",
1055
- # role_level: false,
1056
- # statement_name: "StatementNameString",
1057
- # status: "SUBMITTED", # accepts SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED, ALL
1058
- # }
1059
- #
1060
972
  # @!attribute [rw] max_results
1061
973
  # The maximum number of SQL statements to return in the response. If
1062
974
  # more SQL statements exist than fit in one response, then `NextToken`
@@ -1143,22 +1055,6 @@ module Aws::RedshiftDataAPIService
1143
1055
  include Aws::Structure
1144
1056
  end
1145
1057
 
1146
- # @note When making an API call, you may pass ListTablesRequest
1147
- # data as a hash:
1148
- #
1149
- # {
1150
- # cluster_identifier: "Location",
1151
- # connected_database: "String",
1152
- # database: "String", # required
1153
- # db_user: "String",
1154
- # max_results: 1,
1155
- # next_token: "String",
1156
- # schema_pattern: "String",
1157
- # secret_arn: "SecretArn",
1158
- # table_pattern: "String",
1159
- # workgroup_name: "WorkgroupNameString",
1160
- # }
1161
- #
1162
1058
  # @!attribute [rw] cluster_identifier
1163
1059
  # The cluster identifier. This parameter is required when connecting
1164
1060
  # to a cluster and authenticating using either Secrets Manager or
@@ -1289,21 +1185,13 @@ module Aws::RedshiftDataAPIService
1289
1185
 
1290
1186
  # A parameter used in a SQL statement.
1291
1187
  #
1292
- # @note When making an API call, you may pass SqlParameter
1293
- # data as a hash:
1294
- #
1295
- # {
1296
- # name: "ParameterName", # required
1297
- # value: "ParameterValue", # required
1298
- # }
1299
- #
1300
1188
  # @!attribute [rw] name
1301
1189
  # The name of the parameter.
1302
1190
  # @return [String]
1303
1191
  #
1304
1192
  # @!attribute [rw] value
1305
1193
  # The value of the parameter. Amazon Redshift implicitly converts to
1306
- # the proper data type. For more inforation, see [Data types][1] in
1194
+ # the proper data type. For more information, see [Data types][1] in
1307
1195
  # the *Amazon Redshift Database Developer Guide*.
1308
1196
  #
1309
1197
  #
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-redshiftdataapiservice/types'
15
15
  require_relative 'aws-sdk-redshiftdataapiservice/client_api'
16
+ require_relative 'aws-sdk-redshiftdataapiservice/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-redshiftdataapiservice/client'
17
18
  require_relative 'aws-sdk-redshiftdataapiservice/errors'
18
19
  require_relative 'aws-sdk-redshiftdataapiservice/resource'
20
+ require_relative 'aws-sdk-redshiftdataapiservice/endpoint_parameters'
21
+ require_relative 'aws-sdk-redshiftdataapiservice/endpoint_provider'
22
+ require_relative 'aws-sdk-redshiftdataapiservice/endpoints'
19
23
  require_relative 'aws-sdk-redshiftdataapiservice/customizations'
20
24
 
21
25
  # This module provides support for Redshift Data API Service. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-redshiftdataapiservice/customizations'
48
52
  # @!group service
49
53
  module Aws::RedshiftDataAPIService
50
54
 
51
- GEM_VERSION = '1.21.0'
55
+ GEM_VERSION = '1.23.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-redshiftdataapiservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.23.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: 2022-06-16 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-redshiftdataapiservice/client.rb
60
60
  - lib/aws-sdk-redshiftdataapiservice/client_api.rb
61
61
  - lib/aws-sdk-redshiftdataapiservice/customizations.rb
62
+ - lib/aws-sdk-redshiftdataapiservice/endpoint_parameters.rb
63
+ - lib/aws-sdk-redshiftdataapiservice/endpoint_provider.rb
64
+ - lib/aws-sdk-redshiftdataapiservice/endpoints.rb
62
65
  - lib/aws-sdk-redshiftdataapiservice/errors.rb
66
+ - lib/aws-sdk-redshiftdataapiservice/plugins/endpoints.rb
63
67
  - lib/aws-sdk-redshiftdataapiservice/resource.rb
64
68
  - lib/aws-sdk-redshiftdataapiservice/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby