aws-sdk-kms 1.20.0 → 1.21.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 +1 -1
- 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 +517 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d8446a5f0e82404be96e3afa419d51e960154ba
|
4
|
+
data.tar.gz: ab58e1b8bf3594c4652aa445df1ce8195524e520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c43cce64d89c38677282fd29300e607aae5e92019361897c615f234971e1cfcab095bef3c3e208db6a83c5ffc74aebf46d0234ee2d42b642161086191bbab5f2
|
7
|
+
data.tar.gz: 64a6819f649f0d19f8d221a8c452ed27157cba3471813b8931d3901d3579ade1eb42937cac92e2577dfeb814296b2b64e1e858e79a562ee540f1f97f5c06c4a3
|
data/lib/aws-sdk-kms.rb
CHANGED
data/lib/aws-sdk-kms/client.rb
CHANGED
@@ -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
|
data/lib/aws-sdk-kms/types.rb
CHANGED
@@ -31,6 +31,19 @@ module Aws::KMS
|
|
31
31
|
include Aws::Structure
|
32
32
|
end
|
33
33
|
|
34
|
+
# The request was rejected because it attempted to create a resource
|
35
|
+
# that already exists.
|
36
|
+
#
|
37
|
+
# @!attribute [rw] message
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/AlreadyExistsException AWS API Documentation
|
41
|
+
#
|
42
|
+
class AlreadyExistsException < Struct.new(
|
43
|
+
:message)
|
44
|
+
include Aws::Structure
|
45
|
+
end
|
46
|
+
|
34
47
|
# @note When making an API call, you may pass CancelKeyDeletionRequest
|
35
48
|
# data as a hash:
|
36
49
|
#
|
@@ -74,6 +87,143 @@ module Aws::KMS
|
|
74
87
|
include Aws::Structure
|
75
88
|
end
|
76
89
|
|
90
|
+
# The request was rejected because the specified AWS CloudHSM cluster is
|
91
|
+
# already associated with a custom key store or it shares a backup
|
92
|
+
# history with a cluster that is associated with a custom key store.
|
93
|
+
# Each custom key store must be associated with a different AWS CloudHSM
|
94
|
+
# cluster.
|
95
|
+
#
|
96
|
+
# Clusters that share a backup history have the same cluster
|
97
|
+
# certificate. To view the cluster certificate of a cluster, use the
|
98
|
+
# [DescribeClusters][1] operation.
|
99
|
+
#
|
100
|
+
#
|
101
|
+
#
|
102
|
+
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
|
103
|
+
#
|
104
|
+
# @!attribute [rw] message
|
105
|
+
# @return [String]
|
106
|
+
#
|
107
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterInUseException AWS API Documentation
|
108
|
+
#
|
109
|
+
class CloudHsmClusterInUseException < Struct.new(
|
110
|
+
:message)
|
111
|
+
include Aws::Structure
|
112
|
+
end
|
113
|
+
|
114
|
+
# The request was rejected because the associated AWS CloudHSM cluster
|
115
|
+
# did not meet the configuration requirements for a custom key store.
|
116
|
+
#
|
117
|
+
# * The cluster must be configured with private subnets in at least two
|
118
|
+
# different Availability Zones in the Region.
|
119
|
+
#
|
120
|
+
# * The [security group for the cluster][1]
|
121
|
+
# (cloudhsm-cluster-*<cluster-id>*-sg) must include inbound
|
122
|
+
# rules and outbound rules that allow TCP traffic on ports 2223-2225.
|
123
|
+
# The **Source** in the inbound rules and the **Destination** in the
|
124
|
+
# outbound rules must match the security group ID. These rules are set
|
125
|
+
# by default when you create the cluster. Do not delete or change
|
126
|
+
# them. To get information about a particular security group, use the
|
127
|
+
# [DescribeSecurityGroups][2] operation.
|
128
|
+
#
|
129
|
+
# * The cluster must contain at least as many HSMs as the operation
|
130
|
+
# requires. To add HSMs, use the AWS CloudHSM [CreateHsm][3]
|
131
|
+
# operation.
|
132
|
+
#
|
133
|
+
# For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey
|
134
|
+
# operations, the AWS CloudHSM cluster must have at least two active
|
135
|
+
# HSMs, each in a different Availability Zone. For the
|
136
|
+
# ConnectCustomKeyStore operation, the AWS CloudHSM must contain at
|
137
|
+
# least one active HSM.
|
138
|
+
#
|
139
|
+
# For information about the requirements for an AWS CloudHSM cluster
|
140
|
+
# that is associated with a custom key store, see [Assemble the
|
141
|
+
# Prerequisites][4] in the *AWS Key Management Service Developer Guide*.
|
142
|
+
# For information about creating a private subnet for an AWS CloudHSM
|
143
|
+
# cluster, see [Create a Private Subnet][5] in the *AWS CloudHSM User
|
144
|
+
# Guide*. For information about cluster security groups, see [Configure
|
145
|
+
# a Default Security Group][1] in the <i> <i>AWS CloudHSM User Guide</i>
|
146
|
+
# </i>.
|
147
|
+
#
|
148
|
+
#
|
149
|
+
#
|
150
|
+
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html
|
151
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html
|
152
|
+
# [3]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html
|
153
|
+
# [4]: https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore
|
154
|
+
# [5]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html
|
155
|
+
#
|
156
|
+
# @!attribute [rw] message
|
157
|
+
# @return [String]
|
158
|
+
#
|
159
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterInvalidConfigurationException AWS API Documentation
|
160
|
+
#
|
161
|
+
class CloudHsmClusterInvalidConfigurationException < Struct.new(
|
162
|
+
:message)
|
163
|
+
include Aws::Structure
|
164
|
+
end
|
165
|
+
|
166
|
+
# The request was rejected because the AWS CloudHSM cluster that is
|
167
|
+
# associated with the custom key store is not active. Initialize and
|
168
|
+
# activate the cluster and try the command again. For detailed
|
169
|
+
# instructions, see [Getting Started][1] in the *AWS CloudHSM User
|
170
|
+
# Guide*.
|
171
|
+
#
|
172
|
+
#
|
173
|
+
#
|
174
|
+
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html
|
175
|
+
#
|
176
|
+
# @!attribute [rw] message
|
177
|
+
# @return [String]
|
178
|
+
#
|
179
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterNotActiveException AWS API Documentation
|
180
|
+
#
|
181
|
+
class CloudHsmClusterNotActiveException < Struct.new(
|
182
|
+
:message)
|
183
|
+
include Aws::Structure
|
184
|
+
end
|
185
|
+
|
186
|
+
# The request was rejected because AWS KMS cannot find the AWS CloudHSM
|
187
|
+
# cluster with the specified cluster ID. Retry the request with a
|
188
|
+
# different cluster ID.
|
189
|
+
#
|
190
|
+
# @!attribute [rw] message
|
191
|
+
# @return [String]
|
192
|
+
#
|
193
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterNotFoundException AWS API Documentation
|
194
|
+
#
|
195
|
+
class CloudHsmClusterNotFoundException < Struct.new(
|
196
|
+
:message)
|
197
|
+
include Aws::Structure
|
198
|
+
end
|
199
|
+
|
200
|
+
# The request was rejected because the specified AWS CloudHSM cluster
|
201
|
+
# has a different cluster certificate than the original cluster. You
|
202
|
+
# cannot use the operation to specify an unrelated cluster.
|
203
|
+
#
|
204
|
+
# Specify a cluster that shares a backup history with the original
|
205
|
+
# cluster. This includes clusters that were created from a backup of the
|
206
|
+
# current cluster, and clusters that were created from the same backup
|
207
|
+
# that produced the current cluster.
|
208
|
+
#
|
209
|
+
# Clusters that share a backup history have the same cluster
|
210
|
+
# certificate. To view the cluster certificate of a cluster, use the
|
211
|
+
# [DescribeClusters][1] operation.
|
212
|
+
#
|
213
|
+
#
|
214
|
+
#
|
215
|
+
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
|
216
|
+
#
|
217
|
+
# @!attribute [rw] message
|
218
|
+
# @return [String]
|
219
|
+
#
|
220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterNotRelatedException AWS API Documentation
|
221
|
+
#
|
222
|
+
class CloudHsmClusterNotRelatedException < Struct.new(
|
223
|
+
:message)
|
224
|
+
include Aws::Structure
|
225
|
+
end
|
226
|
+
|
77
227
|
# @note When making an API call, you may pass ConnectCustomKeyStoreRequest
|
78
228
|
# data as a hash:
|
79
229
|
#
|
@@ -530,6 +680,77 @@ module Aws::KMS
|
|
530
680
|
include Aws::Structure
|
531
681
|
end
|
532
682
|
|
683
|
+
# The request was rejected because the custom key store contains AWS KMS
|
684
|
+
# customer master keys (CMKs). After verifying that you do not need to
|
685
|
+
# use the CMKs, use the ScheduleKeyDeletion operation to delete the
|
686
|
+
# CMKs. After they are deleted, you can delete the custom key store.
|
687
|
+
#
|
688
|
+
# @!attribute [rw] message
|
689
|
+
# @return [String]
|
690
|
+
#
|
691
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoreHasCMKsException AWS API Documentation
|
692
|
+
#
|
693
|
+
class CustomKeyStoreHasCMKsException < Struct.new(
|
694
|
+
:message)
|
695
|
+
include Aws::Structure
|
696
|
+
end
|
697
|
+
|
698
|
+
# The request was rejected because of the `ConnectionState` of the
|
699
|
+
# custom key store. To get the `ConnectionState` of a custom key store,
|
700
|
+
# use the DescribeCustomKeyStores operation.
|
701
|
+
#
|
702
|
+
# This exception is thrown under the following conditions:
|
703
|
+
#
|
704
|
+
# * You requested the CreateKey or GenerateRandom operation in a custom
|
705
|
+
# key store that is not connected. These operations are valid only
|
706
|
+
# when the custom key store `ConnectionState` is `CONNECTED`.
|
707
|
+
#
|
708
|
+
# * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore
|
709
|
+
# operation on a custom key store that is not disconnected. This
|
710
|
+
# operation is valid only when the custom key store `ConnectionState`
|
711
|
+
# is `DISCONNECTED`.
|
712
|
+
#
|
713
|
+
# * You requested the ConnectCustomKeyStore operation on a custom key
|
714
|
+
# store with a `ConnectionState` of `DISCONNECTING` or `FAILED`. This
|
715
|
+
# operation is valid for all other `ConnectionState` values.
|
716
|
+
#
|
717
|
+
# @!attribute [rw] message
|
718
|
+
# @return [String]
|
719
|
+
#
|
720
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoreInvalidStateException AWS API Documentation
|
721
|
+
#
|
722
|
+
class CustomKeyStoreInvalidStateException < Struct.new(
|
723
|
+
:message)
|
724
|
+
include Aws::Structure
|
725
|
+
end
|
726
|
+
|
727
|
+
# The request was rejected because the specified custom key store name
|
728
|
+
# is already assigned to another custom key store in the account. Try
|
729
|
+
# again with a custom key store name that is unique in the account.
|
730
|
+
#
|
731
|
+
# @!attribute [rw] message
|
732
|
+
# @return [String]
|
733
|
+
#
|
734
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoreNameInUseException AWS API Documentation
|
735
|
+
#
|
736
|
+
class CustomKeyStoreNameInUseException < Struct.new(
|
737
|
+
:message)
|
738
|
+
include Aws::Structure
|
739
|
+
end
|
740
|
+
|
741
|
+
# The request was rejected because AWS KMS cannot find a custom key
|
742
|
+
# store with the specified key store name or ID.
|
743
|
+
#
|
744
|
+
# @!attribute [rw] message
|
745
|
+
# @return [String]
|
746
|
+
#
|
747
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoreNotFoundException AWS API Documentation
|
748
|
+
#
|
749
|
+
class CustomKeyStoreNotFoundException < Struct.new(
|
750
|
+
:message)
|
751
|
+
include Aws::Structure
|
752
|
+
end
|
753
|
+
|
533
754
|
# Contains information about each custom key store in the custom key
|
534
755
|
# store list.
|
535
756
|
#
|
@@ -768,6 +989,19 @@ module Aws::KMS
|
|
768
989
|
include Aws::Structure
|
769
990
|
end
|
770
991
|
|
992
|
+
# The system timed out while trying to fulfill the request. The request
|
993
|
+
# can be retried.
|
994
|
+
#
|
995
|
+
# @!attribute [rw] message
|
996
|
+
# @return [String]
|
997
|
+
#
|
998
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DependencyTimeoutException AWS API Documentation
|
999
|
+
#
|
1000
|
+
class DependencyTimeoutException < Struct.new(
|
1001
|
+
:message)
|
1002
|
+
include Aws::Structure
|
1003
|
+
end
|
1004
|
+
|
771
1005
|
# @note When making an API call, you may pass DescribeCustomKeyStoresRequest
|
772
1006
|
# data as a hash:
|
773
1007
|
#
|
@@ -974,6 +1208,18 @@ module Aws::KMS
|
|
974
1208
|
include Aws::Structure
|
975
1209
|
end
|
976
1210
|
|
1211
|
+
# The request was rejected because the specified CMK is not enabled.
|
1212
|
+
#
|
1213
|
+
# @!attribute [rw] message
|
1214
|
+
# @return [String]
|
1215
|
+
#
|
1216
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisabledException AWS API Documentation
|
1217
|
+
#
|
1218
|
+
class DisabledException < Struct.new(
|
1219
|
+
:message)
|
1220
|
+
include Aws::Structure
|
1221
|
+
end
|
1222
|
+
|
977
1223
|
# @note When making an API call, you may pass DisconnectCustomKeyStoreRequest
|
978
1224
|
# data as a hash:
|
979
1225
|
#
|
@@ -1146,6 +1392,21 @@ module Aws::KMS
|
|
1146
1392
|
include Aws::Structure
|
1147
1393
|
end
|
1148
1394
|
|
1395
|
+
# The request was rejected because the provided import token is expired.
|
1396
|
+
# Use GetParametersForImport to get a new import token and public key,
|
1397
|
+
# use the new public key to encrypt the key material, and then try the
|
1398
|
+
# request again.
|
1399
|
+
#
|
1400
|
+
# @!attribute [rw] message
|
1401
|
+
# @return [String]
|
1402
|
+
#
|
1403
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ExpiredImportTokenException AWS API Documentation
|
1404
|
+
#
|
1405
|
+
class ExpiredImportTokenException < Struct.new(
|
1406
|
+
:message)
|
1407
|
+
include Aws::Structure
|
1408
|
+
end
|
1409
|
+
|
1149
1410
|
# @note When making an API call, you may pass GenerateDataKeyRequest
|
1150
1411
|
# data as a hash:
|
1151
1412
|
#
|
@@ -1774,6 +2035,180 @@ module Aws::KMS
|
|
1774
2035
|
#
|
1775
2036
|
class ImportKeyMaterialResponse < Aws::EmptyStructure; end
|
1776
2037
|
|
2038
|
+
# The request was rejected because the provided key material is invalid
|
2039
|
+
# or is not the same key material that was previously imported into this
|
2040
|
+
# customer master key (CMK).
|
2041
|
+
#
|
2042
|
+
# @!attribute [rw] message
|
2043
|
+
# @return [String]
|
2044
|
+
#
|
2045
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/IncorrectKeyMaterialException AWS API Documentation
|
2046
|
+
#
|
2047
|
+
class IncorrectKeyMaterialException < Struct.new(
|
2048
|
+
:message)
|
2049
|
+
include Aws::Structure
|
2050
|
+
end
|
2051
|
+
|
2052
|
+
# The request was rejected because the trust anchor certificate in the
|
2053
|
+
# request is not the trust anchor certificate for the specified AWS
|
2054
|
+
# CloudHSM cluster.
|
2055
|
+
#
|
2056
|
+
# When you [initialize the cluster][1], you create the trust anchor
|
2057
|
+
# certificate and save it in the `customerCA.crt` file.
|
2058
|
+
#
|
2059
|
+
#
|
2060
|
+
#
|
2061
|
+
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr
|
2062
|
+
#
|
2063
|
+
# @!attribute [rw] message
|
2064
|
+
# @return [String]
|
2065
|
+
#
|
2066
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/IncorrectTrustAnchorException AWS API Documentation
|
2067
|
+
#
|
2068
|
+
class IncorrectTrustAnchorException < Struct.new(
|
2069
|
+
:message)
|
2070
|
+
include Aws::Structure
|
2071
|
+
end
|
2072
|
+
|
2073
|
+
# The request was rejected because the specified alias name is not
|
2074
|
+
# valid.
|
2075
|
+
#
|
2076
|
+
# @!attribute [rw] message
|
2077
|
+
# @return [String]
|
2078
|
+
#
|
2079
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidAliasNameException AWS API Documentation
|
2080
|
+
#
|
2081
|
+
class InvalidAliasNameException < Struct.new(
|
2082
|
+
:message)
|
2083
|
+
include Aws::Structure
|
2084
|
+
end
|
2085
|
+
|
2086
|
+
# The request was rejected because a specified ARN, or an ARN in a key
|
2087
|
+
# policy, is not valid.
|
2088
|
+
#
|
2089
|
+
# @!attribute [rw] message
|
2090
|
+
# @return [String]
|
2091
|
+
#
|
2092
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidArnException AWS API Documentation
|
2093
|
+
#
|
2094
|
+
class InvalidArnException < Struct.new(
|
2095
|
+
:message)
|
2096
|
+
include Aws::Structure
|
2097
|
+
end
|
2098
|
+
|
2099
|
+
# The request was rejected because the specified ciphertext, or
|
2100
|
+
# additional authenticated data incorporated into the ciphertext, such
|
2101
|
+
# as the encryption context, is corrupted, missing, or otherwise
|
2102
|
+
# invalid.
|
2103
|
+
#
|
2104
|
+
# @!attribute [rw] message
|
2105
|
+
# @return [String]
|
2106
|
+
#
|
2107
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidCiphertextException AWS API Documentation
|
2108
|
+
#
|
2109
|
+
class InvalidCiphertextException < Struct.new(
|
2110
|
+
:message)
|
2111
|
+
include Aws::Structure
|
2112
|
+
end
|
2113
|
+
|
2114
|
+
# The request was rejected because the specified `GrantId` is not valid.
|
2115
|
+
#
|
2116
|
+
# @!attribute [rw] message
|
2117
|
+
# @return [String]
|
2118
|
+
#
|
2119
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidGrantIdException AWS API Documentation
|
2120
|
+
#
|
2121
|
+
class InvalidGrantIdException < Struct.new(
|
2122
|
+
:message)
|
2123
|
+
include Aws::Structure
|
2124
|
+
end
|
2125
|
+
|
2126
|
+
# The request was rejected because the specified grant token is not
|
2127
|
+
# valid.
|
2128
|
+
#
|
2129
|
+
# @!attribute [rw] message
|
2130
|
+
# @return [String]
|
2131
|
+
#
|
2132
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidGrantTokenException AWS API Documentation
|
2133
|
+
#
|
2134
|
+
class InvalidGrantTokenException < Struct.new(
|
2135
|
+
:message)
|
2136
|
+
include Aws::Structure
|
2137
|
+
end
|
2138
|
+
|
2139
|
+
# The request was rejected because the provided import token is invalid
|
2140
|
+
# or is associated with a different customer master key (CMK).
|
2141
|
+
#
|
2142
|
+
# @!attribute [rw] message
|
2143
|
+
# @return [String]
|
2144
|
+
#
|
2145
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidImportTokenException AWS API Documentation
|
2146
|
+
#
|
2147
|
+
class InvalidImportTokenException < Struct.new(
|
2148
|
+
:message)
|
2149
|
+
include Aws::Structure
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
# The request was rejected because the specified `KeySpec` value is not
|
2153
|
+
# valid.
|
2154
|
+
#
|
2155
|
+
# @!attribute [rw] message
|
2156
|
+
# @return [String]
|
2157
|
+
#
|
2158
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidKeyUsageException AWS API Documentation
|
2159
|
+
#
|
2160
|
+
class InvalidKeyUsageException < Struct.new(
|
2161
|
+
:message)
|
2162
|
+
include Aws::Structure
|
2163
|
+
end
|
2164
|
+
|
2165
|
+
# The request was rejected because the marker that specifies where
|
2166
|
+
# pagination should next begin is not valid.
|
2167
|
+
#
|
2168
|
+
# @!attribute [rw] message
|
2169
|
+
# @return [String]
|
2170
|
+
#
|
2171
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidMarkerException AWS API Documentation
|
2172
|
+
#
|
2173
|
+
class InvalidMarkerException < Struct.new(
|
2174
|
+
:message)
|
2175
|
+
include Aws::Structure
|
2176
|
+
end
|
2177
|
+
|
2178
|
+
# The request was rejected because an internal exception occurred. The
|
2179
|
+
# request can be retried.
|
2180
|
+
#
|
2181
|
+
# @!attribute [rw] message
|
2182
|
+
# @return [String]
|
2183
|
+
#
|
2184
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KMSInternalException AWS API Documentation
|
2185
|
+
#
|
2186
|
+
class KMSInternalException < Struct.new(
|
2187
|
+
:message)
|
2188
|
+
include Aws::Structure
|
2189
|
+
end
|
2190
|
+
|
2191
|
+
# The request was rejected because the state of the specified resource
|
2192
|
+
# is not valid for this request.
|
2193
|
+
#
|
2194
|
+
# For more information about how key state affects the use of a CMK, see
|
2195
|
+
# [How Key State Affects Use of a Customer Master Key][1] in the *AWS
|
2196
|
+
# Key Management Service Developer Guide*.
|
2197
|
+
#
|
2198
|
+
#
|
2199
|
+
#
|
2200
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
|
2201
|
+
#
|
2202
|
+
# @!attribute [rw] message
|
2203
|
+
# @return [String]
|
2204
|
+
#
|
2205
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KMSInvalidStateException AWS API Documentation
|
2206
|
+
#
|
2207
|
+
class KMSInvalidStateException < Struct.new(
|
2208
|
+
:message)
|
2209
|
+
include Aws::Structure
|
2210
|
+
end
|
2211
|
+
|
1777
2212
|
# Contains information about each entry in the key list.
|
1778
2213
|
#
|
1779
2214
|
# @!attribute [rw] key_id
|
@@ -1928,6 +2363,37 @@ module Aws::KMS
|
|
1928
2363
|
include Aws::Structure
|
1929
2364
|
end
|
1930
2365
|
|
2366
|
+
# The request was rejected because the specified CMK was not available.
|
2367
|
+
# The request can be retried.
|
2368
|
+
#
|
2369
|
+
# @!attribute [rw] message
|
2370
|
+
# @return [String]
|
2371
|
+
#
|
2372
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KeyUnavailableException AWS API Documentation
|
2373
|
+
#
|
2374
|
+
class KeyUnavailableException < Struct.new(
|
2375
|
+
:message)
|
2376
|
+
include Aws::Structure
|
2377
|
+
end
|
2378
|
+
|
2379
|
+
# The request was rejected because a limit was exceeded. For more
|
2380
|
+
# information, see [Limits][1] in the *AWS Key Management Service
|
2381
|
+
# Developer Guide*.
|
2382
|
+
#
|
2383
|
+
#
|
2384
|
+
#
|
2385
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/limits.html
|
2386
|
+
#
|
2387
|
+
# @!attribute [rw] message
|
2388
|
+
# @return [String]
|
2389
|
+
#
|
2390
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/LimitExceededException AWS API Documentation
|
2391
|
+
#
|
2392
|
+
class LimitExceededException < Struct.new(
|
2393
|
+
:message)
|
2394
|
+
include Aws::Structure
|
2395
|
+
end
|
2396
|
+
|
1931
2397
|
# @note When making an API call, you may pass ListAliasesRequest
|
1932
2398
|
# data as a hash:
|
1933
2399
|
#
|
@@ -2336,6 +2802,32 @@ module Aws::KMS
|
|
2336
2802
|
include Aws::Structure
|
2337
2803
|
end
|
2338
2804
|
|
2805
|
+
# The request was rejected because the specified policy is not
|
2806
|
+
# syntactically or semantically correct.
|
2807
|
+
#
|
2808
|
+
# @!attribute [rw] message
|
2809
|
+
# @return [String]
|
2810
|
+
#
|
2811
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/MalformedPolicyDocumentException AWS API Documentation
|
2812
|
+
#
|
2813
|
+
class MalformedPolicyDocumentException < Struct.new(
|
2814
|
+
:message)
|
2815
|
+
include Aws::Structure
|
2816
|
+
end
|
2817
|
+
|
2818
|
+
# The request was rejected because the specified entity or resource
|
2819
|
+
# could not be found.
|
2820
|
+
#
|
2821
|
+
# @!attribute [rw] message
|
2822
|
+
# @return [String]
|
2823
|
+
#
|
2824
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/NotFoundException AWS API Documentation
|
2825
|
+
#
|
2826
|
+
class NotFoundException < Struct.new(
|
2827
|
+
:message)
|
2828
|
+
include Aws::Structure
|
2829
|
+
end
|
2830
|
+
|
2339
2831
|
# @note When making an API call, you may pass PutKeyPolicyRequest
|
2340
2832
|
# data as a hash:
|
2341
2833
|
#
|
@@ -2695,6 +3187,18 @@ module Aws::KMS
|
|
2695
3187
|
include Aws::Structure
|
2696
3188
|
end
|
2697
3189
|
|
3190
|
+
# The request was rejected because one or more tags are not valid.
|
3191
|
+
#
|
3192
|
+
# @!attribute [rw] message
|
3193
|
+
# @return [String]
|
3194
|
+
#
|
3195
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagException AWS API Documentation
|
3196
|
+
#
|
3197
|
+
class TagException < Struct.new(
|
3198
|
+
:message)
|
3199
|
+
include Aws::Structure
|
3200
|
+
end
|
3201
|
+
|
2698
3202
|
# @note When making an API call, you may pass TagResourceRequest
|
2699
3203
|
# data as a hash:
|
2700
3204
|
#
|
@@ -2736,6 +3240,19 @@ module Aws::KMS
|
|
2736
3240
|
include Aws::Structure
|
2737
3241
|
end
|
2738
3242
|
|
3243
|
+
# The request was rejected because a specified parameter is not
|
3244
|
+
# supported or a specified resource is not valid for this operation.
|
3245
|
+
#
|
3246
|
+
# @!attribute [rw] message
|
3247
|
+
# @return [String]
|
3248
|
+
#
|
3249
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UnsupportedOperationException AWS API Documentation
|
3250
|
+
#
|
3251
|
+
class UnsupportedOperationException < Struct.new(
|
3252
|
+
:message)
|
3253
|
+
include Aws::Structure
|
3254
|
+
end
|
3255
|
+
|
2739
3256
|
# @note When making an API call, you may pass UntagResourceRequest
|
2740
3257
|
# data as a hash:
|
2741
3258
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.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: 2019-05-
|
11
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.53.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.53.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|