aws-sdk-redshiftdataapiservice 1.13.0 → 1.17.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: cea5c5e149837519ee88405096e7f8b8501aa64124ec8df95bc1f7f5221ca358
4
- data.tar.gz: b822f9b1dc8c0e3c3e511310f37b3991e47a389a091a58ecba2198ba74872b54
3
+ metadata.gz: 51dcada087f227c7faf145a0c96cd4e10b83c3945245802a5a64c4d3f19ced1e
4
+ data.tar.gz: 2a038f72488f15108e0aab142bef2bf2bf100b42f1f6790c3a23687ce9ceb3be
5
5
  SHA512:
6
- metadata.gz: 064d630006c2279c714eedb388407538ec48b7b7423afa7f05967462d39490efc17fa952cc1deefe929a23098ba2c176652ac238bd27603db3b68c09c71f92b3
7
- data.tar.gz: 3dd38d192e3bcdd04e1f1d4989f197a66835f99d39774713aed4749725d31850db9ae7b28fcaa8f30269c3fa6002f4474473737176ffd53327432adbcf5457d2
6
+ metadata.gz: 7c5f1715c3d18a54492301e2aaa2fa20e31199ed577d1c53485418fa305f1f435e44ceeb0bdf91245c53225468cbc42bf5229ff57323c4d04b196948e9d7ef0d
7
+ data.tar.gz: 2f34ffe2377689c19f00fc5239ce1e1978e924d022122309cef8ef6cdfb5b0d957f93e2dce79c611ed10d8de6b7e824af9f724f2f258e853f22bd5bc6303eb0a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.17.0 (2021-12-21)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.16.0 (2021-11-30)
10
+ ------------------
11
+
12
+ * Feature - Data API now supports serverless queries.
13
+
14
+ 1.15.0 (2021-11-18)
15
+ ------------------
16
+
17
+ * Feature - Rolling back Data API serverless features until dependencies are live.
18
+
19
+ 1.14.0 (2021-11-17)
20
+ ------------------
21
+
22
+ * Feature - Data API now supports serverless requests.
23
+
4
24
  1.13.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.13.0
1
+ 1.17.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
30
31
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
32
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
33
 
@@ -73,6 +74,7 @@ module Aws::RedshiftDataAPIService
73
74
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
75
  add_plugin(Aws::Plugins::TransferEncoding)
75
76
  add_plugin(Aws::Plugins::HttpChecksum)
77
+ add_plugin(Aws::Plugins::DefaultsMode)
76
78
  add_plugin(Aws::Plugins::SignatureV4)
77
79
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
80
 
@@ -119,7 +121,9 @@ module Aws::RedshiftDataAPIService
119
121
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
122
  # are very aggressive. Construct and pass an instance of
121
123
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
124
+ # enable retries and extended timeouts. Instance profile credential
125
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
126
+ # to true.
123
127
  #
124
128
  # @option options [required, String] :region
125
129
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +177,10 @@ module Aws::RedshiftDataAPIService
173
177
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
178
  # a clock skew correction and retry requests with skewed client clocks.
175
179
  #
180
+ # @option options [String] :defaults_mode ("legacy")
181
+ # See {Aws::DefaultsModeConfiguration} for a list of the
182
+ # accepted modes and the configuration defaults that are included.
183
+ #
176
184
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
185
  # Set to true to disable SDK automatically adding host prefix
178
186
  # to default service endpoint when available.
@@ -305,7 +313,7 @@ module Aws::RedshiftDataAPIService
305
313
  # seconds to wait when opening a HTTP session before raising a
306
314
  # `Timeout::Error`.
307
315
  #
308
- # @option options [Integer] :http_read_timeout (60) The default
316
+ # @option options [Float] :http_read_timeout (60) The default
309
317
  # number of seconds to wait for response data. This value can
310
318
  # safely be set per-request on the session.
311
319
  #
@@ -321,6 +329,9 @@ module Aws::RedshiftDataAPIService
321
329
  # disables this behaviour. This value can safely be set per
322
330
  # request on the session.
323
331
  #
332
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
333
+ # in seconds.
334
+ #
324
335
  # @option options [Boolean] :http_wire_trace (false) When `true`,
325
336
  # HTTP debug output will be sent to the `:logger`.
326
337
  #
@@ -351,26 +362,30 @@ module Aws::RedshiftDataAPIService
351
362
  # authorization method, use one of the following combinations of request
352
363
  # parameters:
353
364
  #
354
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
355
- # secret, the database name, and the cluster identifier that matches
356
- # the cluster in the secret.
365
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
366
+ # Resource Name (ARN) of the secret, the database name, and the
367
+ # cluster identifier that matches the cluster in the secret. When
368
+ # connecting to a serverless endpoint, specify the Amazon Resource
369
+ # Name (ARN) of the secret and the database name.
357
370
  #
