aws-sdk-redshiftdataapiservice 1.10.0 → 1.14.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: ec22576cf3897780d8b172d1ac51c1df296eaf7122f2b2992fd1e33bb9bc1929
4
- data.tar.gz: 958252c335bc2bb2b742ea46b1b13cc40ccba47139132be27c7b274af915bd10
3
+ metadata.gz: 31433ef78c1a8d520e377799e5e55f659eca67dfd482da1f3a0f21041dabdb3d
4
+ data.tar.gz: 27a7890a42637b2ce9c4a9ed72e7e32daf7c2d2e10524448af01a375ede16821
5
5
  SHA512:
6
- metadata.gz: f60bf6d2a98a635a30ed95b090b13a55ca32623d14dbb45e6d4d7158900b5af09b85a5b5f8db286031d7d775cbc656756214be926ade36d21f1d9b2a261ae17b
7
- data.tar.gz: d5eab0a71e63857a61903c0a680531f207c5c98824ba6bf10e4d0400be34641a5962323d9f378e3a9b5a81cd4a948f843581f02ed9f48c90f1a77d2460fabad2
6
+ metadata.gz: d191898dd1953b6f170797cd16388a6f9a369383612a69b1933c866f2e7f9077e0769a597da5bcaf603a6613e78829171ef5f4456af43da0b528727f4daad711
7
+ data.tar.gz: 551c58d1df43d70de75baa3f0ddb64d9f928ad440772aff35eac4c6bbea07133662f7325b4c6fbf10b7fd55f41aab9efaf995507931c87a3fdde03f53ea58459
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.14.0 (2021-11-17)
5
+ ------------------
6
+
7
+ * Feature - Data API now supports serverless requests.
8
+
9
+ 1.13.0 (2021-11-04)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.12.0 (2021-10-18)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.11.0 (2021-09-01)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.10.0 (2021-07-30)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.0
1
+ 1.14.0
@@ -285,6 +285,15 @@ module Aws::RedshiftDataAPIService
285
285
  # ** Please note ** When response stubbing is enabled, no HTTP
286
286
  # requests are made, and retries are disabled.
287
287
  #
288
+ # @option options [Boolean] :use_dualstack_endpoint
289
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
290
+ # will be used if available.
291
+ #
292
+ # @option options [Boolean] :use_fips_endpoint
293
+ # When set to `true`, fips compatible endpoints will be used if available.
294
+ # When a `fips` region is used, the region is normalized and this config
295
+ # is set to `true`.
296
+ #
288
297
  # @option options [Boolean] :validate_params (true)
289
298
  # When `true`, request parameters are validated before
290
299
  # sending the request.
@@ -342,26 +351,30 @@ module Aws::RedshiftDataAPIService
342
351
  # authorization method, use one of the following combinations of request
343
352
  # parameters:
344
353
  #
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.
354
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
355
+ # Resource Name (ARN) of the secret, the database name, and the
356
+ # cluster identifier that matches the cluster in the secret. When
357
+ # connecting to a serverless endpoint, specify the Amazon Resource
358
+ # Name (ARN) of the secret and the database name.
348
359
  #
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.
360
+ # * Temporary credentials - when connecting to a cluster, specify the
361
+ # cluster identifier, the database name, and the database user name.
362
+ # Also, permission to call the `redshift:GetClusterCredentials`
363
+ # operation is required. When connecting to a serverless endpoint,
364
+ # specify the database name.
353
365
  #
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.
366
+ # @option params [String] :cluster_identifier
367
+ # The cluster identifier. This parameter is required when connecting to
368
+ # a cluster and authenticating using either Secrets Manager or temporary
369
+ # credentials.
357
370
  #
358
371
  # @option params [required, String] :database
359
372
  # The name of the database. This parameter is required when
360
373
  # authenticating using either Secrets Manager or temporary credentials.
361
374
  #
362
375
  # @option params [String] :db_user
363
- # The database user name. This parameter is required when authenticating
364
- # using temporary credentials.
376
+ # The database user name. This parameter is required when connecting to
377
+ # a cluster and authenticating using temporary credentials.
365
378
  #
366
379
  # @option params [String] :secret_arn
367
380
  # The name or ARN of the secret that enables access to the database.
@@ -390,7 +403,7 @@ module Aws::RedshiftDataAPIService
390
403
  # @example Request syntax with placeholder values
391
404
  #
392
405
  # resp = client.batch_execute_statement({
393
- # cluster_identifier: "Location", # required
406
+ # cluster_identifier: "Location",
394
407
  # database: "String", # required
395
408
  # db_user: "String",
396
409
  # secret_arn: "SecretArn",
@@ -537,18 +550,22 @@ module Aws::RedshiftDataAPIService
537
550
  # page through the column list. Depending on the authorization method,
538
551
  # use one of the following combinations of request parameters:
539
552
  #
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.
553
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
554
+ # Resource Name (ARN) of the secret, the database name, and the
555
+ # cluster identifier that matches the cluster in the secret. When
556
+ # connecting to a serverless endpoint, specify the Amazon Resource
557
+ # Name (ARN) of the secret and the database name.
543
558
  #
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.
559
+ # * Temporary credentials - when connecting to a cluster, specify the
560
+ # cluster identifier, the database name, and the database user name.
561
+ # Also, permission to call the `redshift:GetClusterCredentials`
562
+ # operation is required. When connecting to a serverless endpoint,
563
+ # specify the database name.
548
564
  #
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.
565
+ # @option params [String] :cluster_identifier
566
+ # The cluster identifier. This parameter is required when connecting to
567
+ # a cluster and authenticating using either Secrets Manager or temporary
568
+ # credentials.
552
569
  #
553
570
  # @option params [String] :connected_database
554
571
  # A database name. The connected database is specified when you connect
@@ -560,8 +577,8 @@ module Aws::RedshiftDataAPIService
560
577
  # connect to with your authentication credentials.
561
578
  #
562
579
  # @option params [String] :db_user
563
- # The database user name. This parameter is required when authenticating
564
- # using temporary credentials.
580
+ # The database user name. This parameter is required when connecting to
581
+ # a cluster and authenticating using temporary credentials.
565
582
  #
566
583
  # @option params [Integer] :max_results
567
584
  # The maximum number of tables to return in the response. If more tables
@@ -600,7 +617,7 @@ module Aws::RedshiftDataAPIService
600
617
  # @example Request syntax with placeholder values
601
618
  #
602
619
  # resp = client.describe_table({
603
- # cluster_identifier: "Location", # required
620
+ # cluster_identifier: "Location",
604
621
  # connected_database: "String",
605
622
  # database: "String", # required
606
623
  # db_user: "String",
@@ -644,26 +661,30 @@ module Aws::RedshiftDataAPIService
644
661
  # statement. Depending on the authorization method, use one of the
645
662
  # following combinations of request parameters:
646
663
  #
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.
664
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
665
+ # Resource Name (ARN) of the secret, the database name, and the
666
+ # cluster identifier that matches the cluster in the secret. When
667
+ # connecting to a serverless endpoint, specify the Amazon Resource
668
+ # Name (ARN) of the secret and the database name.
650
669
  #
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.
670
+ # * Temporary credentials - when connecting to a cluster, specify the
671
+ # cluster identifier, the database name, and the database user name.
672
+ # Also, permission to call the `redshift:GetClusterCredentials`
673
+ # operation is required. When connecting to a serverless endpoint,
674
+ # specify the database name.
655
675
  #
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.
676
+ # @option params [String] :cluster_identifier
677
+ # The cluster identifier. This parameter is required when connecting to
678
+ # a cluster and authenticating using either Secrets Manager or temporary
679
+ # credentials.
659
680
  #
660
681
  # @option params [required, String] :database
661
682
  # The name of the database. This parameter is required when
662
683
  # authenticating using either Secrets Manager or temporary credentials.
663
684
  #
664
685
  # @option params [String] :db_user
665
- # The database user name. This parameter is required when authenticating
666
- # using temporary credentials.
686
+ # The database user name. This parameter is required when connecting to
687
+ # a cluster and authenticating using temporary credentials.
667
688
  #
668
689
  # @option params [Array<Types::SqlParameter>] :parameters
669
690
  # The parameters for the SQL statement.
@@ -695,7 +716,7 @@ module Aws::RedshiftDataAPIService
695
716
  # @example Request syntax with placeholder values
696
717
  #
697
718
  # resp = client.execute_statement({
698
- # cluster_identifier: "Location", # required
719
+ # cluster_identifier: "Location",
699
720
  # database: "String", # required
700
721
  # db_user: "String",
701
722
  # parameters: [
@@ -804,26 +825,30 @@ module Aws::RedshiftDataAPIService
804
825
  # the database list. Depending on the authorization method, use one of
805
826
  # the following combinations of request parameters:
806
827
  #
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.
828
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
829
+ # Resource Name (ARN) of the secret, the database name, and the
830
+ # cluster identifier that matches the cluster in the secret. When
831
+ # connecting to a serverless endpoint, specify the Amazon Resource
832
+ # Name (ARN) of the secret and the database name.
810
833
  #
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.
834
+ # * Temporary credentials - when connecting to a cluster, specify the
835
+ # cluster identifier, the database name, and the database user name.
836
+ # Also, permission to call the `redshift:GetClusterCredentials`
837
+ # operation is required. When connecting to a serverless endpoint,
838
+ # specify the database name.
815
839
  #
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.
840
+ # @option params [String] :cluster_identifier
841
+ # The cluster identifier. This parameter is required when connecting to
842
+ # a cluster and authenticating using either Secrets Manager or temporary
843
+ # credentials.
819
844
  #
820
845
  # @option params [required, String] :database
821
846
  # The name of the database. This parameter is required when
822
847
  # authenticating using either Secrets Manager or temporary credentials.
823
848
  #
824
849
  # @option params [String] :db_user
825
- # The database user name. This parameter is required when authenticating
826
- # using temporary credentials.
850
+ # The database user name. This parameter is required when connecting to
851
+ # a cluster and authenticating using temporary credentials.
827
852
  #
828
853
  # @option params [Integer] :max_results
829
854
  # The maximum number of databases to return in the response. If more
@@ -852,7 +877,7 @@ module Aws::RedshiftDataAPIService
852
877
  # @example Request syntax with placeholder values
853
878
  #
854
879
  # resp = client.list_databases({
855
- # cluster_identifier: "Location", # required
880
+ # cluster_identifier: "Location",
856
881
  # database: "String", # required
857
882
  # db_user: "String",
858
883
  # max_results: 1,
@@ -879,18 +904,22 @@ module Aws::RedshiftDataAPIService
879
904
  # the schema list. Depending on the authorization method, use one of the
880
905
  # following combinations of request parameters:
881
906
  #
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.
907
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
908
+ # Resource Name (ARN) of the secret, the database name, and the
909
+ # cluster identifier that matches the cluster in the secret. When
910
+ # connecting to a serverless endpoint, specify the Amazon Resource
911
+ # Name (ARN) of the secret and the database name.
885
912
  #
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.
913
+ # * Temporary credentials - when connecting to a cluster, specify the
914
+ # cluster identifier, the database name, and the database user name.
915
+ # Also, permission to call the `redshift:GetClusterCredentials`
916
+ # operation is required. When connecting to a serverless endpoint,
917
+ # specify the database name.
890
918
  #
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.
919
+ # @option params [String] :cluster_identifier
920
+ # The cluster identifier. This parameter is required when connecting to
921
+ # a cluster and authenticating using either Secrets Manager or temporary
922
+ # credentials.
894
923
  #
895
924
  # @option params [String] :connected_database
896
925
  # A database name. The connected database is specified when you connect
@@ -902,8 +931,8 @@ module Aws::RedshiftDataAPIService
902
931
  # connect to with your authentication credentials.
903
932
  #
904
933
  # @option params [String] :db_user
905
- # The database user name. This parameter is required when authenticating
906
- # using temporary credentials.
934
+ # The database user name. This parameter is required when connecting to
935
+ # a cluster and authenticating using temporary credentials.
907
936
  #
908
937
  # @option params [Integer] :max_results
909
938
  # The maximum number of schemas to return in the response. If more
@@ -938,7 +967,7 @@ module Aws::RedshiftDataAPIService
938
967
  # @example Request syntax with placeholder values
939
968
  #
940
969
  # resp = client.list_schemas({
941
- # cluster_identifier: "Location", # required
970
+ # cluster_identifier: "Location",
942
971
  # connected_database: "String",
943
972
  # database: "String", # required
944
973
  # db_user: "String",
@@ -1063,18 +1092,22 @@ module Aws::RedshiftDataAPIService
1063
1092
  # Depending on the authorization method, use one of the following
1064
1093
  # combinations of request parameters:
1065
1094
  #
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.
1095
+ # * Secrets Manager - when connecting to a cluster, specify the Amazon
1096
+ # Resource Name (ARN) of the secret, the database name, and the
1097
+ # cluster identifier that matches the cluster in the secret. When
1098
+ # connecting to a serverless endpoint, specify the Amazon Resource
1099
+ # Name (ARN) of the secret and the database name.
1069
1100
  #
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.
1101
+ # * Temporary credentials - when connecting to a cluster, specify the
1102
+ # cluster identifier, the database name, and the database user name.
1103
+ # Also, permission to call the `redshift:GetClusterCredentials`
1104
+ # operation is required. When connecting to a serverless endpoint,
1105
+ # specify the database name.
1074
1106
  #
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.
1107
+ # @option params [String] :cluster_identifier
1108
+ # The cluster identifier. This parameter is required when connecting to
1109
+ # a cluster and authenticating using either Secrets Manager or temporary
1110
+ # credentials.
1078
1111
  #
1079
1112
  # @option params [String] :connected_database
1080
1113
  # A database name. The connected database is specified when you connect
@@ -1086,8 +1119,8 @@ module Aws::RedshiftDataAPIService
1086
1119
  # connect to with your authentication credentials.
1087
1120
  #
1088
1121
  # @option params [String] :db_user
1089
- # The database user name. This parameter is required when authenticating
1090
- # using temporary credentials.
1122
+ # The database user name. This parameter is required when connecting to
1123
+ # a cluster and authenticating using temporary credentials.
1091
1124
  #
1092
1125
  # @option params [Integer] :max_results
1093
1126
  # The maximum number of tables to return in the response. If more tables
@@ -1134,7 +1167,7 @@ module Aws::RedshiftDataAPIService
1134
1167
  # @example Request syntax with placeholder values
1135
1168
  #
1136
1169
  # resp = client.list_tables({
1137
- # cluster_identifier: "Location", # required
1170
+ # cluster_identifier: "Location",
1138
1171
  # connected_database: "String",
1139
1172
  # database: "String", # required
1140
1173
  # db_user: "String",
@@ -1175,7 +1208,7 @@ module Aws::RedshiftDataAPIService
1175
1208
  params: params,
1176
1209
  config: config)
1177
1210
  context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
1178
- context[:gem_version] = '1.10.0'
1211
+ context[:gem_version] = '1.14.0'
1179
1212
  Seahorse::Client::Request.new(handlers, context)
1180
1213
  end
1181
1214
 
@@ -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.10.0'
51
+ GEM_VERSION = '1.14.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.10.0
4
+ version: 1.14.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-07-30 00:00:00.000000000 Z
11
+ date: 2021-11-17 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.119.0
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.119.0
32
+ version: 3.122.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -76,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: '0'
79
+ version: '2.3'
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="