aws-sdk-qldb 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-qldb.rb +47 -0
- data/lib/aws-sdk-qldb/client.rb +1013 -0
- data/lib/aws-sdk-qldb/client_api.rb +456 -0
- data/lib/aws-sdk-qldb/customizations.rb +0 -0
- data/lib/aws-sdk-qldb/errors.rb +160 -0
- data/lib/aws-sdk-qldb/resource.rb +23 -0
- data/lib/aws-sdk-qldb/types.rb +1149 -0
- metadata +88 -0
@@ -0,0 +1,456 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::QLDB
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
Arn = Shapes::StringShape.new(name: 'Arn')
|
15
|
+
CreateLedgerRequest = Shapes::StructureShape.new(name: 'CreateLedgerRequest')
|
16
|
+
CreateLedgerResponse = Shapes::StructureShape.new(name: 'CreateLedgerResponse')
|
17
|
+
DeleteLedgerRequest = Shapes::StructureShape.new(name: 'DeleteLedgerRequest')
|
18
|
+
DeletionProtection = Shapes::BooleanShape.new(name: 'DeletionProtection')
|
19
|
+
DescribeJournalS3ExportRequest = Shapes::StructureShape.new(name: 'DescribeJournalS3ExportRequest')
|
20
|
+
DescribeJournalS3ExportResponse = Shapes::StructureShape.new(name: 'DescribeJournalS3ExportResponse')
|
21
|
+
DescribeLedgerRequest = Shapes::StructureShape.new(name: 'DescribeLedgerRequest')
|
22
|
+
DescribeLedgerResponse = Shapes::StructureShape.new(name: 'DescribeLedgerResponse')
|
23
|
+
Digest = Shapes::BlobShape.new(name: 'Digest')
|
24
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
25
|
+
ExportJournalToS3Request = Shapes::StructureShape.new(name: 'ExportJournalToS3Request')
|
26
|
+
ExportJournalToS3Response = Shapes::StructureShape.new(name: 'ExportJournalToS3Response')
|
27
|
+
ExportStatus = Shapes::StringShape.new(name: 'ExportStatus')
|
28
|
+
GetBlockRequest = Shapes::StructureShape.new(name: 'GetBlockRequest')
|
29
|
+
GetBlockResponse = Shapes::StructureShape.new(name: 'GetBlockResponse')
|
30
|
+
GetDigestRequest = Shapes::StructureShape.new(name: 'GetDigestRequest')
|
31
|
+
GetDigestResponse = Shapes::StructureShape.new(name: 'GetDigestResponse')
|
32
|
+
GetRevisionRequest = Shapes::StructureShape.new(name: 'GetRevisionRequest')
|
33
|
+
GetRevisionResponse = Shapes::StructureShape.new(name: 'GetRevisionResponse')
|
34
|
+
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
35
|
+
IonText = Shapes::StringShape.new(name: 'IonText')
|
36
|
+
JournalS3ExportDescription = Shapes::StructureShape.new(name: 'JournalS3ExportDescription')
|
37
|
+
JournalS3ExportList = Shapes::ListShape.new(name: 'JournalS3ExportList')
|
38
|
+
LedgerList = Shapes::ListShape.new(name: 'LedgerList')
|
39
|
+
LedgerName = Shapes::StringShape.new(name: 'LedgerName')
|
40
|
+
LedgerState = Shapes::StringShape.new(name: 'LedgerState')
|
41
|
+
LedgerSummary = Shapes::StructureShape.new(name: 'LedgerSummary')
|
42
|
+
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
43
|
+
ListJournalS3ExportsForLedgerRequest = Shapes::StructureShape.new(name: 'ListJournalS3ExportsForLedgerRequest')
|
44
|
+
ListJournalS3ExportsForLedgerResponse = Shapes::StructureShape.new(name: 'ListJournalS3ExportsForLedgerResponse')
|
45
|
+
ListJournalS3ExportsRequest = Shapes::StructureShape.new(name: 'ListJournalS3ExportsRequest')
|
46
|
+
ListJournalS3ExportsResponse = Shapes::StructureShape.new(name: 'ListJournalS3ExportsResponse')
|
47
|
+
ListLedgersRequest = Shapes::StructureShape.new(name: 'ListLedgersRequest')
|
48
|
+
ListLedgersResponse = Shapes::StructureShape.new(name: 'ListLedgersResponse')
|
49
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
50
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
51
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
52
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
53
|
+
ParameterName = Shapes::StringShape.new(name: 'ParameterName')
|
54
|
+
PermissionsMode = Shapes::StringShape.new(name: 'PermissionsMode')
|
55
|
+
ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
|
56
|
+
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
57
|
+
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
58
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
59
|
+
ResourcePreconditionNotMetException = Shapes::StructureShape.new(name: 'ResourcePreconditionNotMetException')
|
60
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
61
|
+
S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
|
62
|
+
S3EncryptionConfiguration = Shapes::StructureShape.new(name: 'S3EncryptionConfiguration')
|
63
|
+
S3ExportConfiguration = Shapes::StructureShape.new(name: 'S3ExportConfiguration')
|
64
|
+
S3ObjectEncryptionType = Shapes::StringShape.new(name: 'S3ObjectEncryptionType')
|
65
|
+
S3Prefix = Shapes::StringShape.new(name: 'S3Prefix')
|
66
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
67
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
68
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
69
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
70
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
71
|
+
Tags = Shapes::MapShape.new(name: 'Tags')
|
72
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
73
|
+
UniqueId = Shapes::StringShape.new(name: 'UniqueId')
|
74
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
75
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
76
|
+
UpdateLedgerRequest = Shapes::StructureShape.new(name: 'UpdateLedgerRequest')
|
77
|
+
UpdateLedgerResponse = Shapes::StructureShape.new(name: 'UpdateLedgerResponse')
|
78
|
+
ValueHolder = Shapes::StructureShape.new(name: 'ValueHolder')
|
79
|
+
|
80
|
+
CreateLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location_name: "Name"))
|
81
|
+
CreateLedgerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
82
|
+
CreateLedgerRequest.add_member(:permissions_mode, Shapes::ShapeRef.new(shape: PermissionsMode, required: true, location_name: "PermissionsMode"))
|
83
|
+
CreateLedgerRequest.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "DeletionProtection"))
|
84
|
+
CreateLedgerRequest.struct_class = Types::CreateLedgerRequest
|
85
|
+
|
86
|
+
CreateLedgerResponse.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, location_name: "Name"))
|
87
|
+
CreateLedgerResponse.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
|
88
|
+
CreateLedgerResponse.add_member(:state, Shapes::ShapeRef.new(shape: LedgerState, location_name: "State"))
|
89
|
+
CreateLedgerResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDateTime"))
|
90
|
+
CreateLedgerResponse.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "DeletionProtection"))
|
91
|
+
CreateLedgerResponse.struct_class = Types::CreateLedgerResponse
|
92
|
+
|
93
|
+
DeleteLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
94
|
+
DeleteLedgerRequest.struct_class = Types::DeleteLedgerRequest
|
95
|
+
|
96
|
+
DescribeJournalS3ExportRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
97
|
+
DescribeJournalS3ExportRequest.add_member(:export_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location: "uri", location_name: "exportId"))
|
98
|
+
DescribeJournalS3ExportRequest.struct_class = Types::DescribeJournalS3ExportRequest
|
99
|
+
|
100
|
+
DescribeJournalS3ExportResponse.add_member(:export_description, Shapes::ShapeRef.new(shape: JournalS3ExportDescription, required: true, location_name: "ExportDescription"))
|
101
|
+
DescribeJournalS3ExportResponse.struct_class = Types::DescribeJournalS3ExportResponse
|
102
|
+
|
103
|
+
DescribeLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
104
|
+
DescribeLedgerRequest.struct_class = Types::DescribeLedgerRequest
|
105
|
+
|
106
|
+
DescribeLedgerResponse.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, location_name: "Name"))
|
107
|
+
DescribeLedgerResponse.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
|
108
|
+
DescribeLedgerResponse.add_member(:state, Shapes::ShapeRef.new(shape: LedgerState, location_name: "State"))
|
109
|
+
DescribeLedgerResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDateTime"))
|
110
|
+
DescribeLedgerResponse.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "DeletionProtection"))
|
111
|
+
DescribeLedgerResponse.struct_class = Types::DescribeLedgerResponse
|
112
|
+
|
113
|
+
ExportJournalToS3Request.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
114
|
+
ExportJournalToS3Request.add_member(:inclusive_start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "InclusiveStartTime"))
|
115
|
+
ExportJournalToS3Request.add_member(:exclusive_end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ExclusiveEndTime"))
|
116
|
+
ExportJournalToS3Request.add_member(:s3_export_configuration, Shapes::ShapeRef.new(shape: S3ExportConfiguration, required: true, location_name: "S3ExportConfiguration"))
|
117
|
+
ExportJournalToS3Request.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoleArn"))
|
118
|
+
ExportJournalToS3Request.struct_class = Types::ExportJournalToS3Request
|
119
|
+
|
120
|
+
ExportJournalToS3Response.add_member(:export_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location_name: "ExportId"))
|
121
|
+
ExportJournalToS3Response.struct_class = Types::ExportJournalToS3Response
|
122
|
+
|
123
|
+
GetBlockRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
124
|
+
GetBlockRequest.add_member(:block_address, Shapes::ShapeRef.new(shape: ValueHolder, required: true, location_name: "BlockAddress"))
|
125
|
+
GetBlockRequest.add_member(:digest_tip_address, Shapes::ShapeRef.new(shape: ValueHolder, location_name: "DigestTipAddress"))
|
126
|
+
GetBlockRequest.struct_class = Types::GetBlockRequest
|
127
|
+
|
128
|
+
GetBlockResponse.add_member(:block, Shapes::ShapeRef.new(shape: ValueHolder, required: true, location_name: "Block"))
|
129
|
+
GetBlockResponse.add_member(:proof, Shapes::ShapeRef.new(shape: ValueHolder, location_name: "Proof"))
|
130
|
+
GetBlockResponse.struct_class = Types::GetBlockResponse
|
131
|
+
|
132
|
+
GetDigestRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
133
|
+
GetDigestRequest.struct_class = Types::GetDigestRequest
|
134
|
+
|
135
|
+
GetDigestResponse.add_member(:digest, Shapes::ShapeRef.new(shape: Digest, required: true, location_name: "Digest"))
|
136
|
+
GetDigestResponse.add_member(:digest_tip_address, Shapes::ShapeRef.new(shape: ValueHolder, required: true, location_name: "DigestTipAddress"))
|
137
|
+
GetDigestResponse.struct_class = Types::GetDigestResponse
|
138
|
+
|
139
|
+
GetRevisionRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
140
|
+
GetRevisionRequest.add_member(:block_address, Shapes::ShapeRef.new(shape: ValueHolder, required: true, location_name: "BlockAddress"))
|
141
|
+
GetRevisionRequest.add_member(:document_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location_name: "DocumentId"))
|
142
|
+
GetRevisionRequest.add_member(:digest_tip_address, Shapes::ShapeRef.new(shape: ValueHolder, location_name: "DigestTipAddress"))
|
143
|
+
GetRevisionRequest.struct_class = Types::GetRevisionRequest
|
144
|
+
|
145
|
+
GetRevisionResponse.add_member(:proof, Shapes::ShapeRef.new(shape: ValueHolder, location_name: "Proof"))
|
146
|
+
GetRevisionResponse.add_member(:revision, Shapes::ShapeRef.new(shape: ValueHolder, required: true, location_name: "Revision"))
|
147
|
+
GetRevisionResponse.struct_class = Types::GetRevisionResponse
|
148
|
+
|
149
|
+
InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
150
|
+
InvalidParameterException.add_member(:parameter_name, Shapes::ShapeRef.new(shape: ParameterName, location_name: "ParameterName"))
|
151
|
+
InvalidParameterException.struct_class = Types::InvalidParameterException
|
152
|
+
|
153
|
+
JournalS3ExportDescription.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location_name: "LedgerName"))
|
154
|
+
JournalS3ExportDescription.add_member(:export_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location_name: "ExportId"))
|
155
|
+
JournalS3ExportDescription.add_member(:export_creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ExportCreationTime"))
|
156
|
+
JournalS3ExportDescription.add_member(:status, Shapes::ShapeRef.new(shape: ExportStatus, required: true, location_name: "Status"))
|
157
|
+
JournalS3ExportDescription.add_member(:inclusive_start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "InclusiveStartTime"))
|
158
|
+
JournalS3ExportDescription.add_member(:exclusive_end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ExclusiveEndTime"))
|
159
|
+
JournalS3ExportDescription.add_member(:s3_export_configuration, Shapes::ShapeRef.new(shape: S3ExportConfiguration, required: true, location_name: "S3ExportConfiguration"))
|
160
|
+
JournalS3ExportDescription.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoleArn"))
|
161
|
+
JournalS3ExportDescription.struct_class = Types::JournalS3ExportDescription
|
162
|
+
|
163
|
+
JournalS3ExportList.member = Shapes::ShapeRef.new(shape: JournalS3ExportDescription)
|
164
|
+
|
165
|
+
LedgerList.member = Shapes::ShapeRef.new(shape: LedgerSummary)
|
166
|
+
|
167
|
+
LedgerSummary.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, location_name: "Name"))
|
168
|
+
LedgerSummary.add_member(:state, Shapes::ShapeRef.new(shape: LedgerState, location_name: "State"))
|
169
|
+
LedgerSummary.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDateTime"))
|
170
|
+
LedgerSummary.struct_class = Types::LedgerSummary
|
171
|
+
|
172
|
+
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
173
|
+
LimitExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
174
|
+
LimitExceededException.struct_class = Types::LimitExceededException
|
175
|
+
|
176
|
+
ListJournalS3ExportsForLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
177
|
+
ListJournalS3ExportsForLedgerRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results"))
|
178
|
+
ListJournalS3ExportsForLedgerRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
179
|
+
ListJournalS3ExportsForLedgerRequest.struct_class = Types::ListJournalS3ExportsForLedgerRequest
|
180
|
+
|
181
|
+
ListJournalS3ExportsForLedgerResponse.add_member(:journal_s3_exports, Shapes::ShapeRef.new(shape: JournalS3ExportList, location_name: "JournalS3Exports"))
|
182
|
+
ListJournalS3ExportsForLedgerResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
183
|
+
ListJournalS3ExportsForLedgerResponse.struct_class = Types::ListJournalS3ExportsForLedgerResponse
|
184
|
+
|
185
|
+
ListJournalS3ExportsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results"))
|
186
|
+
ListJournalS3ExportsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
187
|
+
ListJournalS3ExportsRequest.struct_class = Types::ListJournalS3ExportsRequest
|
188
|
+
|
189
|
+
ListJournalS3ExportsResponse.add_member(:journal_s3_exports, Shapes::ShapeRef.new(shape: JournalS3ExportList, location_name: "JournalS3Exports"))
|
190
|
+
ListJournalS3ExportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
191
|
+
ListJournalS3ExportsResponse.struct_class = Types::ListJournalS3ExportsResponse
|
192
|
+
|
193
|
+
ListLedgersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results"))
|
194
|
+
ListLedgersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
195
|
+
ListLedgersRequest.struct_class = Types::ListLedgersRequest
|
196
|
+
|
197
|
+
ListLedgersResponse.add_member(:ledgers, Shapes::ShapeRef.new(shape: LedgerList, location_name: "Ledgers"))
|
198
|
+
ListLedgersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
199
|
+
ListLedgersResponse.struct_class = Types::ListLedgersResponse
|
200
|
+
|
201
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
202
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
203
|
+
|
204
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
205
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
206
|
+
|
207
|
+
ResourceAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
208
|
+
ResourceAlreadyExistsException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
209
|
+
ResourceAlreadyExistsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ResourceName"))
|
210
|
+
ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
|
211
|
+
|
212
|
+
ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
213
|
+
ResourceInUseException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
214
|
+
ResourceInUseException.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ResourceName"))
|
215
|
+
ResourceInUseException.struct_class = Types::ResourceInUseException
|
216
|
+
|
217
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
218
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
219
|
+
ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ResourceName"))
|
220
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
221
|
+
|
222
|
+
ResourcePreconditionNotMetException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
223
|
+
ResourcePreconditionNotMetException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
224
|
+
ResourcePreconditionNotMetException.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ResourceName"))
|
225
|
+
ResourcePreconditionNotMetException.struct_class = Types::ResourcePreconditionNotMetException
|
226
|
+
|
227
|
+
S3EncryptionConfiguration.add_member(:object_encryption_type, Shapes::ShapeRef.new(shape: S3ObjectEncryptionType, required: true, location_name: "ObjectEncryptionType"))
|
228
|
+
S3EncryptionConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "KmsKeyArn"))
|
229
|
+
S3EncryptionConfiguration.struct_class = Types::S3EncryptionConfiguration
|
230
|
+
|
231
|
+
S3ExportConfiguration.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, required: true, location_name: "Bucket"))
|
232
|
+
S3ExportConfiguration.add_member(:prefix, Shapes::ShapeRef.new(shape: S3Prefix, required: true, location_name: "Prefix"))
|
233
|
+
S3ExportConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: S3EncryptionConfiguration, required: true, location_name: "EncryptionConfiguration"))
|
234
|
+
S3ExportConfiguration.struct_class = Types::S3ExportConfiguration
|
235
|
+
|
236
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
237
|
+
|
238
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
239
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
|
240
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
241
|
+
|
242
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
243
|
+
|
244
|
+
Tags.key = Shapes::ShapeRef.new(shape: TagKey)
|
245
|
+
Tags.value = Shapes::ShapeRef.new(shape: TagValue)
|
246
|
+
|
247
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
248
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
|
249
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
250
|
+
|
251
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
252
|
+
|
253
|
+
UpdateLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
|
254
|
+
UpdateLedgerRequest.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "DeletionProtection"))
|
255
|
+
UpdateLedgerRequest.struct_class = Types::UpdateLedgerRequest
|
256
|
+
|
257
|
+
UpdateLedgerResponse.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, location_name: "Name"))
|
258
|
+
UpdateLedgerResponse.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
|
259
|
+
UpdateLedgerResponse.add_member(:state, Shapes::ShapeRef.new(shape: LedgerState, location_name: "State"))
|
260
|
+
UpdateLedgerResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDateTime"))
|
261
|
+
UpdateLedgerResponse.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "DeletionProtection"))
|
262
|
+
UpdateLedgerResponse.struct_class = Types::UpdateLedgerResponse
|
263
|
+
|
264
|
+
ValueHolder.add_member(:ion_text, Shapes::ShapeRef.new(shape: IonText, location_name: "IonText"))
|
265
|
+
ValueHolder.struct_class = Types::ValueHolder
|
266
|
+
|
267
|
+
|
268
|
+
# @api private
|
269
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
270
|
+
|
271
|
+
api.version = "2019-01-02"
|
272
|
+
|
273
|
+
api.metadata = {
|
274
|
+
"apiVersion" => "2019-01-02",
|
275
|
+
"endpointPrefix" => "qldb",
|
276
|
+
"jsonVersion" => "1.0",
|
277
|
+
"protocol" => "rest-json",
|
278
|
+
"serviceAbbreviation" => "QLDB",
|
279
|
+
"serviceFullName" => "Amazon QLDB",
|
280
|
+
"serviceId" => "QLDB",
|
281
|
+
"signatureVersion" => "v4",
|
282
|
+
"signingName" => "qldb",
|
283
|
+
"uid" => "qldb-2019-01-02",
|
284
|
+
}
|
285
|
+
|
286
|
+
api.add_operation(:create_ledger, Seahorse::Model::Operation.new.tap do |o|
|
287
|
+
o.name = "CreateLedger"
|
288
|
+
o.http_method = "POST"
|
289
|
+
o.http_request_uri = "/ledgers"
|
290
|
+
o.input = Shapes::ShapeRef.new(shape: CreateLedgerRequest)
|
291
|
+
o.output = Shapes::ShapeRef.new(shape: CreateLedgerResponse)
|
292
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
293
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
294
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
295
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
296
|
+
end)
|
297
|
+
|
298
|
+
api.add_operation(:delete_ledger, Seahorse::Model::Operation.new.tap do |o|
|
299
|
+
o.name = "DeleteLedger"
|
300
|
+
o.http_method = "DELETE"
|
301
|
+
o.http_request_uri = "/ledgers/{name}"
|
302
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteLedgerRequest)
|
303
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
304
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
305
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
306
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
|
308
|
+
end)
|
309
|
+
|
310
|
+
api.add_operation(:describe_journal_s3_export, Seahorse::Model::Operation.new.tap do |o|
|
311
|
+
o.name = "DescribeJournalS3Export"
|
312
|
+
o.http_method = "GET"
|
313
|
+
o.http_request_uri = "/ledgers/{name}/journal-s3-exports/{exportId}"
|
314
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeJournalS3ExportRequest)
|
315
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeJournalS3ExportResponse)
|
316
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
317
|
+
end)
|
318
|
+
|
319
|
+
api.add_operation(:describe_ledger, Seahorse::Model::Operation.new.tap do |o|
|
320
|
+
o.name = "DescribeLedger"
|
321
|
+
o.http_method = "GET"
|
322
|
+
o.http_request_uri = "/ledgers/{name}"
|
323
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeLedgerRequest)
|
324
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeLedgerResponse)
|
325
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
327
|
+
end)
|
328
|
+
|
329
|
+
api.add_operation(:export_journal_to_s3, Seahorse::Model::Operation.new.tap do |o|
|
330
|
+
o.name = "ExportJournalToS3"
|
331
|
+
o.http_method = "POST"
|
332
|
+
o.http_request_uri = "/ledgers/{name}/journal-s3-exports"
|
333
|
+
o.input = Shapes::ShapeRef.new(shape: ExportJournalToS3Request)
|
334
|
+
o.output = Shapes::ShapeRef.new(shape: ExportJournalToS3Response)
|
335
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
|
337
|
+
end)
|
338
|
+
|
339
|
+
api.add_operation(:get_block, Seahorse::Model::Operation.new.tap do |o|
|
340
|
+
o.name = "GetBlock"
|
341
|
+
o.http_method = "POST"
|
342
|
+
o.http_request_uri = "/ledgers/{name}/block"
|
343
|
+
o.input = Shapes::ShapeRef.new(shape: GetBlockRequest)
|
344
|
+
o.output = Shapes::ShapeRef.new(shape: GetBlockResponse)
|
345
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
347
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
|
348
|
+
end)
|
349
|
+
|
350
|
+
api.add_operation(:get_digest, Seahorse::Model::Operation.new.tap do |o|
|
351
|
+
o.name = "GetDigest"
|
352
|
+
o.http_method = "POST"
|
353
|
+
o.http_request_uri = "/ledgers/{name}/digest"
|
354
|
+
o.input = Shapes::ShapeRef.new(shape: GetDigestRequest)
|
355
|
+
o.output = Shapes::ShapeRef.new(shape: GetDigestResponse)
|
356
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
357
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
358
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
|
359
|
+
end)
|
360
|
+
|
361
|
+
api.add_operation(:get_revision, Seahorse::Model::Operation.new.tap do |o|
|
362
|
+
o.name = "GetRevision"
|
363
|
+
o.http_method = "POST"
|
364
|
+
o.http_request_uri = "/ledgers/{name}/revision"
|
365
|
+
o.input = Shapes::ShapeRef.new(shape: GetRevisionRequest)
|
366
|
+
o.output = Shapes::ShapeRef.new(shape: GetRevisionResponse)
|
367
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
368
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
369
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
|
370
|
+
end)
|
371
|
+
|
372
|
+
api.add_operation(:list_journal_s3_exports, Seahorse::Model::Operation.new.tap do |o|
|
373
|
+
o.name = "ListJournalS3Exports"
|
374
|
+
o.http_method = "GET"
|
375
|
+
o.http_request_uri = "/journal-s3-exports"
|
376
|
+
o.input = Shapes::ShapeRef.new(shape: ListJournalS3ExportsRequest)
|
377
|
+
o.output = Shapes::ShapeRef.new(shape: ListJournalS3ExportsResponse)
|
378
|
+
o[:pager] = Aws::Pager.new(
|
379
|
+
limit_key: "max_results",
|
380
|
+
tokens: {
|
381
|
+
"next_token" => "next_token"
|
382
|
+
}
|
383
|
+
)
|
384
|
+
end)
|
385
|
+
|
386
|
+
api.add_operation(:list_journal_s3_exports_for_ledger, Seahorse::Model::Operation.new.tap do |o|
|
387
|
+
o.name = "ListJournalS3ExportsForLedger"
|
388
|
+
o.http_method = "GET"
|
389
|
+
o.http_request_uri = "/ledgers/{name}/journal-s3-exports"
|
390
|
+
o.input = Shapes::ShapeRef.new(shape: ListJournalS3ExportsForLedgerRequest)
|
391
|
+
o.output = Shapes::ShapeRef.new(shape: ListJournalS3ExportsForLedgerResponse)
|
392
|
+
o[:pager] = Aws::Pager.new(
|
393
|
+
limit_key: "max_results",
|
394
|
+
tokens: {
|
395
|
+
"next_token" => "next_token"
|
396
|
+
}
|
397
|
+
)
|
398
|
+
end)
|
399
|
+
|
400
|
+
api.add_operation(:list_ledgers, Seahorse::Model::Operation.new.tap do |o|
|
401
|
+
o.name = "ListLedgers"
|
402
|
+
o.http_method = "GET"
|
403
|
+
o.http_request_uri = "/ledgers"
|
404
|
+
o.input = Shapes::ShapeRef.new(shape: ListLedgersRequest)
|
405
|
+
o.output = Shapes::ShapeRef.new(shape: ListLedgersResponse)
|
406
|
+
o[:pager] = Aws::Pager.new(
|
407
|
+
limit_key: "max_results",
|
408
|
+
tokens: {
|
409
|
+
"next_token" => "next_token"
|
410
|
+
}
|
411
|
+
)
|
412
|
+
end)
|
413
|
+
|
414
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
415
|
+
o.name = "ListTagsForResource"
|
416
|
+
o.http_method = "GET"
|
417
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
418
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
419
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
420
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
421
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
422
|
+
end)
|
423
|
+
|
424
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
425
|
+
o.name = "TagResource"
|
426
|
+
o.http_method = "POST"
|
427
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
428
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
429
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
430
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
431
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
432
|
+
end)
|
433
|
+
|
434
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
435
|
+
o.name = "UntagResource"
|
436
|
+
o.http_method = "DELETE"
|
437
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
438
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
439
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
442
|
+
end)
|
443
|
+
|
444
|
+
api.add_operation(:update_ledger, Seahorse::Model::Operation.new.tap do |o|
|
445
|
+
o.name = "UpdateLedger"
|
446
|
+
o.http_method = "PATCH"
|
447
|
+
o.http_request_uri = "/ledgers/{name}"
|
448
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateLedgerRequest)
|
449
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateLedgerResponse)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
452
|
+
end)
|
453
|
+
end
|
454
|
+
|
455
|
+
end
|
456
|
+
end
|