aws-sdk-redshiftdataapiservice 1.12.0 → 1.16.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: 5bcadebc965263d13e9bd72584290dea5a1371739ca2605bf1064ea0bb833c0b
4
- data.tar.gz: 5f9613a787ce9326d841ab9ad79a3bba4546ae4a36fed4583ed8ccc5a9935422
3
+ metadata.gz: 05340c95db4950a0fc1c151107a153b99860a67414c198a274225ad5f54d280e
4
+ data.tar.gz: f0c97320c0b01c61f636f90e8bef143bf5dba023a00971ef5ea1e6e188f7bd92
5
5
  SHA512:
6
- metadata.gz: 8b15a257c94f6d50bc01e31e547a72fd17b3789bf1f88e1a2ddde8eb2994aa653b498b3ae9b5c57f54d0e172a18d29b5d914ae6d12e9565f8ab81dbd4eeae4c0
7
- data.tar.gz: 13c63e60208eb8da9754a4f6797e258e89bc05ced602e5a734d4aa1ee640d8efce926090daaad7ec6ebf357da62dc50ad3748865226a93424010add4d5a46c95
6
+ metadata.gz: 519b608baef7d9d72bf4ecb1f0c6609e68ebb3fe80f3ede44604cf2afdfdbc8a54a895479c81e1871c60324a7339d9d7f6159d866f9a8db9e94f973791fb255f
7
+ data.tar.gz: aa037663560619e1b7e635dc3bddb8213a96f215ca45eeb0959692f964152ec3361d7747253bd8d6bfdc2df841043878e8384bf842602f83b085048213a6f815
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2021-11-30)
5
+ ------------------
6
+
7
+ * Feature - Data API now supports serverless queries.
8
+
9
+ 1.15.0 (2021-11-18)
10
+ ------------------
11
+
12
+ * Feature - Rolling back Data API serverless features until dependencies are live.
13
+
14
+ 1.14.0 (2021-11-17)
15
+ ------------------
16
+
17
+ * Feature - Data API now supports serverless requests.
18
+
19
+ 1.13.0 (2021-11-04)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.12.0 (2021-10-18)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.12.0
1
+ 1.16.0
@@ -119,7 +119,9 @@ module Aws::RedshiftDataAPIService
119
119
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
120
  # are very aggressive. Construct and pass an instance of
121
121
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
122
+ # enable retries and extended timeouts. Instance profile credential
123
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
124
+ # to true.
123
125
  #
124
126
  # @option options [required, String] :region
125
127
  # The AWS region to connect to. The configured `:region` is
@@ -285,6 +287,15 @@ module Aws::RedshiftDataAPIService
285
287
  # ** Please note ** When response stubbing is enabled, no HTTP
286
288
  # requests are made, and retries are disabled.
287
289
  #
290
+ # @option options [Boolean] :use_dualstack_endpoint
291
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
+ # will be used if available.
293
+ #
294
+ # @option options [Boolean] :use_fips_endpoint
295
+ # When set to `true`, fips compatible endpoints will be used if available.
296
+ # When a `fips` region is used, the region is normalized and this config
297
+ # is set to `true`.
298
+ #
288
299
  # @option options [Boolean] :validate_params (true)
289
300
  # When `true`, request parameters are validated before
290
301
  # sending the request.
@@ -342,26 +353,30 @@ module Aws::RedshiftDataAPIService
342
353
  # authorization method, use one of the following combinations of request
343
354
  # parameters:
344
355
  #
345
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
346
- # secret, the database name, and the cluster identifier that matches
347
- # the cluster in the secret.
356
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
357
+ # Resource Name (ARN) of the secret, the database name, and the
358
+ # cluster identifier that matches the cluster in the secret. When
359
+ # connecting to a serverless endpoint, specify the Amazon Resource
360
+ # Name (ARN) of the secret and the database name.
348
361
  #
349
- # * Temporary credentials - specify the cluster identifier, the database
350
- # name, and the database user name. Permission to call the
351
- # `redshift:GetClusterCredentials` operation is required to use this
352
- # method.
362
+ # * Temporary credentials - when connecting to a cluster, specify the
363
+ # cluster identifier, the database name, and the database user name.
364
+ # Also, permission to call the `redshift:GetClusterCredentials`
365
+ # operation is required. When connecting to a serverless endpoint,
366
+ # specify the database name.
353
367
  #
354
- # @option params [required, String] :cluster_identifier
355
- # The cluster identifier. This parameter is required when authenticating
356
- # using either Secrets Manager or temporary credentials.
368
+ # @option params [String] :cluster_identifier
369
+ # The cluster identifier. This parameter is required when connecting to
370
+ # a cluster and authenticating using either Secrets Manager or temporary
371
+ # credentials.
357
372
  #
