aws-sdk-redshiftdataapiservice 1.41.0 → 1.42.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 +47 -14
- data/lib/aws-sdk-redshiftdataapiservice/client_api.rb +51 -20
- data/lib/aws-sdk-redshiftdataapiservice/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-redshiftdataapiservice/errors.rb +32 -0
- data/lib/aws-sdk-redshiftdataapiservice/types.rb +83 -0
- data/lib/aws-sdk-redshiftdataapiservice.rb +1 -1
- data/sig/client.rbs +11 -2
- data/sig/errors.rbs +6 -0
- data/sig/types.rbs +20 -0
- 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: 844d90d23915dacf45399c5acb3e210023a2dca58ce1a3cb3aa8d5ca151fd084
|
4
|
+
data.tar.gz: ccf177211e43e0e5dca4d0c92a8394cd1a790dc9ae202e89bc6c726ed08f122d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 841d73d9b33010acf432d7e420cd3a244c88bac2c05beca5e6bfa31eb4bc49e6a9ec4d87ccfc2f6d015fc82f9c71a7df05b55f6e6d6e364490c9b8d58c60bdee
|
7
|
+
data.tar.gz: 252ac322ffc90d837d57ed7d3c25b00339a2e6664bab72bcc0d7a08d71b29cb1fe6852b33b9907d69ee987e9e1f26f92d40b98d99f78d1218fe4bcda5d1ea806
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.42.0 (2024-08-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - The release include the new Redshift DataAPI feature for session use, customer execute query with --session-keep-alive-seconds parameter and can submit follow-up queries to same sessions with returned`session-id`
|
8
|
+
|
4
9
|
1.41.0 (2024-07-02)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.42.0
|
@@ -487,7 +487,7 @@ module Aws::RedshiftDataAPIService
|
|
487
487
|
# a cluster and authenticating using either Secrets Manager or temporary
|
488
488
|
# credentials.
|
489
489
|
#
|
490
|
-
# @option params [
|
490
|
+
# @option params [String] :database
|
491
491
|
# The name of the database. This parameter is required when
|
492
492
|
# authenticating using either Secrets Manager or temporary credentials.
|
493
493
|
#
|
@@ -500,6 +500,14 @@ module Aws::RedshiftDataAPIService
|
|
500
500
|
# The name or ARN of the secret that enables access to the database.
|
501
501
|
# This parameter is required when authenticating using Secrets Manager.
|
502
502
|
#
|
503
|
+
# @option params [String] :session_id
|
504
|
+
# The session identifier of the query.
|
505
|
+
#
|
506
|
+
# @option params [Integer] :session_keep_alive_seconds
|
507
|
+
# The number of seconds to keep the session alive after the query
|
508
|
+
# finishes. The maximum time a session can keep alive is 24 hours. After
|
509
|
+
# 24 hours, the session is forced closed and the query is terminated.
|
510
|
+
#
|
503
511
|
# @option params [required, Array<String>] :sqls
|
504
512
|
# One or more SQL statements to run. The SQL statements are run as
|
505
513
|
# a single transaction. They run serially in the order of the array.
|
@@ -525,19 +533,23 @@ module Aws::RedshiftDataAPIService
|
|
525
533
|
# * {Types::BatchExecuteStatementOutput#cluster_identifier #cluster_identifier} => String
|
526
534
|
# * {Types::BatchExecuteStatementOutput#created_at #created_at} => Time
|
527
535
|
# * {Types::BatchExecuteStatementOutput#database #database} => String
|
536
|
+
# * {Types::BatchExecuteStatementOutput#db_groups #db_groups} => Array<String>
|
528
537
|
# * {Types::BatchExecuteStatementOutput#db_user #db_user} => String
|
529
538
|
# * {Types::BatchExecuteStatementOutput#id #id} => String
|
530
539
|
# * {Types::BatchExecuteStatementOutput#secret_arn #secret_arn} => String
|
540
|
+
# * {Types::BatchExecuteStatementOutput#session_id #session_id} => String
|
531
541
|
# * {Types::BatchExecuteStatementOutput#workgroup_name #workgroup_name} => String
|
532
542
|
#
|
533
543
|
# @example Request syntax with placeholder values
|
534
544
|
#
|
535
545
|
# resp = client.batch_execute_statement({
|
536
546
|
# client_token: "ClientToken",
|
537
|
-
# cluster_identifier: "
|
538
|
-
# database: "String",
|
547
|
+
# cluster_identifier: "ClusterIdentifierString",
|
548
|
+
# database: "String",
|
539
549
|
# db_user: "String",
|
540
550
|
# secret_arn: "SecretArn",
|
551
|
+
# session_id: "UUID",
|
552
|
+
# session_keep_alive_seconds: 1,
|
541
553
|
# sqls: ["StatementString"], # required
|
542
554
|
# statement_name: "StatementNameString",
|
543
555
|
# with_event: false,
|
@@ -549,9 +561,12 @@ module Aws::RedshiftDataAPIService
|
|
549
561
|
# resp.cluster_identifier #=> String
|
550
562
|
# resp.created_at #=> Time
|
551
563
|
# resp.database #=> String
|
564
|
+
# resp.db_groups #=> Array
|
565
|
+
# resp.db_groups[0] #=> String
|
552
566
|
# resp.db_user #=> String
|
553
567
|
# resp.id #=> String
|
554
568
|
# resp.secret_arn #=> String
|
569
|
+
# resp.session_id #=> String
|
555
570
|
# resp.workgroup_name #=> String
|
556
571
|
#
|
557
572
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/BatchExecuteStatement AWS API Documentation
|
@@ -586,7 +601,7 @@ module Aws::RedshiftDataAPIService
|
|
586
601
|
# @example Request syntax with placeholder values
|
587
602
|
#
|
588
603
|
# resp = client.cancel_statement({
|
589
|
-
# id: "
|
604
|
+
# id: "UUID", # required
|
590
605
|
# })
|
591
606
|
#
|
592
607
|
# @example Response structure
|
@@ -641,6 +656,7 @@ module Aws::RedshiftDataAPIService
|
|
641
656
|
# * {Types::DescribeStatementResponse#result_rows #result_rows} => Integer
|
642
657
|
# * {Types::DescribeStatementResponse#result_size #result_size} => Integer
|
643
658
|
# * {Types::DescribeStatementResponse#secret_arn #secret_arn} => String
|
659
|
+
# * {Types::DescribeStatementResponse#session_id #session_id} => String
|
644
660
|
# * {Types::DescribeStatementResponse#status #status} => String
|
645
661
|
# * {Types::DescribeStatementResponse#sub_statements #sub_statements} => Array<Types::SubStatementData>
|
646
662
|
# * {Types::DescribeStatementResponse#updated_at #updated_at} => Time
|
@@ -649,7 +665,7 @@ module Aws::RedshiftDataAPIService
|
|
649
665
|
# @example Request syntax with placeholder values
|
650
666
|
#
|
651
667
|
# resp = client.describe_statement({
|
652
|
-
# id: "
|
668
|
+
# id: "UUID", # required
|
653
669
|
# })
|
654
670
|
#
|
655
671
|
# @example Response structure
|
@@ -671,6 +687,7 @@ module Aws::RedshiftDataAPIService
|
|
671
687
|
# resp.result_rows #=> Integer
|
672
688
|
# resp.result_size #=> Integer
|
673
689
|
# resp.secret_arn #=> String
|
690
|
+
# resp.session_id #=> String
|
674
691
|
# resp.status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
|
675
692
|
# resp.sub_statements #=> Array
|
676
693
|
# resp.sub_statements[0].created_at #=> Time
|
@@ -800,7 +817,7 @@ module Aws::RedshiftDataAPIService
|
|
800
817
|
# @example Request syntax with placeholder values
|
801
818
|
#
|
802
819
|
# resp = client.describe_table({
|
803
|
-
# cluster_identifier: "
|
820
|
+
# cluster_identifier: "ClusterIdentifierString",
|
804
821
|
# connected_database: "String",
|
805
822
|
# database: "String", # required
|
806
823
|
# db_user: "String",
|
@@ -895,7 +912,7 @@ module Aws::RedshiftDataAPIService
|
|
895
912
|
# a cluster and authenticating using either Secrets Manager or temporary
|
896
913
|
# credentials.
|
897
914
|
#
|
898
|
-
# @option params [
|
915
|
+
# @option params [String] :database
|
899
916
|
# The name of the database. This parameter is required when
|
900
917
|
# authenticating using either Secrets Manager or temporary credentials.
|
901
918
|
#
|
@@ -911,6 +928,14 @@ module Aws::RedshiftDataAPIService
|
|
911
928
|
# The name or ARN of the secret that enables access to the database.
|
912
929
|
# This parameter is required when authenticating using Secrets Manager.
|
913
930
|
#
|
931
|
+
# @option params [String] :session_id
|
932
|
+
# The session identifier of the query.
|
933
|
+
#
|
934
|
+
# @option params [Integer] :session_keep_alive_seconds
|
935
|
+
# The number of seconds to keep the session alive after the query
|
936
|
+
# finishes. The maximum time a session can keep alive is 24 hours. After
|
937
|
+
# 24 hours, the session is forced closed and the query is terminated.
|
938
|
+
#
|
914
939
|
# @option params [required, String] :sql
|
915
940
|
# The SQL statement text to run.
|
916
941
|
#
|
@@ -932,17 +957,19 @@ module Aws::RedshiftDataAPIService
|
|
932
957
|
# * {Types::ExecuteStatementOutput#cluster_identifier #cluster_identifier} => String
|
933
958
|
# * {Types::ExecuteStatementOutput#created_at #created_at} => Time
|
934
959
|
# * {Types::ExecuteStatementOutput#database #database} => String
|
960
|
+
# * {Types::ExecuteStatementOutput#db_groups #db_groups} => Array<String>
|
935
961
|
# * {Types::ExecuteStatementOutput#db_user #db_user} => String
|
936
962
|
# * {Types::ExecuteStatementOutput#id #id} => String
|
937
963
|
# * {Types::ExecuteStatementOutput#secret_arn #secret_arn} => String
|
964
|
+
# * {Types::ExecuteStatementOutput#session_id #session_id} => String
|
938
965
|
# * {Types::ExecuteStatementOutput#workgroup_name #workgroup_name} => String
|
939
966
|
#
|
940
967
|
# @example Request syntax with placeholder values
|
941
968
|
#
|
942
969
|
# resp = client.execute_statement({
|
943
970
|
# client_token: "ClientToken",
|
944
|
-
# cluster_identifier: "
|
945
|
-
# database: "String",
|
971
|
+
# cluster_identifier: "ClusterIdentifierString",
|
972
|
+
# database: "String",
|
946
973
|
# db_user: "String",
|
947
974
|
# parameters: [
|
948
975
|
# {
|
@@ -951,6 +978,8 @@ module Aws::RedshiftDataAPIService
|
|
951
978
|
# },
|
952
979
|
# ],
|
953
980
|
# secret_arn: "SecretArn",
|
981
|
+
# session_id: "UUID",
|
982
|
+
# session_keep_alive_seconds: 1,
|
954
983
|
# sql: "StatementString", # required
|
955
984
|
# statement_name: "StatementNameString",
|
956
985
|
# with_event: false,
|
@@ -962,9 +991,12 @@ module Aws::RedshiftDataAPIService
|
|
962
991
|
# resp.cluster_identifier #=> String
|
963
992
|
# resp.created_at #=> Time
|
964
993
|
# resp.database #=> String
|
994
|
+
# resp.db_groups #=> Array
|
995
|
+
# resp.db_groups[0] #=> String
|
965
996
|
# resp.db_user #=> String
|
966
997
|
# resp.id #=> String
|
967
998
|
# resp.secret_arn #=> String
|
999
|
+
# resp.session_id #=> String
|
968
1000
|
# resp.workgroup_name #=> String
|
969
1001
|
#
|
970
1002
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ExecuteStatement AWS API Documentation
|
@@ -1016,7 +1048,7 @@ module Aws::RedshiftDataAPIService
|
|
1016
1048
|
# @example Request syntax with placeholder values
|
1017
1049
|
#
|
1018
1050
|
# resp = client.get_statement_result({
|
1019
|
-
# id: "
|
1051
|
+
# id: "UUID", # required
|
1020
1052
|
# next_token: "String",
|
1021
1053
|
# })
|
1022
1054
|
#
|
@@ -1144,7 +1176,7 @@ module Aws::RedshiftDataAPIService
|
|
1144
1176
|
# @example Request syntax with placeholder values
|
1145
1177
|
#
|
1146
1178
|
# resp = client.list_databases({
|
1147
|
-
# cluster_identifier: "
|
1179
|
+
# cluster_identifier: "ClusterIdentifierString",
|
1148
1180
|
# database: "String", # required
|
1149
1181
|
# db_user: "String",
|
1150
1182
|
# max_results: 1,
|
@@ -1267,7 +1299,7 @@ module Aws::RedshiftDataAPIService
|
|
1267
1299
|
# @example Request syntax with placeholder values
|
1268
1300
|
#
|
1269
1301
|
# resp = client.list_schemas({
|
1270
|
-
# cluster_identifier: "
|
1302
|
+
# cluster_identifier: "ClusterIdentifierString",
|
1271
1303
|
# connected_database: "String",
|
1272
1304
|
# database: "String", # required
|
1273
1305
|
# db_user: "String",
|
@@ -1382,6 +1414,7 @@ module Aws::RedshiftDataAPIService
|
|
1382
1414
|
# resp.statements[0].query_strings #=> Array
|
1383
1415
|
# resp.statements[0].query_strings[0] #=> String
|
1384
1416
|
# resp.statements[0].secret_arn #=> String
|
1417
|
+
# resp.statements[0].session_id #=> String
|
1385
1418
|
# resp.statements[0].statement_name #=> String
|
1386
1419
|
# resp.statements[0].status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
|
1387
1420
|
# resp.statements[0].updated_at #=> Time
|
@@ -1508,7 +1541,7 @@ module Aws::RedshiftDataAPIService
|
|
1508
1541
|
# @example Request syntax with placeholder values
|
1509
1542
|
#
|
1510
1543
|
# resp = client.list_tables({
|
1511
|
-
# cluster_identifier: "
|
1544
|
+
# cluster_identifier: "ClusterIdentifierString",
|
1512
1545
|
# connected_database: "String",
|
1513
1546
|
# database: "String", # required
|
1514
1547
|
# db_user: "String",
|
@@ -1550,7 +1583,7 @@ module Aws::RedshiftDataAPIService
|
|
1550
1583
|
params: params,
|
1551
1584
|
config: config)
|
1552
1585
|
context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
|
1553
|
-
context[:gem_version] = '1.
|
1586
|
+
context[:gem_version] = '1.42.0'
|
1554
1587
|
Seahorse::Client::Request.new(handlers, context)
|
1555
1588
|
end
|
1556
1589
|
|
@@ -13,6 +13,7 @@ module Aws::RedshiftDataAPIService
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
ActiveSessionsExceededException = Shapes::StructureShape.new(name: 'ActiveSessionsExceededException')
|
16
17
|
ActiveStatementsExceededException = Shapes::StructureShape.new(name: 'ActiveStatementsExceededException')
|
17
18
|
BatchExecuteStatementException = Shapes::StructureShape.new(name: 'BatchExecuteStatementException')
|
18
19
|
BatchExecuteStatementInput = Shapes::StructureShape.new(name: 'BatchExecuteStatementInput')
|
@@ -25,11 +26,13 @@ module Aws::RedshiftDataAPIService
|
|
25
26
|
CancelStatementRequest = Shapes::StructureShape.new(name: 'CancelStatementRequest')
|
26
27
|
CancelStatementResponse = Shapes::StructureShape.new(name: 'CancelStatementResponse')
|
27
28
|
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
29
|
+
ClusterIdentifierString = Shapes::StringShape.new(name: 'ClusterIdentifierString')
|
28
30
|
ColumnList = Shapes::ListShape.new(name: 'ColumnList')
|
29
31
|
ColumnMetadata = Shapes::StructureShape.new(name: 'ColumnMetadata')
|
30
32
|
ColumnMetadataList = Shapes::ListShape.new(name: 'ColumnMetadataList')
|
31
33
|
DatabaseConnectionException = Shapes::StructureShape.new(name: 'DatabaseConnectionException')
|
32
34
|
DatabaseList = Shapes::ListShape.new(name: 'DatabaseList')
|
35
|
+
DbGroupList = Shapes::ListShape.new(name: 'DbGroupList')
|
33
36
|
DescribeStatementRequest = Shapes::StructureShape.new(name: 'DescribeStatementRequest')
|
34
37
|
DescribeStatementResponse = Shapes::StructureShape.new(name: 'DescribeStatementResponse')
|
35
38
|
DescribeTableRequest = Shapes::StructureShape.new(name: 'DescribeTableRequest')
|
@@ -52,20 +55,20 @@ module Aws::RedshiftDataAPIService
|
|
52
55
|
ListStatementsResponse = Shapes::StructureShape.new(name: 'ListStatementsResponse')
|
53
56
|
ListTablesRequest = Shapes::StructureShape.new(name: 'ListTablesRequest')
|
54
57
|
ListTablesResponse = Shapes::StructureShape.new(name: 'ListTablesResponse')
|
55
|
-
Location = Shapes::StringShape.new(name: 'Location')
|
56
58
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
57
59
|
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
58
60
|
ParameterName = Shapes::StringShape.new(name: 'ParameterName')
|
59
61
|
ParameterValue = Shapes::StringShape.new(name: 'ParameterValue')
|
62
|
+
QueryTimeoutException = Shapes::StructureShape.new(name: 'QueryTimeoutException')
|
60
63
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
61
64
|
SchemaList = Shapes::ListShape.new(name: 'SchemaList')
|
62
65
|
SecretArn = Shapes::StringShape.new(name: 'SecretArn')
|
66
|
+
SessionAliveSeconds = Shapes::IntegerShape.new(name: 'SessionAliveSeconds')
|
63
67
|
SqlList = Shapes::ListShape.new(name: 'SqlList')
|
64
68
|
SqlParameter = Shapes::StructureShape.new(name: 'SqlParameter')
|
65
69
|
SqlParametersList = Shapes::ListShape.new(name: 'SqlParametersList')
|
66
70
|
SqlRecords = Shapes::ListShape.new(name: 'SqlRecords')
|
67
71
|
StatementData = Shapes::StructureShape.new(name: 'StatementData')
|
68
|
-
StatementId = Shapes::StringShape.new(name: 'StatementId')
|
69
72
|
StatementList = Shapes::ListShape.new(name: 'StatementList')
|
70
73
|
StatementNameString = Shapes::StringShape.new(name: 'StatementNameString')
|
71
74
|
StatementStatusString = Shapes::StringShape.new(name: 'StatementStatusString')
|
@@ -78,10 +81,14 @@ module Aws::RedshiftDataAPIService
|
|
78
81
|
TableList = Shapes::ListShape.new(name: 'TableList')
|
79
82
|
TableMember = Shapes::StructureShape.new(name: 'TableMember')
|
80
83
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
84
|
+
UUID = Shapes::StringShape.new(name: 'UUID')
|
81
85
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
82
86
|
WorkgroupNameString = Shapes::StringShape.new(name: 'WorkgroupNameString')
|
83
87
|
bool = Shapes::BooleanShape.new(name: 'bool')
|
84
88
|
|
89
|
+
ActiveSessionsExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
90
|
+
ActiveSessionsExceededException.struct_class = Types::ActiveSessionsExceededException
|
91
|
+
|
85
92
|
ActiveStatementsExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
86
93
|
ActiveStatementsExceededException.struct_class = Types::ActiveStatementsExceededException
|
87
94
|
|
@@ -90,26 +97,30 @@ module Aws::RedshiftDataAPIService
|
|
90
97
|
BatchExecuteStatementException.struct_class = Types::BatchExecuteStatementException
|
91
98
|
|
92
99
|
BatchExecuteStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
93
|
-
BatchExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape:
|
94
|
-
BatchExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String,
|
100
|
+
BatchExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: ClusterIdentifierString, location_name: "ClusterIdentifier"))
|
101
|
+
BatchExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "Database"))
|
95
102
|
BatchExecuteStatementInput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
96
103
|
BatchExecuteStatementInput.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
104
|
+
BatchExecuteStatementInput.add_member(:session_id, Shapes::ShapeRef.new(shape: UUID, location_name: "SessionId"))
|
105
|
+
BatchExecuteStatementInput.add_member(:session_keep_alive_seconds, Shapes::ShapeRef.new(shape: SessionAliveSeconds, location_name: "SessionKeepAliveSeconds"))
|
97
106
|
BatchExecuteStatementInput.add_member(:sqls, Shapes::ShapeRef.new(shape: SqlList, required: true, location_name: "Sqls"))
|
98
107
|
BatchExecuteStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
99
108
|
BatchExecuteStatementInput.add_member(:with_event, Shapes::ShapeRef.new(shape: Boolean, location_name: "WithEvent"))
|
100
109
|
BatchExecuteStatementInput.add_member(:workgroup_name, Shapes::ShapeRef.new(shape: WorkgroupNameString, location_name: "WorkgroupName"))
|
101
110
|
BatchExecuteStatementInput.struct_class = Types::BatchExecuteStatementInput
|
102
111
|
|
103
|
-
BatchExecuteStatementOutput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape:
|
112
|
+
BatchExecuteStatementOutput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: ClusterIdentifierString, location_name: "ClusterIdentifier"))
|
104
113
|
BatchExecuteStatementOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
105
114
|
BatchExecuteStatementOutput.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "Database"))
|
115
|
+
BatchExecuteStatementOutput.add_member(:db_groups, Shapes::ShapeRef.new(shape: DbGroupList, location_name: "DbGroups"))
|
106
116
|
BatchExecuteStatementOutput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
107
|
-
BatchExecuteStatementOutput.add_member(:id, Shapes::ShapeRef.new(shape:
|
117
|
+
BatchExecuteStatementOutput.add_member(:id, Shapes::ShapeRef.new(shape: UUID, location_name: "Id"))
|
108
118
|
BatchExecuteStatementOutput.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
119
|
+
BatchExecuteStatementOutput.add_member(:session_id, Shapes::ShapeRef.new(shape: UUID, location_name: "SessionId"))
|
109
120
|
BatchExecuteStatementOutput.add_member(:workgroup_name, Shapes::ShapeRef.new(shape: WorkgroupNameString, location_name: "WorkgroupName"))
|
110
121
|
BatchExecuteStatementOutput.struct_class = Types::BatchExecuteStatementOutput
|
111
122
|
|
112
|
-
CancelStatementRequest.add_member(:id, Shapes::ShapeRef.new(shape:
|
123
|
+
CancelStatementRequest.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
113
124
|
CancelStatementRequest.struct_class = Types::CancelStatementRequest
|
114
125
|
|
115
126
|
CancelStatementResponse.add_member(:status, Shapes::ShapeRef.new(shape: Boolean, location_name: "Status"))
|
@@ -139,7 +150,9 @@ module Aws::RedshiftDataAPIService
|
|
139
150
|
|
140
151
|
DatabaseList.member = Shapes::ShapeRef.new(shape: String)
|
141
152
|
|
142
|
-
|
153
|
+
DbGroupList.member = Shapes::ShapeRef.new(shape: String)
|
154
|
+
|
155
|
+
DescribeStatementRequest.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
143
156
|
DescribeStatementRequest.struct_class = Types::DescribeStatementRequest
|
144
157
|
|
145
158
|
DescribeStatementResponse.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "ClusterIdentifier"))
|
@@ -149,7 +162,7 @@ module Aws::RedshiftDataAPIService
|
|
149
162
|
DescribeStatementResponse.add_member(:duration, Shapes::ShapeRef.new(shape: Long, location_name: "Duration"))
|
150
163
|
DescribeStatementResponse.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "Error"))
|
151
164
|
DescribeStatementResponse.add_member(:has_result_set, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasResultSet"))
|
152
|
-
DescribeStatementResponse.add_member(:id, Shapes::ShapeRef.new(shape:
|
165
|
+
DescribeStatementResponse.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
153
166
|
DescribeStatementResponse.add_member(:query_parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "QueryParameters"))
|
154
167
|
DescribeStatementResponse.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
|
155
168
|
DescribeStatementResponse.add_member(:redshift_pid, Shapes::ShapeRef.new(shape: Long, location_name: "RedshiftPid"))
|
@@ -157,13 +170,14 @@ module Aws::RedshiftDataAPIService
|
|
157
170
|
DescribeStatementResponse.add_member(:result_rows, Shapes::ShapeRef.new(shape: Long, location_name: "ResultRows"))
|
158
171
|
DescribeStatementResponse.add_member(:result_size, Shapes::ShapeRef.new(shape: Long, location_name: "ResultSize"))
|
159
172
|
DescribeStatementResponse.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
173
|
+
DescribeStatementResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "SessionId"))
|
160
174
|
DescribeStatementResponse.add_member(:status, Shapes::ShapeRef.new(shape: StatusString, location_name: "Status"))
|
161
175
|
DescribeStatementResponse.add_member(:sub_statements, Shapes::ShapeRef.new(shape: SubStatementList, location_name: "SubStatements"))
|
162
176
|
DescribeStatementResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
|
163
177
|
DescribeStatementResponse.add_member(:workgroup_name, Shapes::ShapeRef.new(shape: WorkgroupNameString, location_name: "WorkgroupName"))
|
164
178
|
DescribeStatementResponse.struct_class = Types::DescribeStatementResponse
|
165
179
|
|
166
|
-
DescribeTableRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape:
|
180
|
+
DescribeTableRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: ClusterIdentifierString, location_name: "ClusterIdentifier"))
|
167
181
|
DescribeTableRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
|
168
182
|
DescribeTableRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
|
169
183
|
DescribeTableRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
@@ -185,23 +199,27 @@ module Aws::RedshiftDataAPIService
|
|
185
199
|
ExecuteStatementException.struct_class = Types::ExecuteStatementException
|
186
200
|
|
187
201
|
ExecuteStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
188
|
-
ExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape:
|
189
|
-
ExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String,
|
202
|
+
ExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: ClusterIdentifierString, location_name: "ClusterIdentifier"))
|
203
|
+
ExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "Database"))
|
190
204
|
ExecuteStatementInput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
191
205
|
ExecuteStatementInput.add_member(:parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "Parameters"))
|
192
206
|
ExecuteStatementInput.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
207
|
+
ExecuteStatementInput.add_member(:session_id, Shapes::ShapeRef.new(shape: UUID, location_name: "SessionId"))
|
208
|
+
ExecuteStatementInput.add_member(:session_keep_alive_seconds, Shapes::ShapeRef.new(shape: SessionAliveSeconds, location_name: "SessionKeepAliveSeconds"))
|
193
209
|
ExecuteStatementInput.add_member(:sql, Shapes::ShapeRef.new(shape: StatementString, required: true, location_name: "Sql"))
|
194
210
|
ExecuteStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
195
211
|
ExecuteStatementInput.add_member(:with_event, Shapes::ShapeRef.new(shape: Boolean, location_name: "WithEvent"))
|
196
212
|
ExecuteStatementInput.add_member(:workgroup_name, Shapes::ShapeRef.new(shape: WorkgroupNameString, location_name: "WorkgroupName"))
|
197
213
|
ExecuteStatementInput.struct_class = Types::ExecuteStatementInput
|
198
214
|
|
199
|
-
ExecuteStatementOutput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape:
|
215
|
+
ExecuteStatementOutput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: ClusterIdentifierString, location_name: "ClusterIdentifier"))
|
200
216
|
ExecuteStatementOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
201
217
|
ExecuteStatementOutput.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "Database"))
|
218
|
+
ExecuteStatementOutput.add_member(:db_groups, Shapes::ShapeRef.new(shape: DbGroupList, location_name: "DbGroups"))
|
202
219
|
ExecuteStatementOutput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
203
|
-
ExecuteStatementOutput.add_member(:id, Shapes::ShapeRef.new(shape:
|
220
|
+
ExecuteStatementOutput.add_member(:id, Shapes::ShapeRef.new(shape: UUID, location_name: "Id"))
|
204
221
|
ExecuteStatementOutput.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
222
|
+
ExecuteStatementOutput.add_member(:session_id, Shapes::ShapeRef.new(shape: UUID, location_name: "SessionId"))
|
205
223
|
ExecuteStatementOutput.add_member(:workgroup_name, Shapes::ShapeRef.new(shape: WorkgroupNameString, location_name: "WorkgroupName"))
|
206
224
|
ExecuteStatementOutput.struct_class = Types::ExecuteStatementOutput
|
207
225
|
|
@@ -223,7 +241,7 @@ module Aws::RedshiftDataAPIService
|
|
223
241
|
|
224
242
|
FieldList.member = Shapes::ShapeRef.new(shape: Field)
|
225
243
|
|
226
|
-
GetStatementResultRequest.add_member(:id, Shapes::ShapeRef.new(shape:
|
244
|
+
GetStatementResultRequest.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
227
245
|
GetStatementResultRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
228
246
|
GetStatementResultRequest.struct_class = Types::GetStatementResultRequest
|
229
247
|
|
@@ -236,7 +254,7 @@ module Aws::RedshiftDataAPIService
|
|
236
254
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
|
237
255
|
InternalServerException.struct_class = Types::InternalServerException
|
238
256
|
|
239
|
-
ListDatabasesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape:
|
257
|
+
ListDatabasesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: ClusterIdentifierString, location_name: "ClusterIdentifier"))
|
240
258
|
ListDatabasesRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
|
241
259
|
ListDatabasesRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
242
260
|
ListDatabasesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
@@ -249,7 +267,7 @@ module Aws::RedshiftDataAPIService
|
|
249
267
|
ListDatabasesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
250
268
|
ListDatabasesResponse.struct_class = Types::ListDatabasesResponse
|
251
269
|
|
252
|
-
ListSchemasRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape:
|
270
|
+
ListSchemasRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: ClusterIdentifierString, location_name: "ClusterIdentifier"))
|
253
271
|
ListSchemasRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
|
254
272
|
ListSchemasRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
|
255
273
|
ListSchemasRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
@@ -275,7 +293,7 @@ module Aws::RedshiftDataAPIService
|
|
275
293
|
ListStatementsResponse.add_member(:statements, Shapes::ShapeRef.new(shape: StatementList, required: true, location_name: "Statements"))
|
276
294
|
ListStatementsResponse.struct_class = Types::ListStatementsResponse
|
277
295
|
|
278
|
-
ListTablesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape:
|
296
|
+
ListTablesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: ClusterIdentifierString, location_name: "ClusterIdentifier"))
|
279
297
|
ListTablesRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
|
280
298
|
ListTablesRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
|
281
299
|
ListTablesRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
@@ -291,6 +309,9 @@ module Aws::RedshiftDataAPIService
|
|
291
309
|
ListTablesResponse.add_member(:tables, Shapes::ShapeRef.new(shape: TableList, location_name: "Tables"))
|
292
310
|
ListTablesResponse.struct_class = Types::ListTablesResponse
|
293
311
|
|
312
|
+
QueryTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
313
|
+
QueryTimeoutException.struct_class = Types::QueryTimeoutException
|
314
|
+
|
294
315
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
|
295
316
|
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
|
296
317
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
@@ -308,12 +329,13 @@ module Aws::RedshiftDataAPIService
|
|
308
329
|
SqlRecords.member = Shapes::ShapeRef.new(shape: FieldList)
|
309
330
|
|
310
331
|
StatementData.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
311
|
-
StatementData.add_member(:id, Shapes::ShapeRef.new(shape:
|
332
|
+
StatementData.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
312
333
|
StatementData.add_member(:is_batch_statement, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsBatchStatement"))
|
313
334
|
StatementData.add_member(:query_parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "QueryParameters"))
|
314
335
|
StatementData.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
|
315
336
|
StatementData.add_member(:query_strings, Shapes::ShapeRef.new(shape: StatementStringList, location_name: "QueryStrings"))
|
316
337
|
StatementData.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
338
|
+
StatementData.add_member(:session_id, Shapes::ShapeRef.new(shape: UUID, location_name: "SessionId"))
|
317
339
|
StatementData.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
318
340
|
StatementData.add_member(:status, Shapes::ShapeRef.new(shape: StatusString, location_name: "Status"))
|
319
341
|
StatementData.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
|
@@ -327,7 +349,7 @@ module Aws::RedshiftDataAPIService
|
|
327
349
|
SubStatementData.add_member(:duration, Shapes::ShapeRef.new(shape: Long, location_name: "Duration"))
|
328
350
|
SubStatementData.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "Error"))
|
329
351
|
SubStatementData.add_member(:has_result_set, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasResultSet"))
|
330
|
-
SubStatementData.add_member(:id, Shapes::ShapeRef.new(shape:
|
352
|
+
SubStatementData.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
331
353
|
SubStatementData.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
|
332
354
|
SubStatementData.add_member(:redshift_query_id, Shapes::ShapeRef.new(shape: Long, location_name: "RedshiftQueryId"))
|
333
355
|
SubStatementData.add_member(:result_rows, Shapes::ShapeRef.new(shape: Long, location_name: "ResultRows"))
|
@@ -359,6 +381,7 @@ module Aws::RedshiftDataAPIService
|
|
359
381
|
"endpointPrefix" => "redshift-data",
|
360
382
|
"jsonVersion" => "1.1",
|
361
383
|
"protocol" => "json",
|
384
|
+
"protocols" => ["json"],
|
362
385
|
"serviceFullName" => "Redshift Data API Service",
|
363
386
|
"serviceId" => "Redshift Data",
|
364
387
|
"signatureVersion" => "v4",
|
@@ -374,8 +397,10 @@ module Aws::RedshiftDataAPIService
|
|
374
397
|
o.input = Shapes::ShapeRef.new(shape: BatchExecuteStatementInput)
|
375
398
|
o.output = Shapes::ShapeRef.new(shape: BatchExecuteStatementOutput)
|
376
399
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
400
|
+
o.errors << Shapes::ShapeRef.new(shape: ActiveSessionsExceededException)
|
377
401
|
o.errors << Shapes::ShapeRef.new(shape: ActiveStatementsExceededException)
|
378
402
|
o.errors << Shapes::ShapeRef.new(shape: BatchExecuteStatementException)
|
403
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
379
404
|
end)
|
380
405
|
|
381
406
|
api.add_operation(:cancel_statement, Seahorse::Model::Operation.new.tap do |o|
|
@@ -408,6 +433,7 @@ module Aws::RedshiftDataAPIService
|
|
408
433
|
o.input = Shapes::ShapeRef.new(shape: DescribeTableRequest)
|
409
434
|
o.output = Shapes::ShapeRef.new(shape: DescribeTableResponse)
|
410
435
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
436
|
+
o.errors << Shapes::ShapeRef.new(shape: QueryTimeoutException)
|
411
437
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
412
438
|
o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
|
413
439
|
o[:pager] = Aws::Pager.new(
|
@@ -425,8 +451,10 @@ module Aws::RedshiftDataAPIService
|
|
425
451
|
o.input = Shapes::ShapeRef.new(shape: ExecuteStatementInput)
|
426
452
|
o.output = Shapes::ShapeRef.new(shape: ExecuteStatementOutput)
|
427
453
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
454
|
+
o.errors << Shapes::ShapeRef.new(shape: ActiveSessionsExceededException)
|
428
455
|
o.errors << Shapes::ShapeRef.new(shape: ExecuteStatementException)
|
429
456
|
o.errors << Shapes::ShapeRef.new(shape: ActiveStatementsExceededException)
|
457
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
430
458
|
end)
|
431
459
|
|
432
460
|
api.add_operation(:get_statement_result, Seahorse::Model::Operation.new.tap do |o|
|
@@ -452,6 +480,7 @@ module Aws::RedshiftDataAPIService
|
|
452
480
|
o.input = Shapes::ShapeRef.new(shape: ListDatabasesRequest)
|
453
481
|
o.output = Shapes::ShapeRef.new(shape: ListDatabasesResponse)
|
454
482
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
483
|
+
o.errors << Shapes::ShapeRef.new(shape: QueryTimeoutException)
|
455
484
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
456
485
|
o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
|
457
486
|
o[:pager] = Aws::Pager.new(
|
@@ -469,6 +498,7 @@ module Aws::RedshiftDataAPIService
|
|
469
498
|
o.input = Shapes::ShapeRef.new(shape: ListSchemasRequest)
|
470
499
|
o.output = Shapes::ShapeRef.new(shape: ListSchemasResponse)
|
471
500
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
501
|
+
o.errors << Shapes::ShapeRef.new(shape: QueryTimeoutException)
|
472
502
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
473
503
|
o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
|
474
504
|
o[:pager] = Aws::Pager.new(
|
@@ -502,6 +532,7 @@ module Aws::RedshiftDataAPIService
|
|
502
532
|
o.input = Shapes::ShapeRef.new(shape: ListTablesRequest)
|
503
533
|
o.output = Shapes::ShapeRef.new(shape: ListTablesResponse)
|
504
534
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
535
|
+
o.errors << Shapes::ShapeRef.new(shape: QueryTimeoutException)
|
505
536
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
506
537
|
o.errors << Shapes::ShapeRef.new(shape: DatabaseConnectionException)
|
507
538
|
o[:pager] = Aws::Pager.new(
|
@@ -32,7 +32,7 @@ module Aws::RedshiftDataAPIService
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://redshift-data-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -27,11 +27,13 @@ module Aws::RedshiftDataAPIService
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {ActiveSessionsExceededException}
|
30
31
|
# * {ActiveStatementsExceededException}
|
31
32
|
# * {BatchExecuteStatementException}
|
32
33
|
# * {DatabaseConnectionException}
|
33
34
|
# * {ExecuteStatementException}
|
34
35
|
# * {InternalServerException}
|
36
|
+
# * {QueryTimeoutException}
|
35
37
|
# * {ResourceNotFoundException}
|
36
38
|
# * {ValidationException}
|
37
39
|
#
|
@@ -41,6 +43,21 @@ module Aws::RedshiftDataAPIService
|
|
41
43
|
|
42
44
|
extend Aws::Errors::DynamicErrors
|
43
45
|
|
46
|
+
class ActiveSessionsExceededException < ServiceError
|
47
|
+
|
48
|
+
# @param [Seahorse::Client::RequestContext] context
|
49
|
+
# @param [String] message
|
50
|
+
# @param [Aws::RedshiftDataAPIService::Types::ActiveSessionsExceededException] data
|
51
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
52
|
+
super(context, message, data)
|
53
|
+
end
|
54
|
+
|
55
|
+
# @return [String]
|
56
|
+
def message
|
57
|
+
@message || @data[:message]
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
44
61
|
class ActiveStatementsExceededException < ServiceError
|
45
62
|
|
46
63
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -126,6 +143,21 @@ module Aws::RedshiftDataAPIService
|
|
126
143
|
end
|
127
144
|
end
|
128
145
|
|
146
|
+
class QueryTimeoutException < ServiceError
|
147
|
+
|
148
|
+
# @param [Seahorse::Client::RequestContext] context
|
149
|
+
# @param [String] message
|
150
|
+
# @param [Aws::RedshiftDataAPIService::Types::QueryTimeoutException] data
|
151
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
152
|
+
super(context, message, data)
|
153
|
+
end
|
154
|
+
|
155
|
+
# @return [String]
|
156
|
+
def message
|
157
|
+
@message || @data[:message]
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
129
161
|
class ResourceNotFoundException < ServiceError
|
130
162
|
|
131
163
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -10,6 +10,20 @@
|
|
10
10
|
module Aws::RedshiftDataAPIService
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# The Amazon Redshift Data API operation failed because the maximum
|
14
|
+
# number of active sessions exceeded.
|
15
|
+
#
|
16
|
+
# @!attribute [rw] message
|
17
|
+
# @return [String]
|
18
|
+
#
|
19
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ActiveSessionsExceededException AWS API Documentation
|
20
|
+
#
|
21
|
+
class ActiveSessionsExceededException < Struct.new(
|
22
|
+
:message)
|
23
|
+
SENSITIVE = []
|
24
|
+
include Aws::Structure
|
25
|
+
end
|
26
|
+
|
13
27
|
# The number of active statements exceeds the limit.
|
14
28
|
#
|
15
29
|
# @!attribute [rw] message
|
@@ -73,6 +87,17 @@ module Aws::RedshiftDataAPIService
|
|
73
87
|
# Manager.
|
74
88
|
# @return [String]
|
75
89
|
#
|
90
|
+
# @!attribute [rw] session_id
|
91
|
+
# The session identifier of the query.
|
92
|
+
# @return [String]
|
93
|
+
#
|
94
|
+
# @!attribute [rw] session_keep_alive_seconds
|
95
|
+
# The number of seconds to keep the session alive after the query
|
96
|
+
# finishes. The maximum time a session can keep alive is 24 hours.
|
97
|
+
# After 24 hours, the session is forced closed and the query is
|
98
|
+
# terminated.
|
99
|
+
# @return [Integer]
|
100
|
+
#
|
76
101
|
# @!attribute [rw] sqls
|
77
102
|
# One or more SQL statements to run. The SQL statements are run
|
78
103
|
# as a single transaction. They run serially in the order of the
|
@@ -107,6 +132,8 @@ module Aws::RedshiftDataAPIService
|
|
107
132
|
:database,
|
108
133
|
:db_user,
|
109
134
|
:secret_arn,
|
135
|
+
:session_id,
|
136
|
+
:session_keep_alive_seconds,
|
110
137
|
:sqls,
|
111
138
|
:statement_name,
|
112
139
|
:with_event,
|
@@ -128,6 +155,10 @@ module Aws::RedshiftDataAPIService
|
|
128
155
|
# The name of the database.
|
129
156
|
# @return [String]
|
130
157
|
#
|
158
|
+
# @!attribute [rw] db_groups
|
159
|
+
# A list of colon (:) separated names of database groups.
|
160
|
+
# @return [Array<String>]
|
161
|
+
#
|
131
162
|
# @!attribute [rw] db_user
|
132
163
|
# The database user name.
|
133
164
|
# @return [String]
|
@@ -143,6 +174,10 @@ module Aws::RedshiftDataAPIService
|
|
143
174
|
# The name or ARN of the secret that enables access to the database.
|
144
175
|
# @return [String]
|
145
176
|
#
|
177
|
+
# @!attribute [rw] session_id
|
178
|
+
# The session identifier of the query.
|
179
|
+
# @return [String]
|
180
|
+
#
|
146
181
|
# @!attribute [rw] workgroup_name
|
147
182
|
# The serverless workgroup name or Amazon Resource Name (ARN). This
|
148
183
|
# element is not returned when connecting to a provisioned cluster.
|
@@ -154,9 +189,11 @@ module Aws::RedshiftDataAPIService
|
|
154
189
|
:cluster_identifier,
|
155
190
|
:created_at,
|
156
191
|
:database,
|
192
|
+
:db_groups,
|
157
193
|
:db_user,
|
158
194
|
:id,
|
159
195
|
:secret_arn,
|
196
|
+
:session_id,
|
160
197
|
:workgroup_name)
|
161
198
|
SENSITIVE = []
|
162
199
|
include Aws::Structure
|
@@ -369,6 +406,10 @@ module Aws::RedshiftDataAPIService
|
|
369
406
|
# access to the database.
|
370
407
|
# @return [String]
|
371
408
|
#
|
409
|
+
# @!attribute [rw] session_id
|
410
|
+
# The session identifier of the query.
|
411
|
+
# @return [String]
|
412
|
+
#
|
372
413
|
# @!attribute [rw] status
|
373
414
|
# The status of the SQL statement being described. Status values are
|
374
415
|
# defined as follows:
|
@@ -420,6 +461,7 @@ module Aws::RedshiftDataAPIService
|
|
420
461
|
:result_rows,
|
421
462
|
:result_size,
|
422
463
|
:secret_arn,
|
464
|
+
:session_id,
|
423
465
|
:status,
|
424
466
|
:sub_statements,
|
425
467
|
:updated_at,
|
@@ -590,6 +632,17 @@ module Aws::RedshiftDataAPIService
|
|
590
632
|
# Manager.
|
591
633
|
# @return [String]
|
592
634
|
#
|
635
|
+
# @!attribute [rw] session_id
|
636
|
+
# The session identifier of the query.
|
637
|
+
# @return [String]
|
638
|
+
#
|
639
|
+
# @!attribute [rw] session_keep_alive_seconds
|
640
|
+
# The number of seconds to keep the session alive after the query
|
641
|
+
# finishes. The maximum time a session can keep alive is 24 hours.
|
642
|
+
# After 24 hours, the session is forced closed and the query is
|
643
|
+
# terminated.
|
644
|
+
# @return [Integer]
|
645
|
+
#
|
593
646
|
# @!attribute [rw] sql
|
594
647
|
# The SQL statement text to run.
|
595
648
|
# @return [String]
|
@@ -620,6 +673,8 @@ module Aws::RedshiftDataAPIService
|
|
620
673
|
:db_user,
|
621
674
|
:parameters,
|
622
675
|
:secret_arn,
|
676
|
+
:session_id,
|
677
|
+
:session_keep_alive_seconds,
|
623
678
|
:sql,
|
624
679
|
:statement_name,
|
625
680
|
:with_event,
|
@@ -641,6 +696,10 @@ module Aws::RedshiftDataAPIService
|
|
641
696
|
# The name of the database.
|
642
697
|
# @return [String]
|
643
698
|
#
|
699
|
+
# @!attribute [rw] db_groups
|
700
|
+
# A list of colon (:) separated names of database groups.
|
701
|
+
# @return [Array<String>]
|
702
|
+
#
|
644
703
|
# @!attribute [rw] db_user
|
645
704
|
# The database user name.
|
646
705
|
# @return [String]
|
@@ -655,6 +714,10 @@ module Aws::RedshiftDataAPIService
|
|
655
714
|
# The name or ARN of the secret that enables access to the database.
|
656
715
|
# @return [String]
|
657
716
|
#
|
717
|
+
# @!attribute [rw] session_id
|
718
|
+
# The session identifier of the query.
|
719
|
+
# @return [String]
|
720
|
+
#
|
658
721
|
# @!attribute [rw] workgroup_name
|
659
722
|
# The serverless workgroup name or Amazon Resource Name (ARN). This
|
660
723
|
# element is not returned when connecting to a provisioned cluster.
|
@@ -666,9 +729,11 @@ module Aws::RedshiftDataAPIService
|
|
666
729
|
:cluster_identifier,
|
667
730
|
:created_at,
|
668
731
|
:database,
|
732
|
+
:db_groups,
|
669
733
|
:db_user,
|
670
734
|
:id,
|
671
735
|
:secret_arn,
|
736
|
+
:session_id,
|
672
737
|
:workgroup_name)
|
673
738
|
SENSITIVE = []
|
674
739
|
include Aws::Structure
|
@@ -1175,6 +1240,19 @@ module Aws::RedshiftDataAPIService
|
|
1175
1240
|
include Aws::Structure
|
1176
1241
|
end
|
1177
1242
|
|
1243
|
+
# The Amazon Redshift Data API operation failed due to timeout.
|
1244
|
+
#
|
1245
|
+
# @!attribute [rw] message
|
1246
|
+
# @return [String]
|
1247
|
+
#
|
1248
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/QueryTimeoutException AWS API Documentation
|
1249
|
+
#
|
1250
|
+
class QueryTimeoutException < Struct.new(
|
1251
|
+
:message)
|
1252
|
+
SENSITIVE = []
|
1253
|
+
include Aws::Structure
|
1254
|
+
end
|
1255
|
+
|
1178
1256
|
# The Amazon Redshift Data API operation failed due to a missing
|
1179
1257
|
# resource.
|
1180
1258
|
#
|
@@ -1254,6 +1332,10 @@ module Aws::RedshiftDataAPIService
|
|
1254
1332
|
# access to the database.
|
1255
1333
|
# @return [String]
|
1256
1334
|
#
|
1335
|
+
# @!attribute [rw] session_id
|
1336
|
+
# The session identifier of the query.
|
1337
|
+
# @return [String]
|
1338
|
+
#
|
1257
1339
|
# @!attribute [rw] statement_name
|
1258
1340
|
# The name of the SQL statement.
|
1259
1341
|
# @return [String]
|
@@ -1278,6 +1360,7 @@ module Aws::RedshiftDataAPIService
|
|
1278
1360
|
:query_string,
|
1279
1361
|
:query_strings,
|
1280
1362
|
:secret_arn,
|
1363
|
+
:session_id,
|
1281
1364
|
:statement_name,
|
1282
1365
|
:status,
|
1283
1366
|
:updated_at)
|
data/sig/client.rbs
CHANGED
@@ -79,18 +79,22 @@ module Aws
|
|
79
79
|
def cluster_identifier: () -> ::String
|
80
80
|
def created_at: () -> ::Time
|
81
81
|
def database: () -> ::String
|
82
|
+
def db_groups: () -> ::Array[::String]
|
82
83
|
def db_user: () -> ::String
|
83
84
|
def id: () -> ::String
|
84
85
|
def secret_arn: () -> ::String
|
86
|
+
def session_id: () -> ::String
|
85
87
|
def workgroup_name: () -> ::String
|
86
88
|
end
|
87
89
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RedshiftDataAPIService/Client.html#batch_execute_statement-instance_method
|
88
90
|
def batch_execute_statement: (
|
89
91
|
?client_token: ::String,
|
90
92
|
?cluster_identifier: ::String,
|
91
|
-
database: ::String,
|
93
|
+
?database: ::String,
|
92
94
|
?db_user: ::String,
|
93
95
|
?secret_arn: ::String,
|
96
|
+
?session_id: ::String,
|
97
|
+
?session_keep_alive_seconds: ::Integer,
|
94
98
|
sqls: Array[::String],
|
95
99
|
?statement_name: ::String,
|
96
100
|
?with_event: bool,
|
@@ -124,6 +128,7 @@ module Aws
|
|
124
128
|
def result_rows: () -> ::Integer
|
125
129
|
def result_size: () -> ::Integer
|
126
130
|
def secret_arn: () -> ::String
|
131
|
+
def session_id: () -> ::String
|
127
132
|
def status: () -> ("SUBMITTED" | "PICKED" | "STARTED" | "FINISHED" | "ABORTED" | "FAILED" | "ALL")
|
128
133
|
def sub_statements: () -> ::Array[Types::SubStatementData]
|
129
134
|
def updated_at: () -> ::Time
|
@@ -161,16 +166,18 @@ module Aws
|
|
161
166
|
def cluster_identifier: () -> ::String
|
162
167
|
def created_at: () -> ::Time
|
163
168
|
def database: () -> ::String
|
169
|
+
def db_groups: () -> ::Array[::String]
|
164
170
|
def db_user: () -> ::String
|
165
171
|
def id: () -> ::String
|
166
172
|
def secret_arn: () -> ::String
|
173
|
+
def session_id: () -> ::String
|
167
174
|
def workgroup_name: () -> ::String
|
168
175
|
end
|
169
176
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RedshiftDataAPIService/Client.html#execute_statement-instance_method
|
170
177
|
def execute_statement: (
|
171
178
|
?client_token: ::String,
|
172
179
|
?cluster_identifier: ::String,
|
173
|
-
database: ::String,
|
180
|
+
?database: ::String,
|
174
181
|
?db_user: ::String,
|
175
182
|
?parameters: Array[
|
176
183
|
{
|
@@ -179,6 +186,8 @@ module Aws
|
|
179
186
|
},
|
180
187
|
],
|
181
188
|
?secret_arn: ::String,
|
189
|
+
?session_id: ::String,
|
190
|
+
?session_keep_alive_seconds: ::Integer,
|
182
191
|
sql: ::String,
|
183
192
|
?statement_name: ::String,
|
184
193
|
?with_event: bool,
|
data/sig/errors.rbs
CHANGED
@@ -11,6 +11,9 @@ module Aws
|
|
11
11
|
class ServiceError < ::Aws::Errors::ServiceError
|
12
12
|
end
|
13
13
|
|
14
|
+
class ActiveSessionsExceededException < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
end
|
14
17
|
class ActiveStatementsExceededException < ::Aws::Errors::ServiceError
|
15
18
|
def message: () -> ::String
|
16
19
|
end
|
@@ -28,6 +31,9 @@ module Aws
|
|
28
31
|
class InternalServerException < ::Aws::Errors::ServiceError
|
29
32
|
def message: () -> ::String
|
30
33
|
end
|
34
|
+
class QueryTimeoutException < ::Aws::Errors::ServiceError
|
35
|
+
def message: () -> ::String
|
36
|
+
end
|
31
37
|
class ResourceNotFoundException < ::Aws::Errors::ServiceError
|
32
38
|
def message: () -> ::String
|
33
39
|
def resource_id: () -> ::String
|
data/sig/types.rbs
CHANGED
@@ -8,6 +8,11 @@
|
|
8
8
|
module Aws::RedshiftDataAPIService
|
9
9
|
module Types
|
10
10
|
|
11
|
+
class ActiveSessionsExceededException
|
12
|
+
attr_accessor message: ::String
|
13
|
+
SENSITIVE: []
|
14
|
+
end
|
15
|
+
|
11
16
|
class ActiveStatementsExceededException
|
12
17
|
attr_accessor message: ::String
|
13
18
|
SENSITIVE: []
|
@@ -25,6 +30,8 @@ module Aws::RedshiftDataAPIService
|
|
25
30
|
attr_accessor database: ::String
|
26
31
|
attr_accessor db_user: ::String
|
27
32
|
attr_accessor secret_arn: ::String
|
33
|
+
attr_accessor session_id: ::String
|
34
|
+
attr_accessor session_keep_alive_seconds: ::Integer
|
28
35
|
attr_accessor sqls: ::Array[::String]
|
29
36
|
attr_accessor statement_name: ::String
|
30
37
|
attr_accessor with_event: bool
|
@@ -36,9 +43,11 @@ module Aws::RedshiftDataAPIService
|
|
36
43
|
attr_accessor cluster_identifier: ::String
|
37
44
|
attr_accessor created_at: ::Time
|
38
45
|
attr_accessor database: ::String
|
46
|
+
attr_accessor db_groups: ::Array[::String]
|
39
47
|
attr_accessor db_user: ::String
|
40
48
|
attr_accessor id: ::String
|
41
49
|
attr_accessor secret_arn: ::String
|
50
|
+
attr_accessor session_id: ::String
|
42
51
|
attr_accessor workgroup_name: ::String
|
43
52
|
SENSITIVE: []
|
44
53
|
end
|
@@ -96,6 +105,7 @@ module Aws::RedshiftDataAPIService
|
|
96
105
|
attr_accessor result_rows: ::Integer
|
97
106
|
attr_accessor result_size: ::Integer
|
98
107
|
attr_accessor secret_arn: ::String
|
108
|
+
attr_accessor session_id: ::String
|
99
109
|
attr_accessor status: ("SUBMITTED" | "PICKED" | "STARTED" | "FINISHED" | "ABORTED" | "FAILED" | "ALL")
|
100
110
|
attr_accessor sub_statements: ::Array[Types::SubStatementData]
|
101
111
|
attr_accessor updated_at: ::Time
|
@@ -137,6 +147,8 @@ module Aws::RedshiftDataAPIService
|
|
137
147
|
attr_accessor db_user: ::String
|
138
148
|
attr_accessor parameters: ::Array[Types::SqlParameter]
|
139
149
|
attr_accessor secret_arn: ::String
|
150
|
+
attr_accessor session_id: ::String
|
151
|
+
attr_accessor session_keep_alive_seconds: ::Integer
|
140
152
|
attr_accessor sql: ::String
|
141
153
|
attr_accessor statement_name: ::String
|
142
154
|
attr_accessor with_event: bool
|
@@ -148,9 +160,11 @@ module Aws::RedshiftDataAPIService
|
|
148
160
|
attr_accessor cluster_identifier: ::String
|
149
161
|
attr_accessor created_at: ::Time
|
150
162
|
attr_accessor database: ::String
|
163
|
+
attr_accessor db_groups: ::Array[::String]
|
151
164
|
attr_accessor db_user: ::String
|
152
165
|
attr_accessor id: ::String
|
153
166
|
attr_accessor secret_arn: ::String
|
167
|
+
attr_accessor session_id: ::String
|
154
168
|
attr_accessor workgroup_name: ::String
|
155
169
|
SENSITIVE: []
|
156
170
|
end
|
@@ -271,6 +285,11 @@ module Aws::RedshiftDataAPIService
|
|
271
285
|
SENSITIVE: []
|
272
286
|
end
|
273
287
|
|
288
|
+
class QueryTimeoutException
|
289
|
+
attr_accessor message: ::String
|
290
|
+
SENSITIVE: []
|
291
|
+
end
|
292
|
+
|
274
293
|
class ResourceNotFoundException
|
275
294
|
attr_accessor message: ::String
|
276
295
|
attr_accessor resource_id: ::String
|
@@ -291,6 +310,7 @@ module Aws::RedshiftDataAPIService
|
|
291
310
|
attr_accessor query_string: ::String
|
292
311
|
attr_accessor query_strings: ::Array[::String]
|
293
312
|
attr_accessor secret_arn: ::String
|
313
|
+
attr_accessor session_id: ::String
|
294
314
|
attr_accessor statement_name: ::String
|
295
315
|
attr_accessor status: ("SUBMITTED" | "PICKED" | "STARTED" | "FINISHED" | "ABORTED" | "FAILED" | "ALL")
|
296
316
|
attr_accessor updated_at: ::Time
|
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.42.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: 2024-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|