aws-sdk-redshiftdataapiservice 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-redshiftdataapiservice.rb +1 -1
- data/lib/aws-sdk-redshiftdataapiservice/client.rb +13 -4
- data/lib/aws-sdk-redshiftdataapiservice/client_api.rb +7 -0
- data/lib/aws-sdk-redshiftdataapiservice/errors.rb +16 -0
- data/lib/aws-sdk-redshiftdataapiservice/types.rb +29 -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: c22083a34c3aeba3a701a5c10920614db3517c6334b6cd5e209fa621b753ca8e
|
4
|
+
data.tar.gz: 7a11b3333a8ea602ef1685f8180aafacedbdaa46fb392e52290b007909bcfaa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0192f5a32ac9a503fce83b039ece2a8a341775de85d5e863e291d971adea3e4c32604d4470dfa2ff8511e0919a09a2756fb8188b38123223560a945cc82d9b8b'
|
7
|
+
data.tar.gz: 9caf12dd21ae7c6d93a056e0f890bcf953d3d694be5bf49b0f51505d5768f6ae5fa5f88aa27d60b75cf27a4b40ff46b09522fe9f84b049ac8cc08c88dd2da399
|
@@ -387,6 +387,7 @@ module Aws::RedshiftDataAPIService
|
|
387
387
|
# * {Types::DescribeStatementResponse#db_user #db_user} => String
|
388
388
|
# * {Types::DescribeStatementResponse#duration #duration} => Integer
|
389
389
|
# * {Types::DescribeStatementResponse#error #error} => String
|
390
|
+
# * {Types::DescribeStatementResponse#has_result_set #has_result_set} => Boolean
|
390
391
|
# * {Types::DescribeStatementResponse#id #id} => String
|
391
392
|
# * {Types::DescribeStatementResponse#query_string #query_string} => String
|
392
393
|
# * {Types::DescribeStatementResponse#redshift_pid #redshift_pid} => Integer
|
@@ -411,6 +412,7 @@ module Aws::RedshiftDataAPIService
|
|
411
412
|
# resp.db_user #=> String
|
412
413
|
# resp.duration #=> Integer
|
413
414
|
# resp.error #=> String
|
415
|
+
# resp.has_result_set #=> Boolean
|
414
416
|
# resp.id #=> String
|
415
417
|
# resp.query_string #=> String
|
416
418
|
# resp.redshift_pid #=> Integer
|
@@ -418,7 +420,7 @@ module Aws::RedshiftDataAPIService
|
|
418
420
|
# resp.result_rows #=> Integer
|
419
421
|
# resp.result_size #=> Integer
|
420
422
|
# resp.secret_arn #=> String
|
421
|
-
# resp.status #=> String, one of "
|
423
|
+
# resp.status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
|
422
424
|
# resp.updated_at #=> Time
|
423
425
|
#
|
424
426
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DescribeStatement AWS API Documentation
|
@@ -857,6 +859,12 @@ module Aws::RedshiftDataAPIService
|
|
857
859
|
# command. If the NextToken field is empty, all response records have
|
858
860
|
# been retrieved for the request.
|
859
861
|
#
|
862
|
+
# @option params [Boolean] :role_level
|
863
|
+
# A value that filters which statements to return in the response. If
|
864
|
+
# true, all statements run by the caller's IAM role are returned. If
|
865
|
+
# false, only statements run by the caller's IAM role in the current
|
866
|
+
# IAM session are returned. The default is true.
|
867
|
+
#
|
860
868
|
# @option params [String] :statement_name
|
861
869
|
# The name of the SQL statement specified as input to `ExecuteStatement`
|
862
870
|
# to identify the query. You can list multiple statements by providing a
|
@@ -896,8 +904,9 @@ module Aws::RedshiftDataAPIService
|
|
896
904
|
# resp = client.list_statements({
|
897
905
|
# max_results: 1,
|
898
906
|
# next_token: "String",
|
907
|
+
# role_level: false,
|
899
908
|
# statement_name: "StatementNameString",
|
900
|
-
# status: "
|
909
|
+
# status: "SUBMITTED", # accepts SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED, ALL
|
901
910
|
# })
|
902
911
|
#
|
903
912
|
# @example Response structure
|
@@ -909,7 +918,7 @@ module Aws::RedshiftDataAPIService
|
|
909
918
|
# resp.statements[0].query_string #=> String
|
910
919
|
# resp.statements[0].secret_arn #=> String
|
911
920
|
# resp.statements[0].statement_name #=> String
|
912
|
-
# resp.statements[0].status #=> String, one of "
|
921
|
+
# resp.statements[0].status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
|
913
922
|
# resp.statements[0].updated_at #=> Time
|
914
923
|
#
|
915
924
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ListStatements AWS API Documentation
|
@@ -1034,7 +1043,7 @@ module Aws::RedshiftDataAPIService
|
|
1034
1043
|
params: params,
|
1035
1044
|
config: config)
|
1036
1045
|
context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
|
1037
|
-
context[:gem_version] = '1.
|
1046
|
+
context[:gem_version] = '1.4.0'
|
1038
1047
|
Seahorse::Client::Request.new(handlers, context)
|
1039
1048
|
end
|
1040
1049
|
|
@@ -13,6 +13,7 @@ module Aws::RedshiftDataAPIService
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
ActiveStatementsExceededException = Shapes::StructureShape.new(name: 'ActiveStatementsExceededException')
|
16
17
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
17
18
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
18
19
|
BoxedBoolean = Shapes::BooleanShape.new(name: 'BoxedBoolean')
|
@@ -66,6 +67,9 @@ module Aws::RedshiftDataAPIService
|
|
66
67
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
67
68
|
bool = Shapes::BooleanShape.new(name: 'bool')
|
68
69
|
|
70
|
+
ActiveStatementsExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
71
|
+
ActiveStatementsExceededException.struct_class = Types::ActiveStatementsExceededException
|
72
|
+
|
69
73
|
CancelStatementRequest.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
70
74
|
CancelStatementRequest.struct_class = Types::CancelStatementRequest
|
71
75
|
|
@@ -102,6 +106,7 @@ module Aws::RedshiftDataAPIService
|
|
102
106
|
DescribeStatementResponse.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
103
107
|
DescribeStatementResponse.add_member(:duration, Shapes::ShapeRef.new(shape: Long, location_name: "Duration"))
|
104
108
|
DescribeStatementResponse.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "Error"))
|
109
|
+
DescribeStatementResponse.add_member(:has_result_set, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasResultSet"))
|
105
110
|
DescribeStatementResponse.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
106
111
|
DescribeStatementResponse.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
|
107
112
|
DescribeStatementResponse.add_member(:redshift_pid, Shapes::ShapeRef.new(shape: Long, location_name: "RedshiftPid"))
|
@@ -199,6 +204,7 @@ module Aws::RedshiftDataAPIService
|
|
199
204
|
|
200
205
|
ListStatementsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListStatementsLimit, location_name: "MaxResults"))
|
201
206
|
ListStatementsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
207
|
+
ListStatementsRequest.add_member(:role_level, Shapes::ShapeRef.new(shape: Boolean, location_name: "RoleLevel"))
|
202
208
|
ListStatementsRequest.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
203
209
|
ListStatementsRequest.add_member(:status, Shapes::ShapeRef.new(shape: StatusString, location_name: "Status"))
|
204
210
|
ListStatementsRequest.struct_class = Types::ListStatementsRequest
|
@@ -314,6 +320,7 @@ module Aws::RedshiftDataAPIService
|
|
314
320
|
o.output = Shapes::ShapeRef.new(shape: ExecuteStatementOutput)
|
315
321
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
316
322
|
o.errors << Shapes::ShapeRef.new(shape: ExecuteStatementException)
|
323
|
+
o.errors << Shapes::ShapeRef.new(shape: ActiveStatementsExceededException)
|
317
324
|
end)
|
318
325
|
|
319
326
|
api.add_operation(:get_statement_result, Seahorse::Model::Operation.new.tap do |o|
|
@@ -27,6 +27,7 @@ module Aws::RedshiftDataAPIService
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {ActiveStatementsExceededException}
|
30
31
|
# * {ExecuteStatementException}
|
31
32
|
# * {InternalServerException}
|
32
33
|
# * {ResourceNotFoundException}
|
@@ -38,6 +39,21 @@ module Aws::RedshiftDataAPIService
|
|
38
39
|
|
39
40
|
extend Aws::Errors::DynamicErrors
|
40
41
|
|
42
|
+
class ActiveStatementsExceededException < ServiceError
|
43
|
+
|
44
|
+
# @param [Seahorse::Client::RequestContext] context
|
45
|
+
# @param [String] message
|
46
|
+
# @param [Aws::RedshiftDataAPIService::Types::ActiveStatementsExceededException] data
|
47
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
48
|
+
super(context, message, data)
|
49
|
+
end
|
50
|
+
|
51
|
+
# @return [String]
|
52
|
+
def message
|
53
|
+
@message || @data[:message]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
41
57
|
class ExecuteStatementException < ServiceError
|
42
58
|
|
43
59
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -10,6 +10,19 @@
|
|
10
10
|
module Aws::RedshiftDataAPIService
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# The number of active statements exceeds the limit.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ActiveStatementsExceededException AWS API Documentation
|
19
|
+
#
|
20
|
+
class ActiveStatementsExceededException < Struct.new(
|
21
|
+
:message)
|
22
|
+
SENSITIVE = []
|
23
|
+
include Aws::Structure
|
24
|
+
end
|
25
|
+
|
13
26
|
# @note When making an API call, you may pass CancelStatementRequest
|
14
27
|
# data as a hash:
|
15
28
|
#
|
@@ -167,6 +180,11 @@ module Aws::RedshiftDataAPIService
|
|
167
180
|
# an error while running.
|
168
181
|
# @return [String]
|
169
182
|
#
|
183
|
+
# @!attribute [rw] has_result_set
|
184
|
+
# A value that indicates whether the statement has a result set. The
|
185
|
+
# result set can be empty.
|
186
|
+
# @return [Boolean]
|
187
|
+
#
|
170
188
|
# @!attribute [rw] id
|
171
189
|
# The identifier of the SQL statement described. This value is a
|
172
190
|
# universally unique identifier (UUID) generated by Amazon Redshift
|
@@ -237,6 +255,7 @@ module Aws::RedshiftDataAPIService
|
|
237
255
|
:db_user,
|
238
256
|
:duration,
|
239
257
|
:error,
|
258
|
+
:has_result_set,
|
240
259
|
:id,
|
241
260
|
:query_string,
|
242
261
|
:redshift_pid,
|
@@ -779,8 +798,9 @@ module Aws::RedshiftDataAPIService
|
|
779
798
|
# {
|
780
799
|
# max_results: 1,
|
781
800
|
# next_token: "String",
|
801
|
+
# role_level: false,
|
782
802
|
# statement_name: "StatementNameString",
|
783
|
-
# status: "
|
803
|
+
# status: "SUBMITTED", # accepts SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED, ALL
|
784
804
|
# }
|
785
805
|
#
|
786
806
|
# @!attribute [rw] max_results
|
@@ -798,6 +818,13 @@ module Aws::RedshiftDataAPIService
|
|
798
818
|
# records have been retrieved for the request.
|
799
819
|
# @return [String]
|
800
820
|
#
|
821
|
+
# @!attribute [rw] role_level
|
822
|
+
# A value that filters which statements to return in the response. If
|
823
|
+
# true, all statements run by the caller's IAM role are returned. If
|
824
|
+
# false, only statements run by the caller's IAM role in the current
|
825
|
+
# IAM session are returned. The default is true.
|
826
|
+
# @return [Boolean]
|
827
|
+
#
|
801
828
|
# @!attribute [rw] statement_name
|
802
829
|
# The name of the SQL statement specified as input to
|
803
830
|
# `ExecuteStatement` to identify the query. You can list multiple
|
@@ -833,6 +860,7 @@ module Aws::RedshiftDataAPIService
|
|
833
860
|
class ListStatementsRequest < Struct.new(
|
834
861
|
:max_results,
|
835
862
|
:next_token,
|
863
|
+
:role_level,
|
836
864
|
:statement_name,
|
837
865
|
:status)
|
838
866
|
SENSITIVE = []
|
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.4.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-02-
|
11
|
+
date: 2021-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|