aws-sdk-kms 1.25.0 → 1.30.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 +7 -4
- data/lib/aws-sdk-kms/client.rb +1737 -371
- data/lib/aws-sdk-kms/client_api.rb +193 -0
- data/lib/aws-sdk-kms/errors.rb +83 -29
- data/lib/aws-sdk-kms/resource.rb +7 -0
- data/lib/aws-sdk-kms/types.rb +1160 -118
- metadata +2 -2
@@ -47,6 +47,8 @@ module Aws::KMS
|
|
47
47
|
CustomKeyStoreNotFoundException = Shapes::StructureShape.new(name: 'CustomKeyStoreNotFoundException')
|
48
48
|
CustomKeyStoresList = Shapes::ListShape.new(name: 'CustomKeyStoresList')
|
49
49
|
CustomKeyStoresListEntry = Shapes::StructureShape.new(name: 'CustomKeyStoresListEntry')
|
50
|
+
CustomerMasterKeySpec = Shapes::StringShape.new(name: 'CustomerMasterKeySpec')
|
51
|
+
DataKeyPairSpec = Shapes::StringShape.new(name: 'DataKeyPairSpec')
|
50
52
|
DataKeySpec = Shapes::StringShape.new(name: 'DataKeySpec')
|
51
53
|
DateType = Shapes::TimestampShape.new(name: 'DateType')
|
52
54
|
DecryptRequest = Shapes::StructureShape.new(name: 'DecryptRequest')
|
@@ -70,12 +72,18 @@ module Aws::KMS
|
|
70
72
|
EnableKeyRotationRequest = Shapes::StructureShape.new(name: 'EnableKeyRotationRequest')
|
71
73
|
EncryptRequest = Shapes::StructureShape.new(name: 'EncryptRequest')
|
72
74
|
EncryptResponse = Shapes::StructureShape.new(name: 'EncryptResponse')
|
75
|
+
EncryptionAlgorithmSpec = Shapes::StringShape.new(name: 'EncryptionAlgorithmSpec')
|
76
|
+
EncryptionAlgorithmSpecList = Shapes::ListShape.new(name: 'EncryptionAlgorithmSpecList')
|
73
77
|
EncryptionContextKey = Shapes::StringShape.new(name: 'EncryptionContextKey')
|
74
78
|
EncryptionContextType = Shapes::MapShape.new(name: 'EncryptionContextType')
|
75
79
|
EncryptionContextValue = Shapes::StringShape.new(name: 'EncryptionContextValue')
|
76
80
|
ErrorMessageType = Shapes::StringShape.new(name: 'ErrorMessageType')
|
77
81
|
ExpirationModelType = Shapes::StringShape.new(name: 'ExpirationModelType')
|
78
82
|
ExpiredImportTokenException = Shapes::StructureShape.new(name: 'ExpiredImportTokenException')
|
83
|
+
GenerateDataKeyPairRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyPairRequest')
|
84
|
+
GenerateDataKeyPairResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyPairResponse')
|
85
|
+
GenerateDataKeyPairWithoutPlaintextRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyPairWithoutPlaintextRequest')
|
86
|
+
GenerateDataKeyPairWithoutPlaintextResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyPairWithoutPlaintextResponse')
|
79
87
|
GenerateDataKeyRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyRequest')
|
80
88
|
GenerateDataKeyResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyResponse')
|
81
89
|
GenerateDataKeyWithoutPlaintextRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyWithoutPlaintextRequest')
|
@@ -88,6 +96,8 @@ module Aws::KMS
|
|
88
96
|
GetKeyRotationStatusResponse = Shapes::StructureShape.new(name: 'GetKeyRotationStatusResponse')
|
89
97
|
GetParametersForImportRequest = Shapes::StructureShape.new(name: 'GetParametersForImportRequest')
|
90
98
|
GetParametersForImportResponse = Shapes::StructureShape.new(name: 'GetParametersForImportResponse')
|
99
|
+
GetPublicKeyRequest = Shapes::StructureShape.new(name: 'GetPublicKeyRequest')
|
100
|
+
GetPublicKeyResponse = Shapes::StructureShape.new(name: 'GetPublicKeyResponse')
|
91
101
|
GrantConstraints = Shapes::StructureShape.new(name: 'GrantConstraints')
|
92
102
|
GrantIdType = Shapes::StringShape.new(name: 'GrantIdType')
|
93
103
|
GrantList = Shapes::ListShape.new(name: 'GrantList')
|
@@ -99,6 +109,7 @@ module Aws::KMS
|
|
99
109
|
GrantTokenType = Shapes::StringShape.new(name: 'GrantTokenType')
|
100
110
|
ImportKeyMaterialRequest = Shapes::StructureShape.new(name: 'ImportKeyMaterialRequest')
|
101
111
|
ImportKeyMaterialResponse = Shapes::StructureShape.new(name: 'ImportKeyMaterialResponse')
|
112
|
+
IncorrectKeyException = Shapes::StructureShape.new(name: 'IncorrectKeyException')
|
102
113
|
IncorrectKeyMaterialException = Shapes::StructureShape.new(name: 'IncorrectKeyMaterialException')
|
103
114
|
IncorrectTrustAnchorException = Shapes::StructureShape.new(name: 'IncorrectTrustAnchorException')
|
104
115
|
InvalidAliasNameException = Shapes::StructureShape.new(name: 'InvalidAliasNameException')
|
@@ -110,6 +121,7 @@ module Aws::KMS
|
|
110
121
|
InvalidKeyUsageException = Shapes::StructureShape.new(name: 'InvalidKeyUsageException')
|
111
122
|
InvalidMarkerException = Shapes::StructureShape.new(name: 'InvalidMarkerException')
|
112
123
|
KMSInternalException = Shapes::StructureShape.new(name: 'KMSInternalException')
|
124
|
+
KMSInvalidSignatureException = Shapes::StructureShape.new(name: 'KMSInvalidSignatureException')
|
113
125
|
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
|
114
126
|
KeyIdType = Shapes::StringShape.new(name: 'KeyIdType')
|
115
127
|
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
@@ -135,6 +147,7 @@ module Aws::KMS
|
|
135
147
|
ListRetirableGrantsRequest = Shapes::StructureShape.new(name: 'ListRetirableGrantsRequest')
|
136
148
|
MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
|
137
149
|
MarkerType = Shapes::StringShape.new(name: 'MarkerType')
|
150
|
+
MessageType = Shapes::StringShape.new(name: 'MessageType')
|
138
151
|
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
139
152
|
NumberOfBytesType = Shapes::IntegerShape.new(name: 'NumberOfBytesType')
|
140
153
|
OriginType = Shapes::StringShape.new(name: 'OriginType')
|
@@ -144,6 +157,7 @@ module Aws::KMS
|
|
144
157
|
PolicyNameType = Shapes::StringShape.new(name: 'PolicyNameType')
|
145
158
|
PolicyType = Shapes::StringShape.new(name: 'PolicyType')
|
146
159
|
PrincipalIdType = Shapes::StringShape.new(name: 'PrincipalIdType')
|
160
|
+
PublicKeyType = Shapes::BlobShape.new(name: 'PublicKeyType')
|
147
161
|
PutKeyPolicyRequest = Shapes::StructureShape.new(name: 'PutKeyPolicyRequest')
|
148
162
|
ReEncryptRequest = Shapes::StructureShape.new(name: 'ReEncryptRequest')
|
149
163
|
ReEncryptResponse = Shapes::StructureShape.new(name: 'ReEncryptResponse')
|
@@ -151,6 +165,10 @@ module Aws::KMS
|
|
151
165
|
RevokeGrantRequest = Shapes::StructureShape.new(name: 'RevokeGrantRequest')
|
152
166
|
ScheduleKeyDeletionRequest = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionRequest')
|
153
167
|
ScheduleKeyDeletionResponse = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionResponse')
|
168
|
+
SignRequest = Shapes::StructureShape.new(name: 'SignRequest')
|
169
|
+
SignResponse = Shapes::StructureShape.new(name: 'SignResponse')
|
170
|
+
SigningAlgorithmSpec = Shapes::StringShape.new(name: 'SigningAlgorithmSpec')
|
171
|
+
SigningAlgorithmSpecList = Shapes::ListShape.new(name: 'SigningAlgorithmSpecList')
|
154
172
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
155
173
|
TagException = Shapes::StructureShape.new(name: 'TagException')
|
156
174
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
@@ -165,6 +183,8 @@ module Aws::KMS
|
|
165
183
|
UpdateCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'UpdateCustomKeyStoreRequest')
|
166
184
|
UpdateCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'UpdateCustomKeyStoreResponse')
|
167
185
|
UpdateKeyDescriptionRequest = Shapes::StructureShape.new(name: 'UpdateKeyDescriptionRequest')
|
186
|
+
VerifyRequest = Shapes::StructureShape.new(name: 'VerifyRequest')
|
187
|
+
VerifyResponse = Shapes::StructureShape.new(name: 'VerifyResponse')
|
168
188
|
WrappingKeySpec = Shapes::StringShape.new(name: 'WrappingKeySpec')
|
169
189
|
|
170
190
|
AliasList.member = Shapes::ShapeRef.new(shape: AliasListEntry)
|
@@ -232,6 +252,7 @@ module Aws::KMS
|
|
232
252
|
CreateKeyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
|
233
253
|
CreateKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
|
234
254
|
CreateKeyRequest.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
255
|
+
CreateKeyRequest.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, location_name: "CustomerMasterKeySpec"))
|
235
256
|
CreateKeyRequest.add_member(:origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "Origin"))
|
236
257
|
CreateKeyRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
|
237
258
|
CreateKeyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
|
@@ -267,10 +288,13 @@ module Aws::KMS
|
|
267
288
|
DecryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "CiphertextBlob"))
|
268
289
|
DecryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
269
290
|
DecryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
291
|
+
DecryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
292
|
+
DecryptRequest.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
270
293
|
DecryptRequest.struct_class = Types::DecryptRequest
|
271
294
|
|
272
295
|
DecryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
273
296
|
DecryptResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
297
|
+
DecryptResponse.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
274
298
|
DecryptResponse.struct_class = Types::DecryptResponse
|
275
299
|
|
276
300
|
DeleteAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
|
@@ -329,18 +353,47 @@ module Aws::KMS
|
|
329
353
|
EncryptRequest.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Plaintext"))
|
330
354
|
EncryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
331
355
|
EncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
356
|
+
EncryptRequest.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
332
357
|
EncryptRequest.struct_class = Types::EncryptRequest
|
333
358
|
|
334
359
|
EncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
335
360
|
EncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
361
|
+
EncryptResponse.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
336
362
|
EncryptResponse.struct_class = Types::EncryptResponse
|
337
363
|
|
364
|
+
EncryptionAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec)
|
365
|
+
|
338
366
|
EncryptionContextType.key = Shapes::ShapeRef.new(shape: EncryptionContextKey)
|
339
367
|
EncryptionContextType.value = Shapes::ShapeRef.new(shape: EncryptionContextValue)
|
340
368
|
|
341
369
|
ExpiredImportTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
342
370
|
ExpiredImportTokenException.struct_class = Types::ExpiredImportTokenException
|
343
371
|
|
372
|
+
GenerateDataKeyPairRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
373
|
+
GenerateDataKeyPairRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
374
|
+
GenerateDataKeyPairRequest.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, required: true, location_name: "KeyPairSpec"))
|
375
|
+
GenerateDataKeyPairRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
376
|
+
GenerateDataKeyPairRequest.struct_class = Types::GenerateDataKeyPairRequest
|
377
|
+
|
378
|
+
GenerateDataKeyPairResponse.add_member(:private_key_ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "PrivateKeyCiphertextBlob"))
|
379
|
+
GenerateDataKeyPairResponse.add_member(:private_key_plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "PrivateKeyPlaintext"))
|
380
|
+
GenerateDataKeyPairResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
381
|
+
GenerateDataKeyPairResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
382
|
+
GenerateDataKeyPairResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
383
|
+
GenerateDataKeyPairResponse.struct_class = Types::GenerateDataKeyPairResponse
|
384
|
+
|
385
|
+
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
386
|
+
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
387
|
+
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, required: true, location_name: "KeyPairSpec"))
|
388
|
+
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
389
|
+
GenerateDataKeyPairWithoutPlaintextRequest.struct_class = Types::GenerateDataKeyPairWithoutPlaintextRequest
|
390
|
+
|
391
|
+
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:private_key_ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "PrivateKeyCiphertextBlob"))
|
392
|
+
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
393
|
+
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
394
|
+
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
395
|
+
GenerateDataKeyPairWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyPairWithoutPlaintextResponse
|
396
|
+
|
344
397
|
GenerateDataKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
345
398
|
GenerateDataKeyRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
346
399
|
GenerateDataKeyRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
@@ -395,6 +448,18 @@ module Aws::KMS
|
|
395
448
|
GetParametersForImportResponse.add_member(:parameters_valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ParametersValidTo"))
|
396
449
|
GetParametersForImportResponse.struct_class = Types::GetParametersForImportResponse
|
397
450
|
|
451
|
+
GetPublicKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
452
|
+
GetPublicKeyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
453
|
+
GetPublicKeyRequest.struct_class = Types::GetPublicKeyRequest
|
454
|
+
|
455
|
+
GetPublicKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
456
|
+
GetPublicKeyResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
457
|
+
GetPublicKeyResponse.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, location_name: "CustomerMasterKeySpec"))
|
458
|
+
GetPublicKeyResponse.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
459
|
+
GetPublicKeyResponse.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
|
460
|
+
GetPublicKeyResponse.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
|
461
|
+
GetPublicKeyResponse.struct_class = Types::GetPublicKeyResponse
|
462
|
+
|
398
463
|
GrantConstraints.add_member(:encryption_context_subset, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextSubset"))
|
399
464
|
GrantConstraints.add_member(:encryption_context_equals, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextEquals"))
|
400
465
|
GrantConstraints.struct_class = Types::GrantConstraints
|
@@ -425,6 +490,9 @@ module Aws::KMS
|
|
425
490
|
|
426
491
|
ImportKeyMaterialResponse.struct_class = Types::ImportKeyMaterialResponse
|
427
492
|
|
493
|
+
IncorrectKeyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
494
|
+
IncorrectKeyException.struct_class = Types::IncorrectKeyException
|
495
|
+
|
428
496
|
IncorrectKeyMaterialException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
429
497
|
IncorrectKeyMaterialException.struct_class = Types::IncorrectKeyMaterialException
|
430
498
|
|
@@ -458,6 +526,9 @@ module Aws::KMS
|
|
458
526
|
KMSInternalException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
459
527
|
KMSInternalException.struct_class = Types::KMSInternalException
|
460
528
|
|
529
|
+
KMSInvalidSignatureException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
530
|
+
KMSInvalidSignatureException.struct_class = Types::KMSInvalidSignatureException
|
531
|
+
|
461
532
|
KMSInvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
462
533
|
KMSInvalidStateException.struct_class = Types::KMSInvalidStateException
|
463
534
|
|
@@ -482,6 +553,9 @@ module Aws::KMS
|
|
482
553
|
KeyMetadata.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, location_name: "CloudHsmClusterId"))
|
483
554
|
KeyMetadata.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
484
555
|
KeyMetadata.add_member(:key_manager, Shapes::ShapeRef.new(shape: KeyManagerType, location_name: "KeyManager"))
|
556
|
+
KeyMetadata.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, location_name: "CustomerMasterKeySpec"))
|
557
|
+
KeyMetadata.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
|
558
|
+
KeyMetadata.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
|
485
559
|
KeyMetadata.struct_class = Types::KeyMetadata
|
486
560
|
|
487
561
|
KeyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
@@ -560,14 +634,19 @@ module Aws::KMS
|
|
560
634
|
|
561
635
|
ReEncryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "CiphertextBlob"))
|
562
636
|
ReEncryptRequest.add_member(:source_encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "SourceEncryptionContext"))
|
637
|
+
ReEncryptRequest.add_member(:source_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "SourceKeyId"))
|
563
638
|
ReEncryptRequest.add_member(:destination_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "DestinationKeyId"))
|
564
639
|
ReEncryptRequest.add_member(:destination_encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "DestinationEncryptionContext"))
|
640
|
+
ReEncryptRequest.add_member(:source_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "SourceEncryptionAlgorithm"))
|
641
|
+
ReEncryptRequest.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
565
642
|
ReEncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
566
643
|
ReEncryptRequest.struct_class = Types::ReEncryptRequest
|
567
644
|
|
568
645
|
ReEncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
569
646
|
ReEncryptResponse.add_member(:source_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "SourceKeyId"))
|
570
647
|
ReEncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
648
|
+
ReEncryptResponse.add_member(:source_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "SourceEncryptionAlgorithm"))
|
649
|
+
ReEncryptResponse.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
571
650
|
ReEncryptResponse.struct_class = Types::ReEncryptResponse
|
572
651
|
|
573
652
|
RetireGrantRequest.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
@@ -587,6 +666,20 @@ module Aws::KMS
|
|
587
666
|
ScheduleKeyDeletionResponse.add_member(:deletion_date, Shapes::ShapeRef.new(shape: DateType, location_name: "DeletionDate"))
|
588
667
|
ScheduleKeyDeletionResponse.struct_class = Types::ScheduleKeyDeletionResponse
|
589
668
|
|
669
|
+
SignRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
670
|
+
SignRequest.add_member(:message, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Message"))
|
671
|
+
SignRequest.add_member(:message_type, Shapes::ShapeRef.new(shape: MessageType, location_name: "MessageType"))
|
672
|
+
SignRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
673
|
+
SignRequest.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, required: true, location_name: "SigningAlgorithm"))
|
674
|
+
SignRequest.struct_class = Types::SignRequest
|
675
|
+
|
676
|
+
SignResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
677
|
+
SignResponse.add_member(:signature, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "Signature"))
|
678
|
+
SignResponse.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, location_name: "SigningAlgorithm"))
|
679
|
+
SignResponse.struct_class = Types::SignResponse
|
680
|
+
|
681
|
+
SigningAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: SigningAlgorithmSpec)
|
682
|
+
|
590
683
|
Tag.add_member(:tag_key, Shapes::ShapeRef.new(shape: TagKeyType, required: true, location_name: "TagKey"))
|
591
684
|
Tag.add_member(:tag_value, Shapes::ShapeRef.new(shape: TagValueType, required: true, location_name: "TagValue"))
|
592
685
|
Tag.struct_class = Types::Tag
|
@@ -625,6 +718,19 @@ module Aws::KMS
|
|
625
718
|
UpdateKeyDescriptionRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, required: true, location_name: "Description"))
|
626
719
|
UpdateKeyDescriptionRequest.struct_class = Types::UpdateKeyDescriptionRequest
|
627
720
|
|
721
|
+
VerifyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
722
|
+
VerifyRequest.add_member(:message, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Message"))
|
723
|
+
VerifyRequest.add_member(:message_type, Shapes::ShapeRef.new(shape: MessageType, location_name: "MessageType"))
|
724
|
+
VerifyRequest.add_member(:signature, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "Signature"))
|
725
|
+
VerifyRequest.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, required: true, location_name: "SigningAlgorithm"))
|
726
|
+
VerifyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
727
|
+
VerifyRequest.struct_class = Types::VerifyRequest
|
728
|
+
|
729
|
+
VerifyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
730
|
+
VerifyResponse.add_member(:signature_valid, Shapes::ShapeRef.new(shape: BooleanType, location_name: "SignatureValid"))
|
731
|
+
VerifyResponse.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, location_name: "SigningAlgorithm"))
|
732
|
+
VerifyResponse.struct_class = Types::VerifyResponse
|
733
|
+
|
628
734
|
|
629
735
|
# @api private
|
630
736
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -744,6 +850,8 @@ module Aws::KMS
|
|
744
850
|
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
745
851
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
|
746
852
|
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
853
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectKeyException)
|
854
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
747
855
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
748
856
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
749
857
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
@@ -910,6 +1018,38 @@ module Aws::KMS
|
|
910
1018
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
911
1019
|
end)
|
912
1020
|
|
1021
|
+
api.add_operation(:generate_data_key_pair, Seahorse::Model::Operation.new.tap do |o|
|
1022
|
+
o.name = "GenerateDataKeyPair"
|
1023
|
+
o.http_method = "POST"
|
1024
|
+
o.http_request_uri = "/"
|
1025
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateDataKeyPairRequest)
|
1026
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateDataKeyPairResponse)
|
1027
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1028
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
1029
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
1030
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1031
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
1032
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1033
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1034
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1035
|
+
end)
|
1036
|
+
|
1037
|
+
api.add_operation(:generate_data_key_pair_without_plaintext, Seahorse::Model::Operation.new.tap do |o|
|
1038
|
+
o.name = "GenerateDataKeyPairWithoutPlaintext"
|
1039
|
+
o.http_method = "POST"
|
1040
|
+
o.http_request_uri = "/"
|
1041
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateDataKeyPairWithoutPlaintextRequest)
|
1042
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateDataKeyPairWithoutPlaintextResponse)
|
1043
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1044
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
1045
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
1046
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1047
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
1048
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1049
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1050
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1051
|
+
end)
|
1052
|
+
|
913
1053
|
api.add_operation(:generate_data_key_without_plaintext, Seahorse::Model::Operation.new.tap do |o|
|
914
1054
|
o.name = "GenerateDataKeyWithoutPlaintext"
|
915
1055
|
o.http_method = "POST"
|
@@ -979,6 +1119,24 @@ module Aws::KMS
|
|
979
1119
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
980
1120
|
end)
|
981
1121
|
|
1122
|
+
api.add_operation(:get_public_key, Seahorse::Model::Operation.new.tap do |o|
|
1123
|
+
o.name = "GetPublicKey"
|
1124
|
+
o.http_method = "POST"
|
1125
|
+
o.http_request_uri = "/"
|
1126
|
+
o.input = Shapes::ShapeRef.new(shape: GetPublicKeyRequest)
|
1127
|
+
o.output = Shapes::ShapeRef.new(shape: GetPublicKeyResponse)
|
1128
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1129
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
1130
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
1131
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1132
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1133
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
1134
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1135
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
1136
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1137
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1138
|
+
end)
|
1139
|
+
|
982
1140
|
api.add_operation(:import_key_material, Seahorse::Model::Operation.new.tap do |o|
|
983
1141
|
o.name = "ImportKeyMaterial"
|
984
1142
|
o.http_method = "POST"
|
@@ -1127,6 +1285,7 @@ module Aws::KMS
|
|
1127
1285
|
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
1128
1286
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
|
1129
1287
|
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
1288
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectKeyException)
|
1130
1289
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1131
1290
|
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
1132
1291
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
@@ -1176,6 +1335,22 @@ module Aws::KMS
|
|
1176
1335
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1177
1336
|
end)
|
1178
1337
|
|
1338
|
+
api.add_operation(:sign, Seahorse::Model::Operation.new.tap do |o|
|
1339
|
+
o.name = "Sign"
|
1340
|
+
o.http_method = "POST"
|
1341
|
+
o.http_request_uri = "/"
|
1342
|
+
o.input = Shapes::ShapeRef.new(shape: SignRequest)
|
1343
|
+
o.output = Shapes::ShapeRef.new(shape: SignResponse)
|
1344
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1345
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
1346
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
1347
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1348
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
1349
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1350
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1351
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1352
|
+
end)
|
1353
|
+
|
1179
1354
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1180
1355
|
o.name = "TagResource"
|
1181
1356
|
o.http_method = "POST"
|
@@ -1222,6 +1397,7 @@ module Aws::KMS
|
|
1222
1397
|
o.input = Shapes::ShapeRef.new(shape: UpdateCustomKeyStoreRequest)
|
1223
1398
|
o.output = Shapes::ShapeRef.new(shape: UpdateCustomKeyStoreResponse)
|
1224
1399
|
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
|
1400
|
+
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNameInUseException)
|
1225
1401
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotFoundException)
|
1226
1402
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotRelatedException)
|
1227
1403
|
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
|
@@ -1242,6 +1418,23 @@ module Aws::KMS
|
|
1242
1418
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1243
1419
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1244
1420
|
end)
|
1421
|
+
|
1422
|
+
api.add_operation(:verify, Seahorse::Model::Operation.new.tap do |o|
|
1423
|
+
o.name = "Verify"
|
1424
|
+
o.http_method = "POST"
|
1425
|
+
o.http_request_uri = "/"
|
1426
|
+
o.input = Shapes::ShapeRef.new(shape: VerifyRequest)
|
1427
|
+
o.output = Shapes::ShapeRef.new(shape: VerifyResponse)
|
1428
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1429
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
1430
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
1431
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1432
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
1433
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1434
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1435
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1436
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidSignatureException)
|
1437
|
+
end)
|
1245
1438
|
end
|
1246
1439
|
|
1247
1440
|
end
|
data/lib/aws-sdk-kms/errors.rb
CHANGED
@@ -6,6 +6,61 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::KMS
|
9
|
+
|
10
|
+
# When KMS returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::KMS::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all KMS errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::KMS::Errors::ServiceError
|
18
|
+
# # rescues all KMS API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {AlreadyExistsException}
|
29
|
+
# * {CloudHsmClusterInUseException}
|
30
|
+
# * {CloudHsmClusterInvalidConfigurationException}
|
31
|
+
# * {CloudHsmClusterNotActiveException}
|
32
|
+
# * {CloudHsmClusterNotFoundException}
|
33
|
+
# * {CloudHsmClusterNotRelatedException}
|
34
|
+
# * {CustomKeyStoreHasCMKsException}
|
35
|
+
# * {CustomKeyStoreInvalidStateException}
|
36
|
+
# * {CustomKeyStoreNameInUseException}
|
37
|
+
# * {CustomKeyStoreNotFoundException}
|
38
|
+
# * {DependencyTimeoutException}
|
39
|
+
# * {DisabledException}
|
40
|
+
# * {ExpiredImportTokenException}
|
41
|
+
# * {IncorrectKeyException}
|
42
|
+
# * {IncorrectKeyMaterialException}
|
43
|
+
# * {IncorrectTrustAnchorException}
|
44
|
+
# * {InvalidAliasNameException}
|
45
|
+
# * {InvalidArnException}
|
46
|
+
# * {InvalidCiphertextException}
|
47
|
+
# * {InvalidGrantIdException}
|
48
|
+
# * {InvalidGrantTokenException}
|
49
|
+
# * {InvalidImportTokenException}
|
50
|
+
# * {InvalidKeyUsageException}
|
51
|
+
# * {InvalidMarkerException}
|
52
|
+
# * {KMSInternalException}
|
53
|
+
# * {KMSInvalidSignatureException}
|
54
|
+
# * {KMSInvalidStateException}
|
55
|
+
# * {KeyUnavailableException}
|
56
|
+
# * {LimitExceededException}
|
57
|
+
# * {MalformedPolicyDocumentException}
|
58
|
+
# * {NotFoundException}
|
59
|
+
# * {TagException}
|
60
|
+
# * {UnsupportedOperationException}
|
61
|
+
#
|
62
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
63
|
+
# if they are not defined above.
|
9
64
|
module Errors
|
10
65
|
|
11
66
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +78,6 @@ module Aws::KMS
|
|
23
78
|
def message
|
24
79
|
@message || @data[:message]
|
25
80
|
end
|
26
|
-
|
27
81
|
end
|
28
82
|
|
29
83
|
class CloudHsmClusterInUseException < ServiceError
|
@@ -39,7 +93,6 @@ module Aws::KMS
|
|
39
93
|
def message
|
40
94
|
@message || @data[:message]
|
41
95
|
end
|
42
|
-
|
43
96
|
end
|
44
97
|
|
45
98
|
class CloudHsmClusterInvalidConfigurationException < ServiceError
|
@@ -55,7 +108,6 @@ module Aws::KMS
|
|
55
108
|
def message
|
56
109
|
@message || @data[:message]
|
57
110
|
end
|
58
|
-
|
59
111
|
end
|
60
112
|
|
61
113
|
class CloudHsmClusterNotActiveException < ServiceError
|
@@ -71,7 +123,6 @@ module Aws::KMS
|
|
71
123
|
def message
|
72
124
|
@message || @data[:message]
|
73
125
|
end
|
74
|
-
|
75
126
|
end
|
76
127
|
|
77
128
|
class CloudHsmClusterNotFoundException < ServiceError
|
@@ -87,7 +138,6 @@ module Aws::KMS
|
|
87
138
|
def message
|
88
139
|
@message || @data[:message]
|
89
140
|
end
|
90
|
-
|
91
141
|
end
|
92
142
|
|
93
143
|
class CloudHsmClusterNotRelatedException < ServiceError
|
@@ -103,7 +153,6 @@ module Aws::KMS
|
|
103
153
|
def message
|
104
154
|
@message || @data[:message]
|
105
155
|
end
|
106
|
-
|
107
156
|
end
|
108
157
|
|
109
158
|
class CustomKeyStoreHasCMKsException < ServiceError
|
@@ -119,7 +168,6 @@ module Aws::KMS
|
|
119
168
|
def message
|
120
169
|
@message || @data[:message]
|
121
170
|
end
|
122
|
-
|
123
171
|
end
|
124
172
|
|
125
173
|
class CustomKeyStoreInvalidStateException < ServiceError
|
@@ -135,7 +183,6 @@ module Aws::KMS
|
|
135
183
|
def message
|
136
184
|
@message || @data[:message]
|
137
185
|
end
|
138
|
-
|
139
186
|
end
|
140
187
|
|
141
188
|
class CustomKeyStoreNameInUseException < ServiceError
|
@@ -151,7 +198,6 @@ module Aws::KMS
|
|
151
198
|
def message
|
152
199
|
@message || @data[:message]
|
153
200
|
end
|
154
|
-
|
155
201
|
end
|
156
202
|
|
157
203
|
class CustomKeyStoreNotFoundException < ServiceError
|
@@ -167,7 +213,6 @@ module Aws::KMS
|
|
167
213
|
def message
|
168
214
|
@message || @data[:message]
|
169
215
|
end
|
170
|
-
|
171
216
|
end
|
172
217
|
|
173
218
|
class DependencyTimeoutException < ServiceError
|
@@ -183,7 +228,6 @@ module Aws::KMS
|
|
183
228
|
def message
|
184
229
|
@message || @data[:message]
|
185
230
|
end
|
186
|
-
|
187
231
|
end
|
188
232
|
|
189
233
|
class DisabledException < ServiceError
|
@@ -199,7 +243,6 @@ module Aws::KMS
|
|
199
243
|
def message
|
200
244
|
@message || @data[:message]
|
201
245
|
end
|
202
|
-
|
203
246
|
end
|
204
247
|
|
205
248
|
class ExpiredImportTokenException < ServiceError
|
@@ -215,7 +258,21 @@ module Aws::KMS
|
|
215
258
|
def message
|
216
259
|
@message || @data[:message]
|
217
260
|
end
|
261
|
+
end
|
218
262
|
|
263
|
+
class IncorrectKeyException < ServiceError
|
264
|
+
|
265
|
+
# @param [Seahorse::Client::RequestContext] context
|
266
|
+
# @param [String] message
|
267
|
+
# @param [Aws::KMS::Types::IncorrectKeyException] data
|
268
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
269
|
+
super(context, message, data)
|
270
|
+
end
|
271
|
+
|
272
|
+
# @return [String]
|
273
|
+
def message
|
274
|
+
@message || @data[:message]
|
275
|
+
end
|
219
276
|
end
|
220
277
|
|
221
278
|
class IncorrectKeyMaterialException < ServiceError
|
@@ -231,7 +288,6 @@ module Aws::KMS
|
|
231
288
|
def message
|
232
289
|
@message || @data[:message]
|
233
290
|
end
|
234
|
-
|
235
291
|
end
|
236
292
|
|
237
293
|
class IncorrectTrustAnchorException < ServiceError
|
@@ -247,7 +303,6 @@ module Aws::KMS
|
|
247
303
|
def message
|
248
304
|
@message || @data[:message]
|
249
305
|
end
|
250
|
-
|
251
306
|
end
|
252
307
|
|
253
308
|
class InvalidAliasNameException < ServiceError
|
@@ -263,7 +318,6 @@ module Aws::KMS
|
|
263
318
|
def message
|
264
319
|
@message || @data[:message]
|
265
320
|
end
|
266
|
-
|
267
321
|
end
|
268
322
|
|
269
323
|
class InvalidArnException < ServiceError
|
@@ -279,7 +333,6 @@ module Aws::KMS
|
|
279
333
|
def message
|
280
334
|
@message || @data[:message]
|
281
335
|
end
|
282
|
-
|
283
336
|
end
|
284
337
|
|
285
338
|
class InvalidCiphertextException < ServiceError
|
@@ -295,7 +348,6 @@ module Aws::KMS
|
|
295
348
|
def message
|
296
349
|
@message || @data[:message]
|
297
350
|
end
|
298
|
-
|
299
351
|
end
|
300
352
|
|
301
353
|
class InvalidGrantIdException < ServiceError
|
@@ -311,7 +363,6 @@ module Aws::KMS
|
|
311
363
|
def message
|
312
364
|
@message || @data[:message]
|
313
365
|
end
|
314
|
-
|
315
366
|
end
|
316
367
|
|
317
368
|
class InvalidGrantTokenException < ServiceError
|
@@ -327,7 +378,6 @@ module Aws::KMS
|
|
327
378
|
def message
|
328
379
|
@message || @data[:message]
|
329
380
|
end
|
330
|
-
|
331
381
|
end
|
332
382
|
|
333
383
|
class InvalidImportTokenException < ServiceError
|
@@ -343,7 +393,6 @@ module Aws::KMS
|
|
343
393
|
def message
|
344
394
|
@message || @data[:message]
|
345
395
|
end
|
346
|
-
|
347
396
|
end
|
348
397
|
|
349
398
|
class InvalidKeyUsageException < ServiceError
|
@@ -359,7 +408,6 @@ module Aws::KMS
|
|
359
408
|
def message
|
360
409
|
@message || @data[:message]
|
361
410
|
end
|
362
|
-
|
363
411
|
end
|
364
412
|
|
365
413
|
class InvalidMarkerException < ServiceError
|
@@ -375,7 +423,6 @@ module Aws::KMS
|
|
375
423
|
def message
|
376
424
|
@message || @data[:message]
|
377
425
|
end
|
378
|
-
|
379
426
|
end
|
380
427
|
|
381
428
|
class KMSInternalException < ServiceError
|
@@ -391,7 +438,21 @@ module Aws::KMS
|
|
391
438
|
def message
|
392
439
|
@message || @data[:message]
|
393
440
|
end
|
441
|
+
end
|
394
442
|
|
443
|
+
class KMSInvalidSignatureException < ServiceError
|
444
|
+
|
445
|
+
# @param [Seahorse::Client::RequestContext] context
|
446
|
+
# @param [String] message
|
447
|
+
# @param [Aws::KMS::Types::KMSInvalidSignatureException] data
|
448
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
449
|
+
super(context, message, data)
|
450
|
+
end
|
451
|
+
|
452
|
+
# @return [String]
|
453
|
+
def message
|
454
|
+
@message || @data[:message]
|
455
|
+
end
|
395
456
|
end
|
396
457
|
|
397
458
|
class KMSInvalidStateException < ServiceError
|
@@ -407,7 +468,6 @@ module Aws::KMS
|
|
407
468
|
def message
|
408
469
|
@message || @data[:message]
|
409
470
|
end
|
410
|
-
|
411
471
|
end
|
412
472
|
|
413
473
|
class KeyUnavailableException < ServiceError
|
@@ -423,7 +483,6 @@ module Aws::KMS
|
|
423
483
|
def message
|
424
484
|
@message || @data[:message]
|
425
485
|
end
|
426
|
-
|
427
486
|
end
|
428
487
|
|
429
488
|
class LimitExceededException < ServiceError
|
@@ -439,7 +498,6 @@ module Aws::KMS
|
|
439
498
|
def message
|
440
499
|
@message || @data[:message]
|
441
500
|
end
|
442
|
-
|
443
501
|
end
|
444
502
|
|
445
503
|
class MalformedPolicyDocumentException < ServiceError
|
@@ -455,7 +513,6 @@ module Aws::KMS
|
|
455
513
|
def message
|
456
514
|
@message || @data[:message]
|
457
515
|
end
|
458
|
-
|
459
516
|
end
|
460
517
|
|
461
518
|
class NotFoundException < ServiceError
|
@@ -471,7 +528,6 @@ module Aws::KMS
|
|
471
528
|
def message
|
472
529
|
@message || @data[:message]
|
473
530
|
end
|
474
|
-
|
475
531
|
end
|
476
532
|
|
477
533
|
class TagException < ServiceError
|
@@ -487,7 +543,6 @@ module Aws::KMS
|
|
487
543
|
def message
|
488
544
|
@message || @data[:message]
|
489
545
|
end
|
490
|
-
|
491
546
|
end
|
492
547
|
|
493
548
|
class UnsupportedOperationException < ServiceError
|
@@ -503,7 +558,6 @@ module Aws::KMS
|
|
503
558
|
def message
|
504
559
|
@message || @data[:message]
|
505
560
|
end
|
506
|
-
|
507
561
|
end
|
508
562
|
|
509
563
|
end
|