358
373
  # @option params [required, String] :database
359
374
  # The name of the database. This parameter is required when
360
375
  # authenticating using either Secrets Manager or temporary credentials.
361
376
  #
362
377
  # @option params [String] :db_user
363
- # The database user name. This parameter is required when authenticating
364
- # using temporary credentials.
378
+ # The database user name. This parameter is required when connecting to
379
+ # a cluster and authenticating using temporary credentials.
365
380
  #
366
381
  # @option params [String] :secret_arn
367
382
  # The name or ARN of the secret that enables access to the database.
@@ -390,7 +405,7 @@ module Aws::RedshiftDataAPIService
390
405
  # @example Request syntax with placeholder values
391
406
  #
392
407
  # resp = client.batch_execute_statement({
393
- # cluster_identifier: "Location", # required
408
+ # cluster_identifier: "Location",
394
409
  # database: "String", # required
395
410
  # db_user: "String",
396
411
  # secret_arn: "SecretArn",
@@ -537,18 +552,22 @@ module Aws::RedshiftDataAPIService
537
552
  # page through the column list. Depending on the authorization method,
538
553
  # use one of the following combinations of request parameters:
539
554
  #
540
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
541
- # secret, the database name, and the cluster identifier that matches
542
- # the cluster in the secret.
555
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
556
+ # Resource Name (ARN) of the secret, the database name, and the
557
+ # cluster identifier that matches the cluster in the secret. When
558
+ # connecting to a serverless endpoint, specify the Amazon Resource
559
+ # Name (ARN) of the secret and the database name.
543
560
  #
544
- # * Temporary credentials - specify the cluster identifier, the database
545
- # name, and the database user name. Permission to call the
546
- # `redshift:GetClusterCredentials` operation is required to use this
547
- # method.
561
+ # * Temporary credentials - when connecting to a cluster, specify the
562
+ # cluster identifier, the database name, and the database user name.
563
+ # Also, permission to call the `redshift:GetClusterCredentials`
564
+ # operation is required. When connecting to a serverless endpoint,
565
+ # specify the database name.
548
566
  #
549
- # @option params [required, String] :cluster_identifier
550
- # The cluster identifier. This parameter is required when authenticating
551
- # using either Secrets Manager or temporary credentials.
567
+ # @option params [String] :cluster_identifier
568
+ # The cluster identifier. This parameter is required when connecting to
569
+ # a cluster and authenticating using either Secrets Manager or temporary
570
+ # credentials.
552
571
  #
553
572
  # @option params [String] :connected_database
554
573
  # A database name. The connected database is specified when you connect
@@ -560,8 +579,8 @@ module Aws::RedshiftDataAPIService
560
579
  # connect to with your authentication credentials.
561
580
  #
562
581
  # @option params [String] :db_user
563
- # The database user name. This parameter is required when authenticating
564
- # using temporary credentials.
582
+ # The database user name. This parameter is required when connecting to
583
+ # a cluster and authenticating using temporary credentials.
565
584
  #
566
585
  # @option params [Integer] :max_results
567
586
  # The maximum number of tables to return in the response. If more tables
@@ -600,7 +619,7 @@ module Aws::RedshiftDataAPIService
600
619
  # @example Request syntax with placeholder values
601
620
  #
602
621
  # resp = client.describe_table({
603
- # cluster_identifier: "Location", # required
622
+ # cluster_identifier: "Location",
604
623
  # connected_database: "String",
605
624
  # database: "String", # required
606
625
  # db_user: "String",
@@ -644,26 +663,30 @@ module Aws::RedshiftDataAPIService
644
663
  # statement. Depending on the authorization method, use one of the
645
664
  # following combinations of request parameters:
646
665
  #
647
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
648
- # secret, the database name, and the cluster identifier that matches
649
- # the cluster in the secret.
666
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
667
+ # Resource Name (ARN) of the secret, the database name, and the
668
+ # cluster identifier that matches the cluster in the secret. When
669
+ # connecting to a serverless endpoint, specify the Amazon Resource
670
+ # Name (ARN) of the secret and the database name.
650
671
  #
651
- # * Temporary credentials - specify the cluster identifier, the database
652
- # name, and the database user name. Permission to call the
653
- # `redshift:GetClusterCredentials` operation is required to use this
654
- # method.
672
+ # * Temporary credentials - when connecting to a cluster, specify the
673
+ # cluster identifier, the database name, and the database user name.
674
+ # Also, permission to call the `redshift:GetClusterCredentials`
675
+ # operation is required. When connecting to a serverless endpoint,
676
+ # specify the database name.
655
677
  #
656
- # @option params [required, String] :cluster_identifier
657
- # The cluster identifier. This parameter is required when authenticating
658
- # using either Secrets Manager or temporary credentials.
678
+ # @option params [String] :cluster_identifier
679
+ # The cluster identifier. This parameter is required when connecting to
680
+ # a cluster and authenticating using either Secrets Manager or temporary
681
+ # credentials.
659
682
  #
