aws-sdk-redshiftdataapiservice 1.13.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: cea5c5e149837519ee88405096e7f8b8501aa64124ec8df95bc1f7f5221ca358
4
- data.tar.gz: b822f9b1dc8c0e3c3e511310f37b3991e47a389a091a58ecba2198ba74872b54
3
+ metadata.gz: 31433ef78c1a8d520e377799e5e55f659eca67dfd482da1f3a0f21041dabdb3d
4
+ data.tar.gz: 27a7890a42637b2ce9c4a9ed72e7e32daf7c2d2e10524448af01a375ede16821
5
5
  SHA512:
6
- metadata.gz: 064d630006c2279c714eedb388407538ec48b7b7423afa7f05967462d39490efc17fa952cc1deefe929a23098ba2c176652ac238bd27603db3b68c09c71f92b3
7
- data.tar.gz: 3dd38d192e3bcdd04e1f1d4989f197a66835f99d39774713aed4749725d31850db9ae7b28fcaa8f30269c3fa6002f4474473737176ffd53327432adbcf5457d2
6
+ metadata.gz: d191898dd1953b6f170797cd16388a6f9a369383612a69b1933c866f2e7f9077e0769a597da5bcaf603a6613e78829171ef5f4456af43da0b528727f4daad711
7
+ data.tar.gz: 551c58d1df43d70de75baa3f0ddb64d9f928ad440772aff35eac4c6bbea07133662f7325b4c6fbf10b7fd55f41aab9efaf995507931c87a3fdde03f53ea58459
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.13.0 (2021-11-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.13.0
1
+ 1.14.0
@@ -351,26 +351,30 @@ module Aws::RedshiftDataAPIService
351
351
  # authorization method, use one of the following combinations of request
352
352
  # parameters:
353
353
  #
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.
357
- #
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.
362
- #
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.
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.
359
+ #
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.
365
+ #
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.
366
370
  #
367
371
  # @option params [required, String] :database
368
372
  # The name of the database. This parameter is required when
369
373
  # authenticating using either Secrets Manager or temporary credentials.
370
374
  #
371
375
  # @option params [String] :db_user
372
- # The database user name. This parameter is required when authenticating
373
- # using temporary credentials.
376
+ # The database user name. This parameter is required when connecting to
377
+ # a cluster and authenticating using temporary credentials.
374
378
  #
375
379
  # @option params [String] :secret_arn
376
380
  # The name or ARN of the secret that enables access to the database.
@@ -399,7 +403,7 @@ module Aws::RedshiftDataAPIService
399
403
  # @example Request syntax with placeholder values
400
404
  #
401
405
  # resp = client.batch_execute_statement({
402
- # cluster_identifier: "Location", # required
406
+ # cluster_identifier: "Location",
403
407
  # database: "String", # required
404
408
  # db_user: "String",
405
409
  # secret_arn: "SecretArn",
@@ -546,18 +550,22 @@ module Aws::RedshiftDataAPIService
546
550
  # page through the column list. Depending on the authorization method,
547
551
  # use one of the following combinations of request parameters:
548
552
  #
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.
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.
552
558
  #
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.
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.
557
564
  #
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.
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.
561
569
  #
562
570
  # @option params [String] :connected_database
563
571
  # A database name. The connected database is specified when you connect
@@ -569,8 +577,8 @@ module Aws::RedshiftDataAPIService
569
577
  # connect to with your authentication credentials.
570
578
  #
571
579
  # @option params [String] :db_user
572
- # The database user name. This parameter is required when authenticating
573
- # using temporary credentials.
580
+ # The database user name. This parameter is required when connecting to
581
+ # a cluster and authenticating using temporary credentials.
574
582
  #
575
583
  # @option params [Integer] :max_results
576
584
  # The maximum number of tables to return in the response. If more tables
@@ -609,7 +617,7 @@ module Aws::RedshiftDataAPIService
609
617
  # @example Request syntax with placeholder values
610
618
  #
611
619
  # resp = client.describe_table({
612
- # cluster_identifier: "Location", # required
620
+ # cluster_identifier: "Location",
613
621
  # connected_database: "String",
614
622
  # database: "String", # required
615
623
  # db_user: "String",
@@ -653,26 +661,30 @@ module Aws::RedshiftDataAPIService
653
661
  # statement. Depending on the authorization method, use one of the
654
662
  # following combinations of request parameters:
655
663
  #
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.
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.
659
669
  #
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.
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.
664
675
  #
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.
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.
668
680
  #
669
681
  # @option params [required, String] :database
670
682
  # The name of the database. This parameter is required when
671
683
  # authenticating using either Secrets Manager or temporary credentials.
672
684
  #
673
685
  # @option params [String] :db_user
674
- # The database user name. This parameter is required when authenticating
675
- # using temporary credentials.
686
+ # The database user name. This parameter is required when connecting to
687
+ # a cluster and authenticating using temporary credentials.
676
688
  #
677
689
  # @option params [Array<Types::SqlParameter>] :parameters
678
690
  # The parameters for the SQL statement.
@@ -704,7 +716,7 @@ module Aws::RedshiftDataAPIService
704
716
  # @example Request syntax with placeholder values
705
717
  #
706
718
  # resp = client.execute_statement({
707
- # cluster_identifier: "Location", # required
719
+ # cluster_identifier: "Location",
708
720
  # database: "String", # required
709
721
  # db_user: "String",
710
722
  # parameters: [
@@ -813,26 +825,30 @@ module Aws::RedshiftDataAPIService
813
825
  # the database list. Depending on the authorization method, use one of
814
826
  # the following combinations of request parameters:
815
827
  #
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.
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.
819
833
  #
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.
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.
824
839
  #
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.
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.
828
844
  #
829
845
  # @option params [required, String] :database
830
846
  # The name of the database. This parameter is required when
831
847
  # authenticating using either Secrets Manager or temporary credentials.
832
848
  #
833
849
  # @option params [String] :db_user
834
- # The database user name. This parameter is required when authenticating
835
- # using temporary credentials.
850
+ # The database user name. This parameter is required when connecting to
851
+ # a cluster and authenticating using temporary credentials.
836
852
  #
837
853
  # @option params [Integer] :max_results
838
854
  # The maximum number of databases to return in the response. If more
@@ -861,7 +877,7 @@ module Aws::RedshiftDataAPIService
861
877
  # @example Request syntax with placeholder values
862
878
  #
863
879
  # resp = client.list_databases({
864
- # cluster_identifier: "Location", # required
880
+ # cluster_identifier: "Location",
865
881
  # database: "String", # required
866
882
  # db_user: "String",
867
883
  # max_results: 1,
@@ -888,18 +904,22 @@ module Aws::RedshiftDataAPIService
888
904
  # the schema list. Depending on the authorization method, use one of the
889
905
  # following combinations of request parameters:
890
906
  #
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.
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.
894
912
  #
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.
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.
899
918
  #
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.
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.
903
923
  #
904
924
  # @option params [String] :connected_database
905
925
  # A database name. The connected database is specified when you connect
@@ -911,8 +931,8 @@ module Aws::RedshiftDataAPIService
911
931
  # connect to with your authentication credentials.
912
932
  #
913
933
  # @option params [String] :db_user
914
- # The database user name. This parameter is required when authenticating
915
- # using temporary credentials.
934
+ # The database user name. This parameter is required when connecting to
935
+ # a cluster and authenticating using temporary credentials.
916
936
  #
917
937
  # @option params [Integer] :max_results
918
938
  # The maximum number of schemas to return in the response. If more
@@ -947,7 +967,7 @@ module Aws::RedshiftDataAPIService
947
967
  # @example Request syntax with placeholder values
948
968
  #
949
969
  # resp = client.list_schemas({
950
- # cluster_identifier: "Location", # required
970
+ # cluster_identifier: "Location",
951
971
  # connected_database: "String",
952
972
  # database: "String", # required
953
973
  # db_user: "String",
@@ -1072,18 +1092,22 @@ module Aws::RedshiftDataAPIService
1072
1092
  # Depending on the authorization method, use one of the following
1073
1093
  # combinations of request parameters:
1074
1094
  #
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.
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.
1078
1100
  #
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.
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.
1083
1106
  #
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.
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.
1087
1111
  #
1088
1112
  # @option params [String] :connected_database
1089
1113
  # A database name. The connected database is specified when you connect
@@ -1095,8 +1119,8 @@ module Aws::RedshiftDataAPIService
1095
1119
  # connect to with your authentication credentials.
1096
1120
  #
1097
1121
  # @option params [String] :db_user
1098
- # The database user name. This parameter is required when authenticating
1099
- # using temporary credentials.
1122
+ # The database user name. This parameter is required when connecting to
1123
+ # a cluster and authenticating using temporary credentials.
1100
1124
  #
1101
1125
  # @option params [Integer] :max_results
1102
1126
  # The maximum number of tables to return in the response. If more tables
@@ -1143,7 +1167,7 @@ module Aws::RedshiftDataAPIService
1143
1167
  # @example Request syntax with placeholder values
1144
1168
  #
1145
1169
  # resp = client.list_tables({
1146
- # cluster_identifier: "Location", # required
1170
+ # cluster_identifier: "Location",
1147
1171
  # connected_database: "String",
1148
1172
  # database: "String", # required
1149
1173
  # db_user: "String",
@@ -1184,7 +1208,7 @@ module Aws::RedshiftDataAPIService
1184
1208
  params: params,
1185
1209
  config: config)
1186
1210
  context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
1187
- context[:gem_version] = '1.13.0'
1211
+ context[:gem_version] = '1.14.0'
1188
1212
  Seahorse::Client::Request.new(handlers, context)
1189
1213
  end
1190
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.13.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.13.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-11-04 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