aws-sdk-kms 1.63.0 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kms/client.rb +1098 -342
- data/lib/aws-sdk-kms/client_api.rb +47 -0
- data/lib/aws-sdk-kms/endpoints.rb +1 -0
- data/lib/aws-sdk-kms/errors.rb +16 -0
- data/lib/aws-sdk-kms/types.rb +621 -70
- data/lib/aws-sdk-kms.rb +1 -1
- metadata +4 -4
@@ -20,6 +20,7 @@ module Aws::KMS
|
|
20
20
|
AliasNameType = Shapes::StringShape.new(name: 'AliasNameType')
|
21
21
|
AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
|
22
22
|
ArnType = Shapes::StringShape.new(name: 'ArnType')
|
23
|
+
AttestationDocumentType = Shapes::BlobShape.new(name: 'AttestationDocumentType')
|
23
24
|
BooleanType = Shapes::BooleanShape.new(name: 'BooleanType')
|
24
25
|
CancelKeyDeletionRequest = Shapes::StructureShape.new(name: 'CancelKeyDeletionRequest')
|
25
26
|
CancelKeyDeletionResponse = Shapes::StructureShape.new(name: 'CancelKeyDeletionResponse')
|
@@ -71,6 +72,7 @@ module Aws::KMS
|
|
71
72
|
DisabledException = Shapes::StructureShape.new(name: 'DisabledException')
|
72
73
|
DisconnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreRequest')
|
73
74
|
DisconnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreResponse')
|
75
|
+
DryRunOperationException = Shapes::StructureShape.new(name: 'DryRunOperationException')
|
74
76
|
EnableKeyRequest = Shapes::StructureShape.new(name: 'EnableKeyRequest')
|
75
77
|
EnableKeyRotationRequest = Shapes::StructureShape.new(name: 'EnableKeyRotationRequest')
|
76
78
|
EncryptRequest = Shapes::StructureShape.new(name: 'EncryptRequest')
|
@@ -129,6 +131,7 @@ module Aws::KMS
|
|
129
131
|
KMSInvalidMacException = Shapes::StructureShape.new(name: 'KMSInvalidMacException')
|
130
132
|
KMSInvalidSignatureException = Shapes::StructureShape.new(name: 'KMSInvalidSignatureException')
|
131
133
|
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
|
134
|
+
KeyEncryptionMechanism = Shapes::StringShape.new(name: 'KeyEncryptionMechanism')
|
132
135
|
KeyIdType = Shapes::StringShape.new(name: 'KeyIdType')
|
133
136
|
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
134
137
|
KeyListEntry = Shapes::StructureShape.new(name: 'KeyListEntry')
|
@@ -175,6 +178,7 @@ module Aws::KMS
|
|
175
178
|
PutKeyPolicyRequest = Shapes::StructureShape.new(name: 'PutKeyPolicyRequest')
|
176
179
|
ReEncryptRequest = Shapes::StructureShape.new(name: 'ReEncryptRequest')
|
177
180
|
ReEncryptResponse = Shapes::StructureShape.new(name: 'ReEncryptResponse')
|
181
|
+
RecipientInfo = Shapes::StructureShape.new(name: 'RecipientInfo')
|
178
182
|
RegionType = Shapes::StringShape.new(name: 'RegionType')
|
179
183
|
ReplicateKeyRequest = Shapes::StructureShape.new(name: 'ReplicateKeyRequest')
|
180
184
|
ReplicateKeyResponse = Shapes::StructureShape.new(name: 'ReplicateKeyResponse')
|
@@ -293,6 +297,7 @@ module Aws::KMS
|
|
293
297
|
CreateGrantRequest.add_member(:constraints, Shapes::ShapeRef.new(shape: GrantConstraints, location_name: "Constraints"))
|
294
298
|
CreateGrantRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
295
299
|
CreateGrantRequest.add_member(:name, Shapes::ShapeRef.new(shape: GrantNameType, location_name: "Name"))
|
300
|
+
CreateGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
296
301
|
CreateGrantRequest.struct_class = Types::CreateGrantRequest
|
297
302
|
|
298
303
|
CreateGrantResponse.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
@@ -345,11 +350,14 @@ module Aws::KMS
|
|
345
350
|
DecryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
346
351
|
DecryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
347
352
|
DecryptRequest.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
353
|
+
DecryptRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
354
|
+
DecryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
348
355
|
DecryptRequest.struct_class = Types::DecryptRequest
|
349
356
|
|
350
357
|
DecryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
351
358
|
DecryptResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
352
359
|
DecryptResponse.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
360
|
+
DecryptResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
353
361
|
DecryptResponse.struct_class = Types::DecryptResponse
|
354
362
|
|
355
363
|
DeleteAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
|
@@ -398,6 +406,9 @@ module Aws::KMS
|
|
398
406
|
|
399
407
|
DisconnectCustomKeyStoreResponse.struct_class = Types::DisconnectCustomKeyStoreResponse
|
400
408
|
|
409
|
+
DryRunOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
410
|
+
DryRunOperationException.struct_class = Types::DryRunOperationException
|
411
|
+
|
401
412
|
EnableKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
402
413
|
EnableKeyRequest.struct_class = Types::EnableKeyRequest
|
403
414
|
|
@@ -409,6 +420,7 @@ module Aws::KMS
|
|
409
420
|
EncryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
410
421
|
EncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
411
422
|
EncryptRequest.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
423
|
+
EncryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
412
424
|
EncryptRequest.struct_class = Types::EncryptRequest
|
413
425
|
|
414
426
|
EncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
@@ -428,6 +440,8 @@ module Aws::KMS
|
|
428
440
|
GenerateDataKeyPairRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
429
441
|
GenerateDataKeyPairRequest.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, required: true, location_name: "KeyPairSpec"))
|
430
442
|
GenerateDataKeyPairRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
443
|
+
GenerateDataKeyPairRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
444
|
+
GenerateDataKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
431
445
|
GenerateDataKeyPairRequest.struct_class = Types::GenerateDataKeyPairRequest
|
432
446
|
|
433
447
|
GenerateDataKeyPairResponse.add_member(:private_key_ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "PrivateKeyCiphertextBlob"))
|
@@ -435,12 +449,14 @@ module Aws::KMS
|
|
435
449
|
GenerateDataKeyPairResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
436
450
|
GenerateDataKeyPairResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
437
451
|
GenerateDataKeyPairResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
452
|
+
GenerateDataKeyPairResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
438
453
|
GenerateDataKeyPairResponse.struct_class = Types::GenerateDataKeyPairResponse
|
439
454
|
|
440
455
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
441
456
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
442
457
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, required: true, location_name: "KeyPairSpec"))
|
443
458
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
459
|
+
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
444
460
|
GenerateDataKeyPairWithoutPlaintextRequest.struct_class = Types::GenerateDataKeyPairWithoutPlaintextRequest
|
445
461
|
|
446
462
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:private_key_ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "PrivateKeyCiphertextBlob"))
|
@@ -454,11 +470,14 @@ module Aws::KMS
|
|
454
470
|
GenerateDataKeyRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
455
471
|
GenerateDataKeyRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: DataKeySpec, location_name: "KeySpec"))
|
456
472
|
GenerateDataKeyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
473
|
+
GenerateDataKeyRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
474
|
+
GenerateDataKeyRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
457
475
|
GenerateDataKeyRequest.struct_class = Types::GenerateDataKeyRequest
|
458
476
|
|
459
477
|
GenerateDataKeyResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
460
478
|
GenerateDataKeyResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
461
479
|
GenerateDataKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
480
|
+
GenerateDataKeyResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
462
481
|
GenerateDataKeyResponse.struct_class = Types::GenerateDataKeyResponse
|
463
482
|
|
464
483
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -466,6 +485,7 @@ module Aws::KMS
|
|
466
485
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: DataKeySpec, location_name: "KeySpec"))
|
467
486
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
468
487
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
488
|
+
GenerateDataKeyWithoutPlaintextRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
469
489
|
GenerateDataKeyWithoutPlaintextRequest.struct_class = Types::GenerateDataKeyWithoutPlaintextRequest
|
470
490
|
|
471
491
|
GenerateDataKeyWithoutPlaintextResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
@@ -476,6 +496,7 @@ module Aws::KMS
|
|
476
496
|
GenerateMacRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
477
497
|
GenerateMacRequest.add_member(:mac_algorithm, Shapes::ShapeRef.new(shape: MacAlgorithmSpec, required: true, location_name: "MacAlgorithm"))
|
478
498
|
GenerateMacRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
499
|
+
GenerateMacRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
479
500
|
GenerateMacRequest.struct_class = Types::GenerateMacRequest
|
480
501
|
|
481
502
|
GenerateMacResponse.add_member(:mac, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "Mac"))
|
@@ -485,9 +506,11 @@ module Aws::KMS
|
|
485
506
|
|
486
507
|
GenerateRandomRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
487
508
|
GenerateRandomRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
|
509
|
+
GenerateRandomRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
488
510
|
GenerateRandomRequest.struct_class = Types::GenerateRandomRequest
|
489
511
|
|
490
512
|
GenerateRandomResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
513
|
+
GenerateRandomResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
491
514
|
GenerateRandomResponse.struct_class = Types::GenerateRandomResponse
|
492
515
|
|
493
516
|
GetKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -731,6 +754,7 @@ module Aws::KMS
|
|
731
754
|
ReEncryptRequest.add_member(:source_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "SourceEncryptionAlgorithm"))
|
732
755
|
ReEncryptRequest.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
733
756
|
ReEncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
757
|
+
ReEncryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
734
758
|
ReEncryptRequest.struct_class = Types::ReEncryptRequest
|
735
759
|
|
736
760
|
ReEncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
@@ -740,6 +764,10 @@ module Aws::KMS
|
|
740
764
|
ReEncryptResponse.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
741
765
|
ReEncryptResponse.struct_class = Types::ReEncryptResponse
|
742
766
|
|
767
|
+
RecipientInfo.add_member(:key_encryption_algorithm, Shapes::ShapeRef.new(shape: KeyEncryptionMechanism, location_name: "KeyEncryptionAlgorithm"))
|
768
|
+
RecipientInfo.add_member(:attestation_document, Shapes::ShapeRef.new(shape: AttestationDocumentType, location_name: "AttestationDocument"))
|
769
|
+
RecipientInfo.struct_class = Types::RecipientInfo
|
770
|
+
|
743
771
|
ReplicateKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
744
772
|
ReplicateKeyRequest.add_member(:replica_region, Shapes::ShapeRef.new(shape: RegionType, required: true, location_name: "ReplicaRegion"))
|
745
773
|
ReplicateKeyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
|
@@ -756,10 +784,12 @@ module Aws::KMS
|
|
756
784
|
RetireGrantRequest.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
757
785
|
RetireGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
758
786
|
RetireGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
|
787
|
+
RetireGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
759
788
|
RetireGrantRequest.struct_class = Types::RetireGrantRequest
|
760
789
|
|
761
790
|
RevokeGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
762
791
|
RevokeGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, required: true, location_name: "GrantId"))
|
792
|
+
RevokeGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
763
793
|
RevokeGrantRequest.struct_class = Types::RevokeGrantRequest
|
764
794
|
|
765
795
|
ScheduleKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -777,6 +807,7 @@ module Aws::KMS
|
|
777
807
|
SignRequest.add_member(:message_type, Shapes::ShapeRef.new(shape: MessageType, location_name: "MessageType"))
|
778
808
|
SignRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
779
809
|
SignRequest.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, required: true, location_name: "SigningAlgorithm"))
|
810
|
+
SignRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
780
811
|
SignRequest.struct_class = Types::SignRequest
|
781
812
|
|
782
813
|
SignResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -838,6 +869,7 @@ module Aws::KMS
|
|
838
869
|
VerifyMacRequest.add_member(:mac_algorithm, Shapes::ShapeRef.new(shape: MacAlgorithmSpec, required: true, location_name: "MacAlgorithm"))
|
839
870
|
VerifyMacRequest.add_member(:mac, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "Mac"))
|
840
871
|
VerifyMacRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
872
|
+
VerifyMacRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
841
873
|
VerifyMacRequest.struct_class = Types::VerifyMacRequest
|
842
874
|
|
843
875
|
VerifyMacResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -851,6 +883,7 @@ module Aws::KMS
|
|
851
883
|
VerifyRequest.add_member(:signature, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "Signature"))
|
852
884
|
VerifyRequest.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, required: true, location_name: "SigningAlgorithm"))
|
853
885
|
VerifyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
886
|
+
VerifyRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
854
887
|
VerifyRequest.struct_class = Types::VerifyRequest
|
855
888
|
|
856
889
|
VerifyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -1007,6 +1040,7 @@ module Aws::KMS
|
|
1007
1040
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1008
1041
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1009
1042
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1043
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1010
1044
|
end)
|
1011
1045
|
|
1012
1046
|
api.add_operation(:create_key, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1046,6 +1080,7 @@ module Aws::KMS
|
|
1046
1080
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1047
1081
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1048
1082
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1083
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1049
1084
|
end)
|
1050
1085
|
|
1051
1086
|
api.add_operation(:delete_alias, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1197,6 +1232,7 @@ module Aws::KMS
|
|
1197
1232
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1198
1233
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1199
1234
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1235
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1200
1236
|
end)
|
1201
1237
|
|
1202
1238
|
api.add_operation(:generate_data_key, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1213,6 +1249,7 @@ module Aws::KMS
|
|
1213
1249
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1214
1250
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1215
1251
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1252
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1216
1253
|
end)
|
1217
1254
|
|
1218
1255
|
api.add_operation(:generate_data_key_pair, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1230,6 +1267,7 @@ module Aws::KMS
|
|
1230
1267
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1231
1268
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1232
1269
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1270
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1233
1271
|
end)
|
1234
1272
|
|
1235
1273
|
api.add_operation(:generate_data_key_pair_without_plaintext, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1247,6 +1285,7 @@ module Aws::KMS
|
|
1247
1285
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1248
1286
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1249
1287
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1288
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1250
1289
|
end)
|
1251
1290
|
|
1252
1291
|
api.add_operation(:generate_data_key_without_plaintext, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1263,6 +1302,7 @@ module Aws::KMS
|
|
1263
1302
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1264
1303
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1265
1304
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1305
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1266
1306
|
end)
|
1267
1307
|
|
1268
1308
|
api.add_operation(:generate_mac, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1278,6 +1318,7 @@ module Aws::KMS
|
|
1278
1318
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1279
1319
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1280
1320
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1321
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1281
1322
|
end)
|
1282
1323
|
|
1283
1324
|
api.add_operation(:generate_random, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1515,6 +1556,7 @@ module Aws::KMS
|
|
1515
1556
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1516
1557
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1517
1558
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1559
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1518
1560
|
end)
|
1519
1561
|
|
1520
1562
|
api.add_operation(:replicate_key, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1548,6 +1590,7 @@ module Aws::KMS
|
|
1548
1590
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1549
1591
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1550
1592
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1593
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1551
1594
|
end)
|
1552
1595
|
|
1553
1596
|
api.add_operation(:revoke_grant, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1562,6 +1605,7 @@ module Aws::KMS
|
|
1562
1605
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantIdException)
|
1563
1606
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1564
1607
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1608
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1565
1609
|
end)
|
1566
1610
|
|
1567
1611
|
api.add_operation(:schedule_key_deletion, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1591,6 +1635,7 @@ module Aws::KMS
|
|
1591
1635
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1592
1636
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1593
1637
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1638
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1594
1639
|
end)
|
1595
1640
|
|
1596
1641
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1700,6 +1745,7 @@ module Aws::KMS
|
|
1700
1745
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1701
1746
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1702
1747
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidSignatureException)
|
1748
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1703
1749
|
end)
|
1704
1750
|
|
1705
1751
|
api.add_operation(:verify_mac, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1716,6 +1762,7 @@ module Aws::KMS
|
|
1716
1762
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1717
1763
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidMacException)
|
1718
1764
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1765
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1719
1766
|
end)
|
1720
1767
|
end
|
1721
1768
|
|
data/lib/aws-sdk-kms/errors.rb
CHANGED
@@ -39,6 +39,7 @@ module Aws::KMS
|
|
39
39
|
# * {CustomKeyStoreNotFoundException}
|
40
40
|
# * {DependencyTimeoutException}
|
41
41
|
# * {DisabledException}
|
42
|
+
# * {DryRunOperationException}
|
42
43
|
# * {ExpiredImportTokenException}
|
43
44
|
# * {IncorrectKeyException}
|
44
45
|
# * {IncorrectKeyMaterialException}
|
@@ -260,6 +261,21 @@ module Aws::KMS
|
|
260
261
|
end
|
261
262
|
end
|
262
263
|
|
264
|
+
class DryRunOperationException < ServiceError
|
265
|
+
|
266
|
+
# @param [Seahorse::Client::RequestContext] context
|
267
|
+
# @param [String] message
|
268
|
+
# @param [Aws::KMS::Types::DryRunOperationException] data
|
269
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
270
|
+
super(context, message, data)
|
271
|
+
end
|
272
|
+
|
273
|
+
# @return [String]
|
274
|
+
def message
|
275
|
+
@message || @data[:message]
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
263
279
|
class ExpiredImportTokenException < ServiceError
|
264
280
|
|
265
281
|
# @param [Seahorse::Client::RequestContext] context
|