660
683
  # @option params [required, String] :database
661
684
  # The name of the database. This parameter is required when
662
685
  # authenticating using either Secrets Manager or temporary credentials.
663
686
  #
664
687
  # @option params [String] :db_user
665
- # The database user name. This parameter is required when authenticating
666
- # using temporary credentials.
688
+ # The database user name. This parameter is required when connecting to
689
+ # a cluster and authenticating using temporary credentials.
667
690
  #
668
691
  # @option params [Array<Types::SqlParameter>] :parameters
669
692
  # The parameters for the SQL statement.
@@ -695,7 +718,7 @@ module Aws::RedshiftDataAPIService
695
718
  # @example Request syntax with placeholder values
696
719
  #
697
720
  # resp = client.execute_statement({
698
- # cluster_identifier: "Location", # required
721
+ # cluster_identifier: "Location",
699
722
  # database: "String", # required
700
723
  # db_user: "String",
701
724
  # parameters: [
@@ -804,26 +827,30 @@ module Aws::RedshiftDataAPIService
804
827
  # the database list. Depending on the authorization method, use one of
805
828
  # the following combinations of request parameters:
806
829
  #
807
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
808
- # secret, the database name, and the cluster identifier that matches
809
- # the cluster in the secret.
830
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
831
+ # Resource Name (ARN) of the secret, the database name, and the
832
+ # cluster identifier that matches the cluster in the secret. When
833
+ # connecting to a serverless endpoint, specify the Amazon Resource
834
+ # Name (ARN) of the secret and the database name.
810
835
  #
811
- # * Temporary credentials - specify the cluster identifier, the database
812
- # name, and the database user name. Permission to call the
813
- # `redshift:GetClusterCredentials` operation is required to use this
814
- # method.
836
+ # * Temporary credentials - when connecting to a cluster, specify the
837
+ # cluster identifier, the database name, and the database user name.
838
+ # Also, permission to call the `redshift:GetClusterCredentials`
839
+ # operation is required. When connecting to a serverless endpoint,
840
+ # specify the database name.
815
841
  #
816
- # @option params [required, String] :cluster_identifier
817
- # The cluster identifier. This parameter is required when authenticating
818
- # using either Secrets Manager or temporary credentials.
842
+ # @option params [String] :cluster_identifier
843
+ # The cluster identifier. This parameter is required when connecting to
844
+ # a cluster and authenticating using either Secrets Manager or temporary
845
+ # credentials.
819
846
  #
820
847
  # @option params [required, String] :database
821
848
  # The name of the database. This parameter is required when
822
849
  # authenticating using either Secrets Manager or temporary credentials.
823
850
  #
824
851
  # @option params [String] :db_user
825
- # The database user name. This parameter is required when authenticating
826
- # using temporary credentials.
852
+ # The database user name. This parameter is required when connecting to
853
+ # a cluster and authenticating using temporary credentials.
827
854
  #
828
855
  # @option params [Integer] :max_results
829
856
  # The maximum number of databases to return in the response. If more
@@ -852,7 +879,7 @@ module Aws::RedshiftDataAPIService
852
879
  # @example Request syntax with placeholder values
853
880
  #
854
881
  # resp = client.list_databases({
855
- # cluster_identifier: "Location", # required
882
+ # cluster_identifier: "Location",
856
883
  # database: "String", # required
857
884
  # db_user: "String",
858
885
  # max_results: 1,
@@ -879,18 +906,22 @@ module Aws::RedshiftDataAPIService
879
906
  # the schema list. Depending on the authorization method, use one of the
880
907
  # following combinations of request parameters:
881
908
  #
882
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
883
- # secret, the database name, and the cluster identifier that matches
884
- # the cluster in the secret.
909
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
910
+ # Resource Name (ARN) of the secret, the database name, and the
911
+ # cluster identifier that matches the cluster in the secret. When
912
+ # connecting to a serverless endpoint, specify the Amazon Resource
913
+ # Name (ARN) of the secret and the database name.
885
914
  #
886
- # * Temporary credentials - specify the cluster identifier, the database
887
- # name, and the database user name. Permission to call the
888
- # `redshift:GetClusterCredentials` operation is required to use this
889
- # method.
915
+ # * Temporary credentials - when connecting to a cluster, specify the
916
+ # cluster identifier, the database name, and the database user name.
917
+ # Also, permission to call the `redshift:GetClusterCredentials`
918
+ # operation is required. When connecting to a serverless endpoint,
919
+ # specify the database name.
890
920
  #