358
- # * Temporary credentials - specify the cluster identifier, the database
359
- # name, and the database user name. Permission to call the
360
- # `redshift:GetClusterCredentials` operation is required to use this
361
- # method.
371
+ # * Temporary credentials - when connecting to a cluster, specify the
372
+ # cluster identifier, the database name, and the database user name.
373
+ # Also, permission to call the `redshift:GetClusterCredentials`
374
+ # operation is required. When connecting to a serverless endpoint,
375
+ # specify the database name.
362
376
  #
363
- # @option params [required, String] :cluster_identifier
364
- # The cluster identifier. This parameter is required when authenticating
365
- # using either Secrets Manager or temporary credentials.
377
+ # @option params [String] :cluster_identifier
378
+ # The cluster identifier. This parameter is required when connecting to
379
+ # a cluster and authenticating using either Secrets Manager or temporary
380
+ # credentials.
366
381
  #
367
382
  # @option params [required, String] :database
368
383
  # The name of the database. This parameter is required when
369
384
  # authenticating using either Secrets Manager or temporary credentials.
370
385
  #
371
386
  # @option params [String] :db_user
372
- # The database user name. This parameter is required when authenticating
373
- # using temporary credentials.
387
+ # The database user name. This parameter is required when connecting to
388
+ # a cluster and authenticating using temporary credentials.
374
389
  #
375
390
  # @option params [String] :secret_arn
376
391
  # The name or ARN of the secret that enables access to the database.
@@ -399,7 +414,7 @@ module Aws::RedshiftDataAPIService
399
414
  # @example Request syntax with placeholder values
400
415
  #
401
416
  # resp = client.batch_execute_statement({
402
- # cluster_identifier: "Location", # required
417
+ # cluster_identifier: "Location",
403
418
  # database: "String", # required
404
419
  # db_user: "String",
405
420
  # secret_arn: "SecretArn",
@@ -546,18 +561,22 @@ module Aws::RedshiftDataAPIService
546
561
  # page through the column list. Depending on the authorization method,
547
562
  # use one of the following combinations of request parameters:
548
563
  #
549
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
550
- # secret, the database name, and the cluster identifier that matches
551
- # the cluster in the secret.
564
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
565
+ # Resource Name (ARN) of the secret, the database name, and the
566
+ # cluster identifier that matches the cluster in the secret. When
567
+ # connecting to a serverless endpoint, specify the Amazon Resource
568
+ # Name (ARN) of the secret and the database name.
552
569
  #
553
- # * Temporary credentials - specify the cluster identifier, the database
554
- # name, and the database user name. Permission to call the
555
- # `redshift:GetClusterCredentials` operation is required to use this
556
- # method.
570
+ # * Temporary credentials - when connecting to a cluster, specify the
571
+ # cluster identifier, the database name, and the database user name.
572
+ # Also, permission to call the `redshift:GetClusterCredentials`
573
+ # operation is required. When connecting to a serverless endpoint,
574
+ # specify the database name.
557
575
  #
558
- # @option params [required, String] :cluster_identifier
559
- # The cluster identifier. This parameter is required when authenticating
560
- # using either Secrets Manager or temporary credentials.
576
+ # @option params [String] :cluster_identifier
577
+ # The cluster identifier. This parameter is required when connecting to
578
+ # a cluster and authenticating using either Secrets Manager or temporary
579
+ # credentials.
561
580
  #
562
581
  # @option params [String] :connected_database
563
582
  # A database name. The connected database is specified when you connect
@@ -569,8 +588,8 @@ module Aws::RedshiftDataAPIService
569
588
  # connect to with your authentication credentials.
570
589
  #
571
590
  # @option params [String] :db_user
572
- # The database user name. This parameter is required when authenticating
573
- # using temporary credentials.
591
+ # The database user name. This parameter is required when connecting to
592
+ # a cluster and authenticating using temporary credentials.
574
593
  #
575
594
  # @option params [Integer] :max_results
576
595
  # The maximum number of tables to return in the response. If more tables
@@ -609,7 +628,7 @@ module Aws::RedshiftDataAPIService
609
628
  # @example Request syntax with placeholder values
610
629
  #
611
630
  # resp = client.describe_table({
612
- # cluster_identifier: "Location", # required
631
+ # cluster_identifier: "Location",
613
632
  # connected_database: "String",
614
633
  # database: "String", # required
615
634
  # db_user: "String",
@@ -653,26 +672,30 @@ module Aws::RedshiftDataAPIService
653
672
  # statement. Depending on the authorization method, use one of the
654
673
  # following combinations of request parameters:
655
674
  #
656
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
657
- # secret, the database name, and the cluster identifier that matches
658
- # the cluster in the secret.
675
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
676
+ # Resource Name (ARN) of the secret, the database name, and the
677
+ # cluster identifier that matches the cluster in the secret. When
678
+ # connecting to a serverless endpoint, specify the Amazon Resource
679
+ # Name (ARN) of the secret and the database name.
659
680
  #
660
- # * Temporary credentials - specify the cluster identifier, the database
661
- # name, and the database user name. Permission to call the
662
- # `redshift:GetClusterCredentials` operation is required to use this
663
- # method.
681
+ # * Temporary credentials - when connecting to a cluster, specify the
682
+ # cluster identifier, the database name, and the database user name.
683
+ # Also, permission to call the `redshift:GetClusterCredentials`
684
+ # operation is required. When connecting to a serverless endpoint,
685
+ # specify the database name.
664
686
  #
665
- # @option params [required, String] :cluster_identifier
666
- # The cluster identifier. This parameter is required when authenticating
667
- # using either Secrets Manager or temporary credentials.
687
+ # @option params [String] :cluster_identifier
688
+ # The cluster identifier. This parameter is required when connecting to
689
+ # a cluster and authenticating using either Secrets Manager or temporary
690
+ # credentials.
668
691
  #
669
692
  # @option params [required, String] :database
670
693
  # The name of the database. This parameter is required when
671
694
  # authenticating using either Secrets Manager or temporary credentials.
672
695
  #
673
696
  # @option params [String] :db_user
674
- # The database user name. This parameter is required when authenticating
675
- # using temporary credentials.
697
+ # The database user name. This parameter is required when connecting to
698
+ # a cluster and authenticating using temporary credentials.
676
699
  #
677
700
  # @option params [Array<Types::SqlParameter>] :parameters
678
701
  # The parameters for the SQL statement.
@@ -704,7 +727,7 @@ module Aws::RedshiftDataAPIService
704
727
  # @example Request syntax with placeholder values
705
728
  #
706
729
  # resp = client.execute_statement({
707
- # cluster_identifier: "Location", # required
730
+ # cluster_identifier: "Location",
708
731
  # database: "String", # required
709
732
  # db_user: "String",
710
733
  # parameters: [
@@ -813,26 +836,30 @@ module Aws::RedshiftDataAPIService
813
836
  # the database list. Depending on the authorization method, use one of
814
837
  # the following combinations of request parameters:
815
838
  #
816
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
817
- # secret, the database name, and the cluster identifier that matches
818
- # the cluster in the secret.
839
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
840
+ # Resource Name (ARN) of the secret, the database name, and the
841
+ # cluster identifier that matches the cluster in the secret. When
842
+ # connecting to a serverless endpoint, specify the Amazon Resource
843
+ # Name (ARN) of the secret and the database name.
819
844
  #
820
- # * Temporary credentials - specify the cluster identifier, the database
821
- # name, and the database user name. Permission to call the
822
- # `redshift:GetClusterCredentials` operation is required to use this
823
- # method.
845
+ # * Temporary credentials - when connecting to a cluster, specify the
846
+ # cluster identifier, the database name, and the database user name.
847
+ # Also, permission to call the `redshift:GetClusterCredentials`
848
+ # operation is required. When connecting to a serverless endpoint,
849
+ # specify the database name.
824
850
  #
825
- # @option params [required, String] :cluster_identifier
826
- # The cluster identifier. This parameter is required when authenticating
827
- # using either Secrets Manager or temporary credentials.
851
+ # @option params [String] :cluster_identifier
852
+ # The cluster identifier. This parameter is required when connecting to
853
+ # a cluster and authenticating using either Secrets Manager or temporary
854
+ # credentials.
828
855
  #
829
856
  # @option params [required, String] :database
830
857
  # The name of the database. This parameter is required when
831
858
  # authenticating using either Secrets Manager or temporary credentials.
832
859
  #
833
860
  # @option params [String] :db_user
834
- # The database user name. This parameter is required when authenticating
835
- # using temporary credentials.
861
+ # The database user name. This parameter is required when connecting to
862
+ # a cluster and authenticating using temporary credentials.
836
863
  #
837
864
  # @option params [Integer] :max_results
838
865
  # The maximum number of databases to return in the response. If more
@@ -861,7 +888,7 @@ module Aws::RedshiftDataAPIService
861
888
  # @example Request syntax with placeholder values
862
889
  #
863
890
  # resp = client.list_databases({
864
- # cluster_identifier: "Location", # required
891
+ # cluster_identifier: "Location",
865
892
  # database: "String", # required
866
893
  # db_user: "String",
867
894
  # max_results: 1,
@@ -888,18 +915,22 @@ module Aws::RedshiftDataAPIService
888
915
  # the schema list. Depending on the authorization method, use one of the
889
916
  # following combinations of request parameters:
890
917
  #
891
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
892
- # secret, the database name, and the cluster identifier that matches
893
- # the cluster in the secret.
918
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
919
+ # Resource Name (ARN) of the secret, the database name, and the
920
+ # cluster identifier that matches the cluster in the secret. When
921
+ # connecting to a serverless endpoint, specify the Amazon Resource
922
+ # Name (ARN) of the secret and the database name.
894
923
  #
895
- # * Temporary credentials - specify the cluster identifier, the database
896
- # name, and the database user name. Permission to call the
897
- # `redshift:GetClusterCredentials` operation is required to use this
898
- # method.
924
+ # * Temporary credentials - when connecting to a cluster, specify the
925
+ # cluster identifier, the database name, and the database user name.
926
+ # Also, permission to call the `redshift:GetClusterCredentials`
927
+ # operation is required. When connecting to a serverless endpoint,
928
+ # specify the database name.
899
929
  #
900
- # @option params [required, String] :cluster_identifier
901
- # The cluster identifier. This parameter is required when authenticating
902
- # using either Secrets Manager or temporary credentials.
930
+ # @option params [String] :cluster_identifier
931
+ # The cluster identifier. This parameter is required when connecting to
932
+ # a cluster and authenticating using either Secrets Manager or temporary
933
+ # credentials.
903
934
  #
904
935
  # @option params [String] :connected_database
905
936
  # A database name. The connected database is specified when you connect
@@ -911,8 +942,8 @@ module Aws::RedshiftDataAPIService
911
942
  # connect to with your authentication credentials.
912
943
  #
913
944
  # @option params [String] :db_user
914
- # The database user name. This parameter is required when authenticating
915
- # using temporary credentials.
945
+ # The database user name. This parameter is required when connecting to
946
+ # a cluster and authenticating using temporary credentials.
916
947
  #
917
948
  # @option params [Integer] :max_results
918
949
  # The maximum number of schemas to return in the response. If more
@@ -947,7 +978,7 @@ module Aws::RedshiftDataAPIService
947
978
  # @example Request syntax with placeholder values
948
979
  #
949
980
  # resp = client.list_schemas({
950
- # cluster_identifier: "Location", # required
981
+ # cluster_identifier: "Location",
951
982
  # connected_database: "String",
952
983
  # database: "String", # required
953
984
  # db_user: "String",
@@ -1072,18 +1103,22 @@ module Aws::RedshiftDataAPIService
1072
1103
  # Depending on the authorization method, use one of the following
1073
1104
  # combinations of request parameters:
1074
1105
  #
1075
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
1076
- # secret, the database name, and the cluster identifier that matches
1077
- # the cluster in the secret.
1106
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
1107
+ # Resource Name (ARN) of the secret, the database name, and the
1108
+ # cluster identifier that matches the cluster in the secret. When
1109
+ # connecting to a serverless endpoint, specify the Amazon Resource
1110
+ # Name (ARN) of the secret and the database name.
1078
1111
  #
1079
- # * Temporary credentials - specify the cluster identifier, the database
1080
- # name, and the database user name. Permission to call the
1081
- # `redshift:GetClusterCredentials` operation is required to use this
1082
- # method.
1112
+ # * Temporary credentials - when connecting to a cluster, specify the
1113
+ # cluster identifier, the database name, and the database user name.
1114
+ # Also, permission to call the `redshift:GetClusterCredentials`
1115
+ # operation is required. When connecting to a serverless endpoint,
1116
+ # specify the database name.
1083
1117
  #
1084
- # @option params [required, String] :cluster_identifier
1085
- # The cluster identifier. This parameter is required when authenticating
1086
- # using either Secrets Manager or temporary credentials.
1118
+ # @option params [String] :cluster_identifier
1119
+ # The cluster identifier. This parameter is required when connecting to
1120
+ # a cluster and authenticating using either Secrets Manager or temporary
1121
+ # credentials.
1087
1122
  #
1088
1123
  # @option params [String] :connected_database
1089
1124
  # A database name. The connected database is specified when you connect
@@ -1095,8 +1130,8 @@ module Aws::RedshiftDataAPIService
1095
1130
  # connect to with your authentication credentials.
1096
1131
  #
1097
1132
  # @option params [String] :db_user
1098
- # The database user name. This parameter is required when authenticating
1099
- # using temporary credentials.
1133
+ # The database user name. This parameter is required when connecting to
1134
+ # a cluster and authenticating using temporary credentials.
1100
1135
  #
1101
1136
  # @option params [Integer] :max_results
1102
1137
  # The maximum number of tables to return in the response. If more tables
@@ -1143,7 +1178,7 @@ module Aws::RedshiftDataAPIService
1143
1178
  # @example Request syntax with placeholder values
1144
1179
  #
1145
1180
  # resp = client.list_tables({
1146
- # cluster_identifier: "Location", # required
1181
+ # cluster_identifier: "Location",
1147
1182
  # connected_database: "String",
1148
1183
  # database: "String", # required
1149
1184
  # db_user: "String",
@@ -1184,7 +1219,7 @@ module Aws::RedshiftDataAPIService
1184
1219
  params: params,
1185
1220
  config: config)
1186
1221
  context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
1187
- context[:gem_version] = '1.13.0'
1222
+ context[:gem_version] = '1.17.0'
1188
1223
  Seahorse::Client::Request.new(handlers, context)
1189
1224
  end
1190
1225
 
@@ -27,6 +27,7 @@ module Aws::RedshiftDataAPIService
27
27
  ColumnList = Shapes::ListShape.new(name: 'ColumnList')
28
28
  ColumnMetadata = Shapes::StructureShape.new(name: 'ColumnMetadata')
29
29
  ColumnMetadataList = Shapes::ListShape.new(name: 'ColumnMetadataList')
30
+ DatabaseConnectionException = Shapes::StructureShape.new(name: 'DatabaseConnectionException')
30
31
  DatabaseList = Shapes::ListShape.new(name: 'DatabaseList')
31
32
  DescribeStatementRequest = Shapes::StructureShape.new(name: 'DescribeStatementRequest')
32
33
  DescribeStatementResponse = Shapes::StructureShape.new(name: 'DescribeStatementResponse')
@@ -86,7 +87,7 @@ module Aws::RedshiftDataAPIService
86
87
  BatchExecuteStatementException.add_member(:statement_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "StatementId"))
87
88
  BatchExecuteStatementException.struct_class = Types::BatchExecuteStatementException
88
89
 
89
- BatchExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
90
+ BatchExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, location_name: "ClusterIdentifier"))
90
91
  BatchExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
91
92
  BatchExecuteStatementInput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
92
93
  BatchExecuteStatementInput.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
@@ -128,6 +129,9 @@ module Aws::RedshiftDataAPIService
128
129
 
129
130
  ColumnMetadataList.member = Shapes::ShapeRef.new(shape: ColumnMetadata)
130
131
 
132
+ DatabaseConnectionException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
133
+ DatabaseConnectionException.struct_class = Types::DatabaseConnectionException
134
+
131
135
  DatabaseList.member = Shapes::ShapeRef.new(shape: String)
132
136
 
133
137
  DescribeStatementRequest.add_member(:id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "Id"))
@@ -153,7 +157,7 @@ module Aws::RedshiftDataAPIService
153
157
  DescribeStatementResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
154
158
  DescribeStatementResponse.struct_class = Types::DescribeStatementResponse
155
159
 
156
- DescribeTableRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
160
+ DescribeTableRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, location_name: "ClusterIdentifier"))
157
161
  DescribeTableRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
158
162
  DescribeTableRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
159
163
  DescribeTableRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
@@ -173,7 +177,7 @@ module Aws::RedshiftDataAPIService
173
177
  ExecuteStatementException.add_member(:statement_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "StatementId"))
174
178
  ExecuteStatementException.struct_class = Types::ExecuteStatementException
175
179
 
176
- ExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
180
+ ExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, location_name: "ClusterIdentifier"))
177
181
  ExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
178
182
  ExecuteStatementInput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
179
183
  ExecuteStatementInput.add_member(:parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "Parameters"))
@@ -222,7 +226,7 @@ module Aws::RedshiftDataAPIService
222
226
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
223
227
  InternalServerException.struct_class = Types::InternalServerException
224
228
 
225
- ListDatabasesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
229
+ ListDatabasesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, location_name: "ClusterIdentifier"))
226
230
  ListDatabasesRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
227
231
  ListDatabasesRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
228
232
  ListDatabasesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
@@ -234,7 +238,7 @@ module Aws::RedshiftDataAPIService
234
238
  ListDatabasesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
235
239
  ListDatabasesResponse.struct_class = Types::ListDatabasesResponse
236
240
 
237
- ListSchemasRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
241
+ ListSchemasRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, location_name: "ClusterIdentifier"))
238
242
  ListSchemasRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
239
243
  ListSchemasRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
240
244
  ListSchemasRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
@@ -259,7 +263,7 @@ module Aws::RedshiftDataAPIService
259
263
  ListStatementsResponse.add_member(:statements, Shapes::ShapeRef.new(shape: StatementList, required: true, location_name: "Statements"))
260
264
  ListStatementsResponse.struct_class = Types::ListStatementsResponse
261
265
 
262
- ListTablesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
266
+ ListTablesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, location_name: "ClusterIdentifier"))
263
267
  ListTablesRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
264
268
  ListTablesRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
265
269
  ListTablesRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
@@ -370,6 +374,7 @@ module Aws::RedshiftDataAPIService
370
374
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
371
375
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
372
376
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
377
+ o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
373
378
  end)
374
379
 
375
380
  api.add_operation(:describe_statement, Seahorse::Model::Operation.new.tap do |o|
@@ -391,6 +396,7 @@ module Aws::RedshiftDataAPIService
391
396
  o.output = Shapes::ShapeRef.new(shape: DescribeTableResponse)
392
397
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
393
398
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
399
+ o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
394
400
  o[:pager] = Aws::Pager.new(
395
401
  limit_key: "max_results",
396
402
  tokens: {
@@ -434,6 +440,7 @@ module Aws::RedshiftDataAPIService
434
440
  o.output = Shapes::ShapeRef.new(shape: ListDatabasesResponse)
435
441
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
436
442
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
443
+ o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
437
444
  o[:pager] = Aws::Pager.new(
438
445
  limit_key: "max_results",
439
446
  tokens: {
@@ -450,6 +457,7 @@ module Aws::RedshiftDataAPIService
450
457
  o.output = Shapes::ShapeRef.new(shape: ListSchemasResponse)
451
458
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
452
459
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
460
+ o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
453
461
  o[:pager] = Aws::Pager.new(
454
462
  limit_key: "max_results",
455
463
  tokens: {
@@ -482,6 +490,7 @@ module Aws::RedshiftDataAPIService
482
490
  o.output = Shapes::ShapeRef.new(shape: ListTablesResponse)
483
491
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
484
492
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
493
+ o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
485
494
  o[:pager] = Aws::Pager.new(
486
495
  limit_key: "max_results",
487
496
  tokens: {
@@ -29,6 +29,7 @@ module Aws::RedshiftDataAPIService
29
29
  # ## Error Classes
30
30
  # * {ActiveStatementsExceededException}
31
31
  # * {BatchExecuteStatementException}
32
+ # * {DatabaseConnectionException}
32
33
  # * {ExecuteStatementException}
33
34
  # * {InternalServerException}
34
35
  # * {ResourceNotFoundException}
@@ -75,6 +76,21 @@ module Aws::RedshiftDataAPIService
75
76
  end
76
77
  end
77
78
 
79
+ class DatabaseConnectionException < ServiceError
80
+
81
+ # @param [Seahorse::Client::RequestContext] context
82
+ # @param [String] message
83
+ # @param [Aws::RedshiftDataAPIService::Types::DatabaseConnectionException] data
84
+ def initialize(context, message, data = Aws::EmptyStructure.new)
85
+ super(context, message, data)
86
+ end
87
+
88
+ # @return [String]
89
+ def message
90
+ @message || @data[:message]
91
+ end
92
+ end
93
+
78
94
  class ExecuteStatementException < ServiceError
79
95
 
80
96
  # @param [Seahorse::Client::RequestContext] context
@@ -45,7 +45,7 @@ module Aws::RedshiftDataAPIService
45
45
  # data as a hash:
46
46
  #
47
47
  # {
48
- # cluster_identifier: "Location", # required
48
+ # cluster_identifier: "Location",
49
49
  # database: "String", # required
50
50
  # db_user: "String",
51
51
  # secret_arn: "SecretArn",
@@ -55,9 +55,9 @@ module Aws::RedshiftDataAPIService
55
55
  # }
56
56
  #
57
57
  # @!attribute [rw] cluster_identifier
58
- # The cluster identifier. This parameter is required when
59
- # authenticating using either Secrets Manager or temporary
60
- # credentials.
58
+ # The cluster identifier. This parameter is required when connecting
59
+ # to a cluster and authenticating using either Secrets Manager or
60
+ # temporary credentials.
61
61
  # @return [String]
62
62
  #
63
63
  # @!attribute [rw] database
@@ -67,8 +67,8 @@ module Aws::RedshiftDataAPIService
67
67
  # @return [String]
68
68
  #
69
69
  # @!attribute [rw] db_user
70
- # The database user name. This parameter is required when
71
- # authenticating using temporary credentials.
70
+ # The database user name. This parameter is required when connecting
71
+ # to a cluster and authenticating using temporary credentials.
72
72
  # @return [String]
73
73
  #
74
74
  # @!attribute [rw] secret_arn
@@ -106,7 +106,8 @@ module Aws::RedshiftDataAPIService
106
106
  end
107
107
 
108
108
  # @!attribute [rw] cluster_identifier
109
- # The cluster identifier.
109
+ # The cluster identifier. This parameter is not returned when
110
+ # connecting to a serverless endpoint.
110
111
  # @return [String]
111
112
  #
112
113
  # @!attribute [rw] created_at
@@ -255,6 +256,19 @@ module Aws::RedshiftDataAPIService
255
256
  include Aws::Structure
256
257
  end
257
258
 
259
+ # Connection to a database failed.
260
+ #
261
+ # @!attribute [rw] message
262
+ # @return [String]
263
+ #
264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DatabaseConnectionException AWS API Documentation
265
+ #
266
+ class DatabaseConnectionException < Struct.new(
267
+ :message)
268
+ SENSITIVE = []
269
+ include Aws::Structure
270
+ end
271
+
258
272
  # @note When making an API call, you may pass DescribeStatementRequest
259
273
  # data as a hash:
260
274
  #
@@ -307,7 +321,8 @@ module Aws::RedshiftDataAPIService
307
321
  #
308
322
  # @!attribute [rw] has_result_set
309
323
  # A value that indicates whether the statement has a result set. The
310
- # result set can be empty.
324
+ # result set can be empty. The value is true for an empty result set.
325
+ # The value is true if any substatement returns a result set.
311
326
  # @return [Boolean]
312
327
  #
313
328
  # @!attribute [rw] id
@@ -410,7 +425,7 @@ module Aws::RedshiftDataAPIService
410
425
  # data as a hash:
411
426
  #
412
427
  # {
413
- # cluster_identifier: "Location", # required
428
+ # cluster_identifier: "Location",
414
429
  # connected_database: "String",
415
430
  # database: "String", # required
416
431
  # db_user: "String",
@@ -422,9 +437,9 @@ module Aws::RedshiftDataAPIService
422
437
  # }
423
438
  #
424
439
  # @!attribute [rw] cluster_identifier
425
- # The cluster identifier. This parameter is required when
426
- # authenticating using either Secrets Manager or temporary
427
- # credentials.
440
+ # The cluster identifier. This parameter is required when connecting
441
+ # to a cluster and authenticating using either Secrets Manager or
442
+ # temporary credentials.
428
443
  # @return [String]
429
444
  #
430
445
  # @!attribute [rw] connected_database
@@ -439,8 +454,8 @@ module Aws::RedshiftDataAPIService
439
454
  # @return [String]
440
455
  #
441
456
  # @!attribute [rw] db_user
442
- # The database user name. This parameter is required when
443
- # authenticating using temporary credentials.
457
+ # The database user name. This parameter is required when connecting
458
+ # to a cluster and authenticating using temporary credentials.
444
459
  # @return [String]
445
460
  #
446
461
  # @!attribute [rw] max_results
@@ -542,7 +557,7 @@ module Aws::RedshiftDataAPIService
542
557
  # data as a hash:
543
558
  #
544
559
  # {
545
- # cluster_identifier: "Location", # required
560
+ # cluster_identifier: "Location",
546
561
  # database: "String", # required
547
562
  # db_user: "String",
548
563
  # parameters: [
@@ -558,9 +573,9 @@ module Aws::RedshiftDataAPIService
558
573
  # }
559
574
  #
560
575
  # @!attribute [rw] cluster_identifier
561
- # The cluster identifier. This parameter is required when
562
- # authenticating using either Secrets Manager or temporary
563
- # credentials.
576
+ # The cluster identifier. This parameter is required when connecting
577
+ # to a cluster and authenticating using either Secrets Manager or
578
+ # temporary credentials.
564
579
  # @return [String]
565
580
  #
566
581
  # @!attribute [rw] database
@@ -570,8 +585,8 @@ module Aws::RedshiftDataAPIService
570
585
  # @return [String]
571
586
  #
572
587
  # @!attribute [rw] db_user
573
- # The database user name. This parameter is required when
574
- # authenticating using temporary credentials.
588
+ # The database user name. This parameter is required when connecting
589
+ # to a cluster and authenticating using temporary credentials.
575
590
  # @return [String]
576
591
  #
577
592
  # @!attribute [rw] parameters
@@ -614,7 +629,8 @@ module Aws::RedshiftDataAPIService
614
629
  end
615
630
 
616
631
  # @!attribute [rw] cluster_identifier
617
- # The cluster identifier.
632
+ # The cluster identifier. This parameter is not returned when
633
+ # connecting to a serverless endpoint.
618
634
  # @return [String]
619
635
  #
620
636
  # @!attribute [rw] created_at
@@ -791,7 +807,7 @@ module Aws::RedshiftDataAPIService
791
807
  # data as a hash:
792
808
  #
793
809
  # {
794
- # cluster_identifier: "Location", # required
810
+ # cluster_identifier: "Location",
795
811
  # database: "String", # required
796
812
  # db_user: "String",
797
813
  # max_results: 1,
@@ -800,9 +816,9 @@ module Aws::RedshiftDataAPIService
800
816
  # }
801
817
  #
802
818
  # @!attribute [rw] cluster_identifier
803
- # The cluster identifier. This parameter is required when
804
- # authenticating using either Secrets Manager or temporary
805
- # credentials.
819
+ # The cluster identifier. This parameter is required when connecting
820
+ # to a cluster and authenticating using either Secrets Manager or
821
+ # temporary credentials.
806
822
  # @return [String]
807
823
  #
808
824
  # @!attribute [rw] database
@@ -812,8 +828,8 @@ module Aws::RedshiftDataAPIService
812
828
  # @return [String]
813
829
  #
814
830
  # @!attribute [rw] db_user
815
- # The database user name. This parameter is required when
816
- # authenticating using temporary credentials.
831
+ # The database user name. This parameter is required when connecting
832
+ # to a cluster and authenticating using temporary credentials.
817
833
  # @return [String]
818
834
  #
819
835
  # @!attribute [rw] max_results
@@ -876,7 +892,7 @@ module Aws::RedshiftDataAPIService
876
892
  # data as a hash:
877
893
  #
878
894
  # {
879
- # cluster_identifier: "Location", # required
895
+ # cluster_identifier: "Location",
880
896
  # connected_database: "String",
881
897
  # database: "String", # required
882
898
  # db_user: "String",
@@ -887,9 +903,9 @@ module Aws::RedshiftDataAPIService
887
903
  # }
888
904
  #
889
905
  # @!attribute [rw] cluster_identifier
890
- # The cluster identifier. This parameter is required when
891
- # authenticating using either Secrets Manager or temporary
892
- # credentials.
906
+ # The cluster identifier. This parameter is required when connecting
907
+ # to a cluster and authenticating using either Secrets Manager or
908
+ # temporary credentials.
893
909
  # @return [String]
894
910
  #
895
911
  # @!attribute [rw] connected_database
@@ -904,8 +920,8 @@ module Aws::RedshiftDataAPIService
904
920
  # @return [String]
905
921
  #
906
922
  # @!attribute [rw] db_user
907
- # The database user name. This parameter is required when
908
- # authenticating using temporary credentials.
923
+ # The database user name. This parameter is required when connecting
924
+ # to a cluster and authenticating using temporary credentials.
909
925
  # @return [String]
910
926
  #
911
927
  # @!attribute [rw] max_results
@@ -1074,7 +1090,7 @@ module Aws::RedshiftDataAPIService
1074
1090
  # data as a hash:
1075
1091
  #
1076
1092
  # {
1077
- # cluster_identifier: "Location", # required
1093
+ # cluster_identifier: "Location",
1078
1094
  # connected_database: "String",
1079
1095
  # database: "String", # required
1080
1096
  # db_user: "String",
@@ -1086,9 +1102,9 @@ module Aws::RedshiftDataAPIService
1086
1102
  # }
1087
1103
  #
1088
1104
  # @!attribute [rw] cluster_identifier
1089
- # The cluster identifier. This parameter is required when
1090
- # authenticating using either Secrets Manager or temporary
1091
- # credentials.
1105
+ # The cluster identifier. This parameter is required when connecting
1106
+ # to a cluster and authenticating using either Secrets Manager or
1107
+ # temporary credentials.
1092
1108
  # @return [String]
1093
1109
  #
1094
1110
  # @!attribute [rw] connected_database
@@ -1103,8 +1119,8 @@ module Aws::RedshiftDataAPIService
1103
1119
  # @return [String]
1104
1120
  #
1105
1121
  # @!attribute [rw] db_user
1106
- # The database user name. This parameter is required when
1107
- # authenticating using temporary credentials.
1122
+ # The database user name. This parameter is required when connecting
1123
+ # to a cluster and authenticating using temporary credentials.
1108
1124
  # @return [String]
1109
1125
  #
1110
1126
  # @!attribute [rw] max_results
@@ -1321,7 +1337,7 @@ module Aws::RedshiftDataAPIService
1321
1337
  #
1322
1338
  # @!attribute [rw] has_result_set
1323
1339
  # A value that indicates whether the statement has a result set. The
1324
- # result set can be empty.
1340
+ # result set can be empty. The value is true for an empty result set.
1325
1341
  # @return [Boolean]
1326
1342
  #
1327
1343
  # @!attribute [rw] id
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-redshiftdataapiservice/customizations'
48
48
  # @!group service
49
49
  module Aws::RedshiftDataAPIService
50
50
 
51
- GEM_VERSION = '1.13.0'
51
+ GEM_VERSION = '1.17.0'
52
52
 
53
53
  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.13.0
4
+ version: 1.17.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: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2021-12-21 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.122.0
22
+ version: 3.125.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.122.0
32
+ version: 3.125.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement