aws-sdk-kms 1.16.0 → 1.24.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-kms.rb +1 -1
- data/lib/aws-sdk-kms/client.rb +388 -397
- data/lib/aws-sdk-kms/client_api.rb +93 -0
- data/lib/aws-sdk-kms/errors.rb +496 -0
- data/lib/aws-sdk-kms/types.rb +713 -176
- metadata +5 -5
@@ -174,12 +174,30 @@ module Aws::KMS
|
|
174
174
|
AliasListEntry.add_member(:target_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "TargetKeyId"))
|
175
175
|
AliasListEntry.struct_class = Types::AliasListEntry
|
176
176
|
|
177
|
+
AlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
178
|
+
AlreadyExistsException.struct_class = Types::AlreadyExistsException
|
179
|
+
|
177
180
|
CancelKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
178
181
|
CancelKeyDeletionRequest.struct_class = Types::CancelKeyDeletionRequest
|
179
182
|
|
180
183
|
CancelKeyDeletionResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
181
184
|
CancelKeyDeletionResponse.struct_class = Types::CancelKeyDeletionResponse
|
182
185
|
|
186
|
+
CloudHsmClusterInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
187
|
+
CloudHsmClusterInUseException.struct_class = Types::CloudHsmClusterInUseException
|
188
|
+
|
189
|
+
CloudHsmClusterInvalidConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
190
|
+
CloudHsmClusterInvalidConfigurationException.struct_class = Types::CloudHsmClusterInvalidConfigurationException
|
191
|
+
|
192
|
+
CloudHsmClusterNotActiveException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
193
|
+
CloudHsmClusterNotActiveException.struct_class = Types::CloudHsmClusterNotActiveException
|
194
|
+
|
195
|
+
CloudHsmClusterNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
196
|
+
CloudHsmClusterNotFoundException.struct_class = Types::CloudHsmClusterNotFoundException
|
197
|
+
|
198
|
+
CloudHsmClusterNotRelatedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
199
|
+
CloudHsmClusterNotRelatedException.struct_class = Types::CloudHsmClusterNotRelatedException
|
200
|
+
|
183
201
|
ConnectCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
|
184
202
|
ConnectCustomKeyStoreRequest.struct_class = Types::ConnectCustomKeyStoreRequest
|
185
203
|
|
@@ -223,6 +241,18 @@ module Aws::KMS
|
|
223
241
|
CreateKeyResponse.add_member(:key_metadata, Shapes::ShapeRef.new(shape: KeyMetadata, location_name: "KeyMetadata"))
|
224
242
|
CreateKeyResponse.struct_class = Types::CreateKeyResponse
|
225
243
|
|
244
|
+
CustomKeyStoreHasCMKsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
245
|
+
CustomKeyStoreHasCMKsException.struct_class = Types::CustomKeyStoreHasCMKsException
|
246
|
+
|
247
|
+
CustomKeyStoreInvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
248
|
+
CustomKeyStoreInvalidStateException.struct_class = Types::CustomKeyStoreInvalidStateException
|
249
|
+
|
250
|
+
CustomKeyStoreNameInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
251
|
+
CustomKeyStoreNameInUseException.struct_class = Types::CustomKeyStoreNameInUseException
|
252
|
+
|
253
|
+
CustomKeyStoreNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
254
|
+
CustomKeyStoreNotFoundException.struct_class = Types::CustomKeyStoreNotFoundException
|
255
|
+
|
226
256
|
CustomKeyStoresList.member = Shapes::ShapeRef.new(shape: CustomKeyStoresListEntry)
|
227
257
|
|
228
258
|
CustomKeyStoresListEntry.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
|
@@ -254,6 +284,9 @@ module Aws::KMS
|
|
254
284
|
DeleteImportedKeyMaterialRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
255
285
|
DeleteImportedKeyMaterialRequest.struct_class = Types::DeleteImportedKeyMaterialRequest
|
256
286
|
|
287
|
+
DependencyTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
288
|
+
DependencyTimeoutException.struct_class = Types::DependencyTimeoutException
|
289
|
+
|
257
290
|
DescribeCustomKeyStoresRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
|
258
291
|
DescribeCustomKeyStoresRequest.add_member(:custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, location_name: "CustomKeyStoreName"))
|
259
292
|
DescribeCustomKeyStoresRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
@@ -278,6 +311,9 @@ module Aws::KMS
|
|
278
311
|
DisableKeyRotationRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
279
312
|
DisableKeyRotationRequest.struct_class = Types::DisableKeyRotationRequest
|
280
313
|
|
314
|
+
DisabledException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
315
|
+
DisabledException.struct_class = Types::DisabledException
|
316
|
+
|
281
317
|
DisconnectCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
|
282
318
|
DisconnectCustomKeyStoreRequest.struct_class = Types::DisconnectCustomKeyStoreRequest
|
283
319
|
|
@@ -302,6 +338,9 @@ module Aws::KMS
|
|
302
338
|
EncryptionContextType.key = Shapes::ShapeRef.new(shape: EncryptionContextKey)
|
303
339
|
EncryptionContextType.value = Shapes::ShapeRef.new(shape: EncryptionContextValue)
|
304
340
|
|
341
|
+
ExpiredImportTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
342
|
+
ExpiredImportTokenException.struct_class = Types::ExpiredImportTokenException
|
343
|
+
|
305
344
|
GenerateDataKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
306
345
|
GenerateDataKeyRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
307
346
|
GenerateDataKeyRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
@@ -386,6 +425,42 @@ module Aws::KMS
|
|
386
425
|
|
387
426
|
ImportKeyMaterialResponse.struct_class = Types::ImportKeyMaterialResponse
|
388
427
|
|
428
|
+
IncorrectKeyMaterialException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
429
|
+
IncorrectKeyMaterialException.struct_class = Types::IncorrectKeyMaterialException
|
430
|
+
|
431
|
+
IncorrectTrustAnchorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
432
|
+
IncorrectTrustAnchorException.struct_class = Types::IncorrectTrustAnchorException
|
433
|
+
|
434
|
+
InvalidAliasNameException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
435
|
+
InvalidAliasNameException.struct_class = Types::InvalidAliasNameException
|
436
|
+
|
437
|
+
InvalidArnException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
438
|
+
InvalidArnException.struct_class = Types::InvalidArnException
|
439
|
+
|
440
|
+
InvalidCiphertextException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
441
|
+
InvalidCiphertextException.struct_class = Types::InvalidCiphertextException
|
442
|
+
|
443
|
+
InvalidGrantIdException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
444
|
+
InvalidGrantIdException.struct_class = Types::InvalidGrantIdException
|
445
|
+
|
446
|
+
InvalidGrantTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
447
|
+
InvalidGrantTokenException.struct_class = Types::InvalidGrantTokenException
|
448
|
+
|
449
|
+
InvalidImportTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
450
|
+
InvalidImportTokenException.struct_class = Types::InvalidImportTokenException
|
451
|
+
|
452
|
+
InvalidKeyUsageException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
453
|
+
InvalidKeyUsageException.struct_class = Types::InvalidKeyUsageException
|
454
|
+
|
455
|
+
InvalidMarkerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
456
|
+
InvalidMarkerException.struct_class = Types::InvalidMarkerException
|
457
|
+
|
458
|
+
KMSInternalException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
459
|
+
KMSInternalException.struct_class = Types::KMSInternalException
|
460
|
+
|
461
|
+
KMSInvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
462
|
+
KMSInvalidStateException.struct_class = Types::KMSInvalidStateException
|
463
|
+
|
389
464
|
KeyList.member = Shapes::ShapeRef.new(shape: KeyListEntry)
|
390
465
|
|
391
466
|
KeyListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -409,6 +484,12 @@ module Aws::KMS
|
|
409
484
|
KeyMetadata.add_member(:key_manager, Shapes::ShapeRef.new(shape: KeyManagerType, location_name: "KeyManager"))
|
410
485
|
KeyMetadata.struct_class = Types::KeyMetadata
|
411
486
|
|
487
|
+
KeyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
488
|
+
KeyUnavailableException.struct_class = Types::KeyUnavailableException
|
489
|
+
|
490
|
+
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
491
|
+
LimitExceededException.struct_class = Types::LimitExceededException
|
492
|
+
|
412
493
|
ListAliasesRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
413
494
|
ListAliasesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
414
495
|
ListAliasesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
@@ -463,6 +544,12 @@ module Aws::KMS
|
|
463
544
|
ListRetirableGrantsRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, required: true, location_name: "RetiringPrincipal"))
|
464
545
|
ListRetirableGrantsRequest.struct_class = Types::ListRetirableGrantsRequest
|
465
546
|
|
547
|
+
MalformedPolicyDocumentException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
548
|
+
MalformedPolicyDocumentException.struct_class = Types::MalformedPolicyDocumentException
|
549
|
+
|
550
|
+
NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
551
|
+
NotFoundException.struct_class = Types::NotFoundException
|
552
|
+
|
466
553
|
PolicyNameList.member = Shapes::ShapeRef.new(shape: PolicyNameType)
|
467
554
|
|
468
555
|
PutKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -504,6 +591,9 @@ module Aws::KMS
|
|
504
591
|
Tag.add_member(:tag_value, Shapes::ShapeRef.new(shape: TagValueType, required: true, location_name: "TagValue"))
|
505
592
|
Tag.struct_class = Types::Tag
|
506
593
|
|
594
|
+
TagException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
595
|
+
TagException.struct_class = Types::TagException
|
596
|
+
|
507
597
|
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKeyType)
|
508
598
|
|
509
599
|
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
@@ -512,6 +602,9 @@ module Aws::KMS
|
|
512
602
|
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
513
603
|
TagResourceRequest.struct_class = Types::TagResourceRequest
|
514
604
|
|
605
|
+
UnsupportedOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
606
|
+
UnsupportedOperationException.struct_class = Types::UnsupportedOperationException
|
607
|
+
|
515
608
|
UntagResourceRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
516
609
|
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
517
610
|
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
data/lib/aws-sdk-kms/errors.rb
CHANGED
@@ -10,5 +10,501 @@ module Aws::KMS
|
|
10
10
|
|
11
11
|
extend Aws::Errors::DynamicErrors
|
12
12
|
|
13
|
+
class AlreadyExistsException < ServiceError
|
14
|
+
|
15
|
+
# @param [Seahorse::Client::RequestContext] context
|
16
|
+
# @param [String] message
|
17
|
+
# @param [Aws::KMS::Types::AlreadyExistsException] data
|
18
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
19
|
+
super(context, message, data)
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [String]
|
23
|
+
def message
|
24
|
+
@message || @data[:message]
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
class CloudHsmClusterInUseException < ServiceError
|
30
|
+
|
31
|
+
# @param [Seahorse::Client::RequestContext] context
|
32
|
+
# @param [String] message
|
33
|
+
# @param [Aws::KMS::Types::CloudHsmClusterInUseException] data
|
34
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
35
|
+
super(context, message, data)
|
36
|
+
end
|
37
|
+
|
38
|
+
# @return [String]
|
39
|
+
def message
|
40
|
+
@message || @data[:message]
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
class CloudHsmClusterInvalidConfigurationException < ServiceError
|
46
|
+
|
47
|
+
# @param [Seahorse::Client::RequestContext] context
|
48
|
+
# @param [String] message
|
49
|
+
# @param [Aws::KMS::Types::CloudHsmClusterInvalidConfigurationException] data
|
50
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
51
|
+
super(context, message, data)
|
52
|
+
end
|
53
|
+
|
54
|
+
# @return [String]
|
55
|
+
def message
|
56
|
+
@message || @data[:message]
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
class CloudHsmClusterNotActiveException < ServiceError
|
62
|
+
|
63
|
+
# @param [Seahorse::Client::RequestContext] context
|
64
|
+
# @param [String] message
|
65
|
+
# @param [Aws::KMS::Types::CloudHsmClusterNotActiveException] data
|
66
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
67
|
+
super(context, message, data)
|
68
|
+
end
|
69
|
+
|
70
|
+
# @return [String]
|
71
|
+
def message
|
72
|
+
@message || @data[:message]
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
class CloudHsmClusterNotFoundException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::KMS::Types::CloudHsmClusterNotFoundException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
|
86
|
+
# @return [String]
|
87
|
+
def message
|
88
|
+
@message || @data[:message]
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
class CloudHsmClusterNotRelatedException < ServiceError
|
94
|
+
|
95
|
+
# @param [Seahorse::Client::RequestContext] context
|
96
|
+
# @param [String] message
|
97
|
+
# @param [Aws::KMS::Types::CloudHsmClusterNotRelatedException] data
|
98
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
99
|
+
super(context, message, data)
|
100
|
+
end
|
101
|
+
|
102
|
+
# @return [String]
|
103
|
+
def message
|
104
|
+
@message || @data[:message]
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
class CustomKeyStoreHasCMKsException < ServiceError
|
110
|
+
|
111
|
+
# @param [Seahorse::Client::RequestContext] context
|
112
|
+
# @param [String] message
|
113
|
+
# @param [Aws::KMS::Types::CustomKeyStoreHasCMKsException] data
|
114
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
115
|
+
super(context, message, data)
|
116
|
+
end
|
117
|
+
|
118
|
+
# @return [String]
|
119
|
+
def message
|
120
|
+
@message || @data[:message]
|
121
|
+
end
|
122
|
+
|
123
|
+
end
|
124
|
+
|
125
|
+
class CustomKeyStoreInvalidStateException < ServiceError
|
126
|
+
|
127
|
+
# @param [Seahorse::Client::RequestContext] context
|
128
|
+
# @param [String] message
|
129
|
+
# @param [Aws::KMS::Types::CustomKeyStoreInvalidStateException] data
|
130
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
131
|
+
super(context, message, data)
|
132
|
+
end
|
133
|
+
|
134
|
+
# @return [String]
|
135
|
+
def message
|
136
|
+
@message || @data[:message]
|
137
|
+
end
|
138
|
+
|
139
|
+
end
|
140
|
+
|
141
|
+
class CustomKeyStoreNameInUseException < ServiceError
|
142
|
+
|
143
|
+
# @param [Seahorse::Client::RequestContext] context
|
144
|
+
# @param [String] message
|
145
|
+
# @param [Aws::KMS::Types::CustomKeyStoreNameInUseException] data
|
146
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
147
|
+
super(context, message, data)
|
148
|
+
end
|
149
|
+
|
150
|
+
# @return [String]
|
151
|
+
def message
|
152
|
+
@message || @data[:message]
|
153
|
+
end
|
154
|
+
|
155
|
+
end
|
156
|
+
|
157
|
+
class CustomKeyStoreNotFoundException < ServiceError
|
158
|
+
|
159
|
+
# @param [Seahorse::Client::RequestContext] context
|
160
|
+
# @param [String] message
|
161
|
+
# @param [Aws::KMS::Types::CustomKeyStoreNotFoundException] data
|
162
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
163
|
+
super(context, message, data)
|
164
|
+
end
|
165
|
+
|
166
|
+
# @return [String]
|
167
|
+
def message
|
168
|
+
@message || @data[:message]
|
169
|
+
end
|
170
|
+
|
171
|
+
end
|
172
|
+
|
173
|
+
class DependencyTimeoutException < ServiceError
|
174
|
+
|
175
|
+
# @param [Seahorse::Client::RequestContext] context
|
176
|
+
# @param [String] message
|
177
|
+
# @param [Aws::KMS::Types::DependencyTimeoutException] data
|
178
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
179
|
+
super(context, message, data)
|
180
|
+
end
|
181
|
+
|
182
|
+
# @return [String]
|
183
|
+
def message
|
184
|
+
@message || @data[:message]
|
185
|
+
end
|
186
|
+
|
187
|
+
end
|
188
|
+
|
189
|
+
class DisabledException < ServiceError
|
190
|
+
|
191
|
+
# @param [Seahorse::Client::RequestContext] context
|
192
|
+
# @param [String] message
|
193
|
+
# @param [Aws::KMS::Types::DisabledException] data
|
194
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
195
|
+
super(context, message, data)
|
196
|
+
end
|
197
|
+
|
198
|
+
# @return [String]
|
199
|
+
def message
|
200
|
+
@message || @data[:message]
|
201
|
+
end
|
202
|
+
|
203
|
+
end
|
204
|
+
|
205
|
+
class ExpiredImportTokenException < ServiceError
|
206
|
+
|
207
|
+
# @param [Seahorse::Client::RequestContext] context
|
208
|
+
# @param [String] message
|
209
|
+
# @param [Aws::KMS::Types::ExpiredImportTokenException] data
|
210
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
211
|
+
super(context, message, data)
|
212
|
+
end
|
213
|
+
|
214
|
+
# @return [String]
|
215
|
+
def message
|
216
|
+
@message || @data[:message]
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
class IncorrectKeyMaterialException < ServiceError
|
222
|
+
|
223
|
+
# @param [Seahorse::Client::RequestContext] context
|
224
|
+
# @param [String] message
|
225
|
+
# @param [Aws::KMS::Types::IncorrectKeyMaterialException] data
|
226
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
227
|
+
super(context, message, data)
|
228
|
+
end
|
229
|
+
|
230
|
+
# @return [String]
|
231
|
+
def message
|
232
|
+
@message || @data[:message]
|
233
|
+
end
|
234
|
+
|
235
|
+
end
|
236
|
+
|
237
|
+
class IncorrectTrustAnchorException < ServiceError
|
238
|
+
|
239
|
+
# @param [Seahorse::Client::RequestContext] context
|
240
|
+
# @param [String] message
|
241
|
+
# @param [Aws::KMS::Types::IncorrectTrustAnchorException] data
|
242
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
243
|
+
super(context, message, data)
|
244
|
+
end
|
245
|
+
|
246
|
+
# @return [String]
|
247
|
+
def message
|
248
|
+
@message || @data[:message]
|
249
|
+
end
|
250
|
+
|
251
|
+
end
|
252
|
+
|
253
|
+
class InvalidAliasNameException < ServiceError
|
254
|
+
|
255
|
+
# @param [Seahorse::Client::RequestContext] context
|
256
|
+
# @param [String] message
|
257
|
+
# @param [Aws::KMS::Types::InvalidAliasNameException] data
|
258
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
259
|
+
super(context, message, data)
|
260
|
+
end
|
261
|
+
|
262
|
+
# @return [String]
|
263
|
+
def message
|
264
|
+
@message || @data[:message]
|
265
|
+
end
|
266
|
+
|
267
|
+
end
|
268
|
+
|
269
|
+
class InvalidArnException < ServiceError
|
270
|
+
|
271
|
+
# @param [Seahorse::Client::RequestContext] context
|
272
|
+
# @param [String] message
|
273
|
+
# @param [Aws::KMS::Types::InvalidArnException] data
|
274
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
275
|
+
super(context, message, data)
|
276
|
+
end
|
277
|
+
|
278
|
+
# @return [String]
|
279
|
+
def message
|
280
|
+
@message || @data[:message]
|
281
|
+
end
|
282
|
+
|
283
|
+
end
|
284
|
+
|
285
|
+
class InvalidCiphertextException < ServiceError
|
286
|
+
|
287
|
+
# @param [Seahorse::Client::RequestContext] context
|
288
|
+
# @param [String] message
|
289
|
+
# @param [Aws::KMS::Types::InvalidCiphertextException] data
|
290
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
291
|
+
super(context, message, data)
|
292
|
+
end
|
293
|
+
|
294
|
+
# @return [String]
|
295
|
+
def message
|
296
|
+
@message || @data[:message]
|
297
|
+
end
|
298
|
+
|
299
|
+
end
|
300
|
+
|
301
|
+
class InvalidGrantIdException < ServiceError
|
302
|
+
|
303
|
+
# @param [Seahorse::Client::RequestContext] context
|
304
|
+
# @param [String] message
|
305
|
+
# @param [Aws::KMS::Types::InvalidGrantIdException] data
|
306
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
307
|
+
super(context, message, data)
|
308
|
+
end
|
309
|
+
|
310
|
+
# @return [String]
|
311
|
+
def message
|
312
|
+
@message || @data[:message]
|
313
|
+
end
|
314
|
+
|
315
|
+
end
|
316
|
+
|
317
|
+
class InvalidGrantTokenException < ServiceError
|
318
|
+
|
319
|
+
# @param [Seahorse::Client::RequestContext] context
|
320
|
+
# @param [String] message
|
321
|
+
# @param [Aws::KMS::Types::InvalidGrantTokenException] data
|
322
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
323
|
+
super(context, message, data)
|
324
|
+
end
|
325
|
+
|
326
|
+
# @return [String]
|
327
|
+
def message
|
328
|
+
@message || @data[:message]
|
329
|
+
end
|
330
|
+
|
331
|
+
end
|
332
|
+
|
333
|
+
class InvalidImportTokenException < ServiceError
|
334
|
+
|
335
|
+
# @param [Seahorse::Client::RequestContext] context
|
336
|
+
# @param [String] message
|
337
|
+
# @param [Aws::KMS::Types::InvalidImportTokenException] data
|
338
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
339
|
+
super(context, message, data)
|
340
|
+
end
|
341
|
+
|
342
|
+
# @return [String]
|
343
|
+
def message
|
344
|
+
@message || @data[:message]
|
345
|
+
end
|
346
|
+
|
347
|
+
end
|
348
|
+
|
349
|
+
class InvalidKeyUsageException < ServiceError
|
350
|
+
|
351
|
+
# @param [Seahorse::Client::RequestContext] context
|
352
|
+
# @param [String] message
|
353
|
+
# @param [Aws::KMS::Types::InvalidKeyUsageException] data
|
354
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
355
|
+
super(context, message, data)
|
356
|
+
end
|
357
|
+
|
358
|
+
# @return [String]
|
359
|
+
def message
|
360
|
+
@message || @data[:message]
|
361
|
+
end
|
362
|
+
|
363
|
+
end
|
364
|
+
|
365
|
+
class InvalidMarkerException < ServiceError
|
366
|
+
|
367
|
+
# @param [Seahorse::Client::RequestContext] context
|
368
|
+
# @param [String] message
|
369
|
+
# @param [Aws::KMS::Types::InvalidMarkerException] data
|
370
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
371
|
+
super(context, message, data)
|
372
|
+
end
|
373
|
+
|
374
|
+
# @return [String]
|
375
|
+
def message
|
376
|
+
@message || @data[:message]
|
377
|
+
end
|
378
|
+
|
379
|
+
end
|
380
|
+
|
381
|
+
class KMSInternalException < ServiceError
|
382
|
+
|
383
|
+
# @param [Seahorse::Client::RequestContext] context
|
384
|
+
# @param [String] message
|
385
|
+
# @param [Aws::KMS::Types::KMSInternalException] data
|
386
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
387
|
+
super(context, message, data)
|
388
|
+
end
|
389
|
+
|
390
|
+
# @return [String]
|
391
|
+
def message
|
392
|
+
@message || @data[:message]
|
393
|
+
end
|
394
|
+
|
395
|
+
end
|
396
|
+
|
397
|
+
class KMSInvalidStateException < ServiceError
|
398
|
+
|
399
|
+
# @param [Seahorse::Client::RequestContext] context
|
400
|
+
# @param [String] message
|
401
|
+
# @param [Aws::KMS::Types::KMSInvalidStateException] data
|
402
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
403
|
+
super(context, message, data)
|
404
|
+
end
|
405
|
+
|
406
|
+
# @return [String]
|
407
|
+
def message
|
408
|
+
@message || @data[:message]
|
409
|
+
end
|
410
|
+
|
411
|
+
end
|
412
|
+
|
413
|
+
class KeyUnavailableException < ServiceError
|
414
|
+
|
415
|
+
# @param [Seahorse::Client::RequestContext] context
|
416
|
+
# @param [String] message
|
417
|
+
# @param [Aws::KMS::Types::KeyUnavailableException] data
|
418
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
419
|
+
super(context, message, data)
|
420
|
+
end
|
421
|
+
|
422
|
+
# @return [String]
|
423
|
+
def message
|
424
|
+
@message || @data[:message]
|
425
|
+
end
|
426
|
+
|
427
|
+
end
|
428
|
+
|
429
|
+
class LimitExceededException < ServiceError
|
430
|
+
|
431
|
+
# @param [Seahorse::Client::RequestContext] context
|
432
|
+
# @param [String] message
|
433
|
+
# @param [Aws::KMS::Types::LimitExceededException] data
|
434
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
435
|
+
super(context, message, data)
|
436
|
+
end
|
437
|
+
|
438
|
+
# @return [String]
|
439
|
+
def message
|
440
|
+
@message || @data[:message]
|
441
|
+
end
|
442
|
+
|
443
|
+
end
|
444
|
+
|
445
|
+
class MalformedPolicyDocumentException < ServiceError
|
446
|
+
|
447
|
+
# @param [Seahorse::Client::RequestContext] context
|
448
|
+
# @param [String] message
|
449
|
+
# @param [Aws::KMS::Types::MalformedPolicyDocumentException] data
|
450
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
451
|
+
super(context, message, data)
|
452
|
+
end
|
453
|
+
|
454
|
+
# @return [String]
|
455
|
+
def message
|
456
|
+
@message || @data[:message]
|
457
|
+
end
|
458
|
+
|
459
|
+
end
|
460
|
+
|
461
|
+
class NotFoundException < ServiceError
|
462
|
+
|
463
|
+
# @param [Seahorse::Client::RequestContext] context
|
464
|
+
# @param [String] message
|
465
|
+
# @param [Aws::KMS::Types::NotFoundException] data
|
466
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
467
|
+
super(context, message, data)
|
468
|
+
end
|
469
|
+
|
470
|
+
# @return [String]
|
471
|
+
def message
|
472
|
+
@message || @data[:message]
|
473
|
+
end
|
474
|
+
|
475
|
+
end
|
476
|
+
|
477
|
+
class TagException < ServiceError
|
478
|
+
|
479
|
+
# @param [Seahorse::Client::RequestContext] context
|
480
|
+
# @param [String] message
|
481
|
+
# @param [Aws::KMS::Types::TagException] data
|
482
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
483
|
+
super(context, message, data)
|
484
|
+
end
|
485
|
+
|
486
|
+
# @return [String]
|
487
|
+
def message
|
488
|
+
@message || @data[:message]
|
489
|
+
end
|
490
|
+
|
491
|
+
end
|
492
|
+
|
493
|
+
class UnsupportedOperationException < ServiceError
|
494
|
+
|
495
|
+
# @param [Seahorse::Client::RequestContext] context
|
496
|
+
# @param [String] message
|
497
|
+
# @param [Aws::KMS::Types::UnsupportedOperationException] data
|
498
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
499
|
+
super(context, message, data)
|
500
|
+
end
|
501
|
+
|
502
|
+
# @return [String]
|
503
|
+
def message
|
504
|
+
@message || @data[:message]
|
505
|
+
end
|
506
|
+
|
507
|
+
end
|
508
|
+
|
13
509
|
end
|
14
510
|
end
|