aws-sdk-redshiftdataapiservice 1.22.0 → 1.24.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: 1e64f6f1fbd5d2851e4e9af309aa8c391149c073126b08f8285813cf07a707c0
4
- data.tar.gz: 78b056c13630563f1fdf3f1985e14a578dddeca5a25618b0b1bd7556632f19d0
3
+ metadata.gz: 2a3b446b919f690dabaf6cfc4cd79890fbeb5f0cd61f37d01607add5419cea1c
4
+ data.tar.gz: fbd5a904c0279d4452e9ba5e8abf0795fff45848eca5bc733827e1195fd0ae8c
5
5
  SHA512:
6
- metadata.gz: 695645f2c10c7eb533bacb634f538f058dafbc7ab060565c72d9052df4558b5adb52d43b4d37621a3cc3f8e0aef9bf443399b0170ddf97e5aa13a86ff03aeb2a
7
- data.tar.gz: 2c6e6e834417b47c2b207e17ab24f9c4b5156019b9dcb1e27892bad9c2ba4efcae35590a4951f8ee835064b294cfc788100d83e45c635d78971573ca6f48687d
6
+ metadata.gz: 84463fb771e17c4d18d252a9a8677d565a4b8ff597b29bedc0f482f51662cc95b120717a1caf45672afffc9186174689fc4dfbe8b083bf8580c885cd5067b969
7
+ data.tar.gz: 82be171094e3b7778454d5d98e00d5ddeae0baaf52d85c0b277799125664b5cbfc92f5adcd7c4c6b277eb6a28ab6429a8a5d9304528b57c14ef3decf69afe262
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.24.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.23.0 (2022-12-14)
12
+ ------------------
13
+
14
+ * 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.
15
+
4
16
  1.22.0 (2022-10-25)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.22.0
1
+ 1.24.0
@@ -396,6 +396,21 @@ module Aws::RedshiftDataAPIService
396
396
  # specify the workgroup name and database name. Also, permission to
397
397
  # call the `redshift-serverless:GetCredentials` operation is required.
398
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
+ #
399
414
  # @option params [String] :cluster_identifier
400
415
  # The cluster identifier. This parameter is required when connecting to
401
416
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -414,7 +429,11 @@ module Aws::RedshiftDataAPIService
414
429
  # This parameter is required when authenticating using Secrets Manager.
415
430
  #
416
431
  # @option params [required, Array<String>] :sqls
417
- # 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>
418
437
  #
419
438
  # @option params [String] :statement_name
420
439
  # The name of the SQL statements. You can name the SQL statements when
@@ -442,6 +461,7 @@ module Aws::RedshiftDataAPIService
442
461
  # @example Request syntax with placeholder values
443
462
  #
444
463
  # resp = client.batch_execute_statement({
464
+ # client_token: "ClientToken",
445
465
  # cluster_identifier: "Location",
446
466
  # database: "String", # required
447
467
  # db_user: "String",
@@ -473,6 +493,14 @@ module Aws::RedshiftDataAPIService
473
493
 
474
494
  # Cancels a running query. To be canceled, a query must be running.
475
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
+ #
476
504
  # @option params [required, String] :id
477
505
  # The identifier of the SQL statement to cancel. This value is a
478
506
  # universally unique identifier (UUID) generated by Amazon Redshift Data
@@ -507,6 +535,14 @@ module Aws::RedshiftDataAPIService
507
535
  # query started, when it finished, the query status, the number of rows
508
536
  # returned, and the SQL statement.
509
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
+ #
510
546
  # @option params [required, String] :id
511
547
  # The identifier of the SQL statement to describe. This value is a
512
548
  # universally unique identifier (UUID) generated by Amazon Redshift Data
@@ -606,6 +642,14 @@ module Aws::RedshiftDataAPIService
606
642
  # specify the workgroup name and database name. Also, permission to
607
643
  # call the `redshift-serverless:GetCredentials` operation is required.
608
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
+ #
609
653
  # @option params [String] :cluster_identifier
610
654
  # The cluster identifier. This parameter is required when connecting to
611
655
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -724,6 +768,21 @@ module Aws::RedshiftDataAPIService
724
768
  # specify the workgroup name and database name. Also, permission to
725
769
  # call the `redshift-serverless:GetCredentials` operation is required.
726
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
+ #
727
786
  # @option params [String] :cluster_identifier
728
787
  # The cluster identifier. This parameter is required when connecting to
729
788
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -773,6 +832,7 @@ module Aws::RedshiftDataAPIService
773
832
  # @example Request syntax with placeholder values
774
833
  #
775
834
  # resp = client.execute_statement({
835
+ # client_token: "ClientToken",
776
836
  # cluster_identifier: "Location",
777
837
  # database: "String", # required
778
838
  # db_user: "String",
@@ -811,6 +871,14 @@ module Aws::RedshiftDataAPIService
811
871
  # Fetches the temporarily cached result of an SQL statement. A token is
812
872
  # returned to page through the statement results.
813
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
+ #
814
882
  # @option params [required, String] :id
815
883
  # The identifier of the SQL statement whose results are to be fetched.
816
884
  # This value is a universally unique identifier (UUID) generated by
@@ -897,6 +965,14 @@ module Aws::RedshiftDataAPIService
897
965
  # specify the workgroup name and database name. Also, permission to
898
966
  # call the `redshift-serverless:GetCredentials` operation is required.
899
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
+ #
900
976
  # @option params [String] :cluster_identifier
901
977
  # The cluster identifier. This parameter is required when connecting to
902
978
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -983,6 +1059,14 @@ module Aws::RedshiftDataAPIService
983
1059
  # specify the workgroup name and database name. Also, permission to
984
1060
  # call the `redshift-serverless:GetCredentials` operation is required.
985
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
+ #
986
1070
  # @option params [String] :cluster_identifier
987
1071
  # The cluster identifier. This parameter is required when connecting to
988
1072
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -1068,6 +1152,14 @@ module Aws::RedshiftDataAPIService
1068
1152
  # List of SQL statements. By default, only finished statements are
1069
1153
  # shown. A token is returned to page through the statement list.
1070
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
+ #
1071
1163
  # @option params [Integer] :max_results
1072
1164
  # The maximum number of SQL statements to return in the response. If
1073
1165
  # more SQL statements exist than fit in one response, then `NextToken`
@@ -1178,6 +1270,14 @@ module Aws::RedshiftDataAPIService
1178
1270
  # specify the workgroup name and database name. Also, permission to
1179
1271
  # call the `redshift-serverless:GetCredentials` operation is required.
1180
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
+ #
1181
1281
  # @option params [String] :cluster_identifier
1182
1282
  # The cluster identifier. This parameter is required when connecting to
1183
1283
  # a cluster and authenticating using either Secrets Manager or temporary
@@ -1288,7 +1388,7 @@ module Aws::RedshiftDataAPIService
1288
1388
  params: params,
1289
1389
  config: config)
1290
1390
  context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
1291
- context[:gem_version] = '1.22.0'
1391
+ context[:gem_version] = '1.24.0'
1292
1392
  Seahorse::Client::Request.new(handlers, context)
1293
1393
  end
1294
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"))
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::RedshiftDataAPIService
11
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
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
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://redshift-data-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
33
+ 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://redshift-data-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ 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://redshift-data.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://redshift-data.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
-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lbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpb
102
- XSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0
103
- aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJy
104
- b3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0
105
- dHBzOi8vcmVkc2hpZnQtZGF0YS57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0
106
- I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0
107
- eXBlIjoiZW5kcG9pbnQifV19XX0=
108
-
109
- JSON
110
50
  end
111
51
  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
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-redshiftdataapiservice/customizations'
52
52
  # @!group service
53
53
  module Aws::RedshiftDataAPIService
54
54
 
55
- GEM_VERSION = '1.22.0'
55
+ GEM_VERSION = '1.24.0'
56
56
 
57
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.22.0
4
+ version: 1.24.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-10-25 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core