891
- # @option params [required, String] :cluster_identifier
892
- # The cluster identifier. This parameter is required when authenticating
893
- # using either Secrets Manager or temporary credentials.
921
+ # @option params [String] :cluster_identifier
922
+ # The cluster identifier. This parameter is required when connecting to
923
+ # a cluster and authenticating using either Secrets Manager or temporary
924
+ # credentials.
894
925
  #
895
926
  # @option params [String] :connected_database
896
927
  # A database name. The connected database is specified when you connect
@@ -902,8 +933,8 @@ module Aws::RedshiftDataAPIService
902
933
  # connect to with your authentication credentials.
903
934
  #
904
935
  # @option params [String] :db_user
905
- # The database user name. This parameter is required when authenticating
906
- # using temporary credentials.
936
+ # The database user name. This parameter is required when connecting to
937
+ # a cluster and authenticating using temporary credentials.
907
938
  #
908
939
  # @option params [Integer] :max_results
909
940
  # The maximum number of schemas to return in the response. If more
@@ -938,7 +969,7 @@ module Aws::RedshiftDataAPIService
938
969
  # @example Request syntax with placeholder values
939
970
  #
940
971
  # resp = client.list_schemas({
941
- # cluster_identifier: "Location", # required
972
+ # cluster_identifier: "Location",
942
973
  # connected_database: "String",
943
974
  # database: "String", # required
944
975
  # db_user: "String",
@@ -1063,18 +1094,22 @@ module Aws::RedshiftDataAPIService
1063
1094
  # Depending on the authorization method, use one of the following
1064
1095
  # combinations of request parameters:
1065
1096
  #
1066
- # * Secrets Manager - specify the Amazon Resource Name (ARN) of the
1067
- # secret, the database name, and the cluster identifier that matches
1068
- # the cluster in the secret.
1097
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
1098
+ # Resource Name (ARN) of the secret, the database name, and the
1099
+ # cluster identifier that matches the cluster in the secret. When
1100
+ # connecting to a serverless endpoint, specify the Amazon Resource
1101
+ # Name (ARN) of the secret and the database name.
1069
1102
  #
1070
- # * Temporary credentials - specify the cluster identifier, the database
1071
- # name, and the database user name. Permission to call the
1072
- # `redshift:GetClusterCredentials` operation is required to use this
1073
- # method.
1103
+ # * Temporary credentials - when connecting to a cluster, specify the
1104
+ # cluster identifier, the database name, and the database user name.
1105
+ # Also, permission to call the `redshift:GetClusterCredentials`
1106
+ # operation is required. When connecting to a serverless endpoint,
1107
+ # specify the database name.
1074
1108
  #
1075
- # @option params [required, String] :cluster_identifier
1076
- # The cluster identifier. This parameter is required when authenticating
1077
- # using either Secrets Manager or temporary credentials.
1109
+ # @option params [String] :cluster_identifier
1110
+ # The cluster identifier. This parameter is required when connecting to
1111
+ # a cluster and authenticating using either Secrets Manager or temporary
1112
+ # credentials.
1078
1113
  #
1079
1114
  # @option params [String] :connected_database
1080
1115
  # A database name. The connected database is specified when you connect
@@ -1086,8 +1121,8 @@ module Aws::RedshiftDataAPIService
1086
1121
  # connect to with your authentication credentials.
1087
1122
  #
1088
1123
  # @option params [String] :db_user
1089
- # The database user name. This parameter is required when authenticating
1090
- # using temporary credentials.
1124
+ # The database user name. This parameter is required when connecting to
1125
+ # a cluster and authenticating using temporary credentials.
1091
1126
  #
1092
1127
  # @option params [Integer] :max_results
1093
1128
  # The maximum number of tables to return in the response. If more tables
@@ -1134,7 +1169,7 @@ module Aws::RedshiftDataAPIService
1134
1169
  # @example Request syntax with placeholder values
1135
1170
  #
1136
1171
  # resp = client.list_tables({
1137
- # cluster_identifier: "Location", # required
1172
+ # cluster_identifier: "Location",
1138
1173
  # connected_database: "String",
1139
1174
  # database: "String", # required
1140
1175
  # db_user: "String",
@@ -1175,7 +1210,7 @@ module Aws::RedshiftDataAPIService
1175
1210
  params: params,
1176
1211
  config: config)
1177
1212
  context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
1178
- context[:gem_version] = '1.12.0'
1213
+ context[:gem_version] = '1.16.0'
1179
1214
  Seahorse::Client::Request.new(handlers, context)
1180
1215
  end
1181
1216
 
@@ -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.12.0'
51
+ GEM_VERSION = '1.16.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.12.0
4
+ version: 1.16.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-10-18 00:00:00.000000000 Z
11
+ date: 2021-11-30 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.121.2
22
+ version: 3.122.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.121.2
32
+ version: 3.122.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement