aws-sdk-redshiftdataapiservice 1.15.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-redshiftdataapiservice/client.rb +106 -80
- data/lib/aws-sdk-redshiftdataapiservice/client_api.rb +15 -6
- data/lib/aws-sdk-redshiftdataapiservice/errors.rb +16 -0
- data/lib/aws-sdk-redshiftdataapiservice/types.rb +56 -40
- data/lib/aws-sdk-redshiftdataapiservice.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05340c95db4950a0fc1c151107a153b99860a67414c198a274225ad5f54d280e
|
4
|
+
data.tar.gz: f0c97320c0b01c61f636f90e8bef143bf5dba023a00971ef5ea1e6e188f7bd92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 519b608baef7d9d72bf4ecb1f0c6609e68ebb3fe80f3ede44604cf2afdfdbc8a54a895479c81e1871c60324a7339d9d7f6159d866f9a8db9e94f973791fb255f
|
7
|
+
data.tar.gz: aa037663560619e1b7e635dc3bddb8213a96f215ca45eeb0959692f964152ec3361d7747253bd8d6bfdc2df841043878e8384bf842602f83b085048213a6f815
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
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
|
@@ -351,26 +353,30 @@ module Aws::RedshiftDataAPIService
|
|
351
353
|
# authorization method, use one of the following combinations of request
|
352
354
|
# parameters:
|
353
355
|
#
|
354
|
-
# * Secrets Manager -
|
355
|
-
# secret, the database name, and the
|
356
|
-
# 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.
|
357
361
|
#
|
358
|
-
# * Temporary credentials -
|
359
|
-
# name, and the database user name.
|
360
|
-
# `redshift:GetClusterCredentials`
|
361
|
-
#
|
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.
|
362
367
|
#
|
363
|
-
# @option params [
|
364
|
-
# The cluster identifier. This parameter is required when
|
365
|
-
# using either Secrets Manager or temporary
|
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.
|
366
372
|
#
|
367
373
|
# @option params [required, String] :database
|
368
374
|
# The name of the database. This parameter is required when
|
369
375
|
# authenticating using either Secrets Manager or temporary credentials.
|
370
376
|
#
|
371
377
|
# @option params [String] :db_user
|
372
|
-
# The database user name. This parameter is required when
|
373
|
-
# using temporary credentials.
|
378
|
+
# The database user name. This parameter is required when connecting to
|
379
|
+
# a cluster and authenticating using temporary credentials.
|
374
380
|
#
|
375
381
|
# @option params [String] :secret_arn
|
376
382
|
# The name or ARN of the secret that enables access to the database.
|
@@ -399,7 +405,7 @@ module Aws::RedshiftDataAPIService
|
|
399
405
|
# @example Request syntax with placeholder values
|
400
406
|
#
|
401
407
|
# resp = client.batch_execute_statement({
|
402
|
-
# cluster_identifier: "Location",
|
408
|
+
# cluster_identifier: "Location",
|
403
409
|
# database: "String", # required
|
404
410
|
# db_user: "String",
|
405
411
|
# secret_arn: "SecretArn",
|
@@ -546,18 +552,22 @@ module Aws::RedshiftDataAPIService
|
|
546
552
|
# page through the column list. Depending on the authorization method,
|
547
553
|
# use one of the following combinations of request parameters:
|
548
554
|
#
|
549
|
-
# * Secrets Manager -
|
550
|
-
# secret, the database name, and the
|
551
|
-
# 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.
|
552
560
|
#
|
553
|
-
# * Temporary credentials -
|
554
|
-
# name, and the database user name.
|
555
|
-
# `redshift:GetClusterCredentials`
|
556
|
-
#
|
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.
|
557
566
|
#
|
558
|
-
# @option params [
|
559
|
-
# The cluster identifier. This parameter is required when
|
560
|
-
# using either Secrets Manager or temporary
|
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.
|
561
571
|
#
|
562
572
|
# @option params [String] :connected_database
|
563
573
|
# A database name. The connected database is specified when you connect
|
@@ -569,8 +579,8 @@ module Aws::RedshiftDataAPIService
|
|
569
579
|
# connect to with your authentication credentials.
|
570
580
|
#
|
571
581
|
# @option params [String] :db_user
|
572
|
-
# The database user name. This parameter is required when
|
573
|
-
# using temporary credentials.
|
582
|
+
# The database user name. This parameter is required when connecting to
|
583
|
+
# a cluster and authenticating using temporary credentials.
|
574
584
|
#
|
575
585
|
# @option params [Integer] :max_results
|
576
586
|
# The maximum number of tables to return in the response. If more tables
|
@@ -609,7 +619,7 @@ module Aws::RedshiftDataAPIService
|
|
609
619
|
# @example Request syntax with placeholder values
|
610
620
|
#
|
611
621
|
# resp = client.describe_table({
|
612
|
-
# cluster_identifier: "Location",
|
622
|
+
# cluster_identifier: "Location",
|
613
623
|
# connected_database: "String",
|
614
624
|
# database: "String", # required
|
615
625
|
# db_user: "String",
|
@@ -653,26 +663,30 @@ module Aws::RedshiftDataAPIService
|
|
653
663
|
# statement. Depending on the authorization method, use one of the
|
654
664
|
# following combinations of request parameters:
|
655
665
|
#
|
656
|
-
# * Secrets Manager -
|
657
|
-
# secret, the database name, and the
|
658
|
-
# 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.
|
659
671
|
#
|
660
|
-
# * Temporary credentials -
|
661
|
-
# name, and the database user name.
|
662
|
-
# `redshift:GetClusterCredentials`
|
663
|
-
#
|
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.
|
664
677
|
#
|
665
|
-
# @option params [
|
666
|
-
# The cluster identifier. This parameter is required when
|
667
|
-
# using either Secrets Manager or temporary
|
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.
|
668
682
|
#
|
669
683
|
# @option params [required, String] :database
|
670
684
|
# The name of the database. This parameter is required when
|
671
685
|
# authenticating using either Secrets Manager or temporary credentials.
|
672
686
|
#
|
673
687
|
# @option params [String] :db_user
|
674
|
-
# The database user name. This parameter is required when
|
675
|
-
# using temporary credentials.
|
688
|
+
# The database user name. This parameter is required when connecting to
|
689
|
+
# a cluster and authenticating using temporary credentials.
|
676
690
|
#
|
677
691
|
# @option params [Array<Types::SqlParameter>] :parameters
|
678
692
|
# The parameters for the SQL statement.
|
@@ -704,7 +718,7 @@ module Aws::RedshiftDataAPIService
|
|
704
718
|
# @example Request syntax with placeholder values
|
705
719
|
#
|
706
720
|
# resp = client.execute_statement({
|
707
|
-
# cluster_identifier: "Location",
|
721
|
+
# cluster_identifier: "Location",
|
708
722
|
# database: "String", # required
|
709
723
|
# db_user: "String",
|
710
724
|
# parameters: [
|
@@ -813,26 +827,30 @@ module Aws::RedshiftDataAPIService
|
|
813
827
|
# the database list. Depending on the authorization method, use one of
|
814
828
|
# the following combinations of request parameters:
|
815
829
|
#
|
816
|
-
# * Secrets Manager -
|
817
|
-
# secret, the database name, and the
|
818
|
-
# 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.
|
819
835
|
#
|
820
|
-
# * Temporary credentials -
|
821
|
-
# name, and the database user name.
|
822
|
-
# `redshift:GetClusterCredentials`
|
823
|
-
#
|
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.
|
824
841
|
#
|
825
|
-
# @option params [
|
826
|
-
# The cluster identifier. This parameter is required when
|
827
|
-
# using either Secrets Manager or temporary
|
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.
|
828
846
|
#
|
829
847
|
# @option params [required, String] :database
|
830
848
|
# The name of the database. This parameter is required when
|
831
849
|
# authenticating using either Secrets Manager or temporary credentials.
|
832
850
|
#
|
833
851
|
# @option params [String] :db_user
|
834
|
-
# The database user name. This parameter is required when
|
835
|
-
# using temporary credentials.
|
852
|
+
# The database user name. This parameter is required when connecting to
|
853
|
+
# a cluster and authenticating using temporary credentials.
|
836
854
|
#
|
837
855
|
# @option params [Integer] :max_results
|
838
856
|
# The maximum number of databases to return in the response. If more
|
@@ -861,7 +879,7 @@ module Aws::RedshiftDataAPIService
|
|
861
879
|
# @example Request syntax with placeholder values
|
862
880
|
#
|
863
881
|
# resp = client.list_databases({
|
864
|
-
# cluster_identifier: "Location",
|
882
|
+
# cluster_identifier: "Location",
|
865
883
|
# database: "String", # required
|
866
884
|
# db_user: "String",
|
867
885
|
# max_results: 1,
|
@@ -888,18 +906,22 @@ module Aws::RedshiftDataAPIService
|
|
888
906
|
# the schema list. Depending on the authorization method, use one of the
|
889
907
|
# following combinations of request parameters:
|
890
908
|
#
|
891
|
-
# * Secrets Manager -
|
892
|
-
# secret, the database name, and the
|
893
|
-
# 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.
|
894
914
|
#
|
895
|
-
# * Temporary credentials -
|
896
|
-
# name, and the database user name.
|
897
|
-
# `redshift:GetClusterCredentials`
|
898
|
-
#
|
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.
|
899
920
|
#
|
900
|
-
# @option params [
|
901
|
-
# The cluster identifier. This parameter is required when
|
902
|
-
# using either Secrets Manager or temporary
|
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.
|
903
925
|
#
|
904
926
|
# @option params [String] :connected_database
|
905
927
|
# A database name. The connected database is specified when you connect
|
@@ -911,8 +933,8 @@ module Aws::RedshiftDataAPIService
|
|
911
933
|
# connect to with your authentication credentials.
|
912
934
|
#
|
913
935
|
# @option params [String] :db_user
|
914
|
-
# The database user name. This parameter is required when
|
915
|
-
# using temporary credentials.
|
936
|
+
# The database user name. This parameter is required when connecting to
|
937
|
+
# a cluster and authenticating using temporary credentials.
|
916
938
|
#
|
917
939
|
# @option params [Integer] :max_results
|
918
940
|
# The maximum number of schemas to return in the response. If more
|
@@ -947,7 +969,7 @@ module Aws::RedshiftDataAPIService
|
|
947
969
|
# @example Request syntax with placeholder values
|
948
970
|
#
|
949
971
|
# resp = client.list_schemas({
|
950
|
-
# cluster_identifier: "Location",
|
972
|
+
# cluster_identifier: "Location",
|
951
973
|
# connected_database: "String",
|
952
974
|
# database: "String", # required
|
953
975
|
# db_user: "String",
|
@@ -1072,18 +1094,22 @@ module Aws::RedshiftDataAPIService
|
|
1072
1094
|
# Depending on the authorization method, use one of the following
|
1073
1095
|
# combinations of request parameters:
|
1074
1096
|
#
|
1075
|
-
# * Secrets Manager -
|
1076
|
-
# secret, the database name, and the
|
1077
|
-
# 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.
|
1078
1102
|
#
|
1079
|
-
# * Temporary credentials -
|
1080
|
-
# name, and the database user name.
|
1081
|
-
# `redshift:GetClusterCredentials`
|
1082
|
-
#
|
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.
|
1083
1108
|
#
|
1084
|
-
# @option params [
|
1085
|
-
# The cluster identifier. This parameter is required when
|
1086
|
-
# using either Secrets Manager or temporary
|
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.
|
1087
1113
|
#
|
1088
1114
|
# @option params [String] :connected_database
|
1089
1115
|
# A database name. The connected database is specified when you connect
|
@@ -1095,8 +1121,8 @@ module Aws::RedshiftDataAPIService
|
|
1095
1121
|
# connect to with your authentication credentials.
|
1096
1122
|
#
|
1097
1123
|
# @option params [String] :db_user
|
1098
|
-
# The database user name. This parameter is required when
|
1099
|
-
# using temporary credentials.
|
1124
|
+
# The database user name. This parameter is required when connecting to
|
1125
|
+
# a cluster and authenticating using temporary credentials.
|
1100
1126
|
#
|
1101
1127
|
# @option params [Integer] :max_results
|
1102
1128
|
# The maximum number of tables to return in the response. If more tables
|
@@ -1143,7 +1169,7 @@ module Aws::RedshiftDataAPIService
|
|
1143
1169
|
# @example Request syntax with placeholder values
|
1144
1170
|
#
|
1145
1171
|
# resp = client.list_tables({
|
1146
|
-
# cluster_identifier: "Location",
|
1172
|
+
# cluster_identifier: "Location",
|
1147
1173
|
# connected_database: "String",
|
1148
1174
|
# database: "String", # required
|
1149
1175
|
# db_user: "String",
|
@@ -1184,7 +1210,7 @@ module Aws::RedshiftDataAPIService
|
|
1184
1210
|
params: params,
|
1185
1211
|
config: config)
|
1186
1212
|
context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
|
1187
|
-
context[:gem_version] = '1.
|
1213
|
+
context[:gem_version] = '1.16.0'
|
1188
1214
|
Seahorse::Client::Request.new(handlers, context)
|
1189
1215
|
end
|
1190
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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",
|
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
|
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",
|
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
|
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",
|
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
|
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",
|
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
|
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",
|
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
|
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",
|
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
|
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
|
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.
|
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-11-
|
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
|