aws-sdk-kms 1.101.0 → 1.103.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kms/client.rb +622 -485
- data/lib/aws-sdk-kms/client_api.rb +35 -1
- data/lib/aws-sdk-kms/types.rb +441 -187
- data/lib/aws-sdk-kms.rb +1 -1
- data/sig/client.rbs +24 -4
- data/sig/types.rbs +30 -1
- metadata +4 -4
@@ -22,6 +22,8 @@ module Aws::KMS
|
|
22
22
|
AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
|
23
23
|
ArnType = Shapes::StringShape.new(name: 'ArnType')
|
24
24
|
AttestationDocumentType = Shapes::BlobShape.new(name: 'AttestationDocumentType')
|
25
|
+
BackingKeyIdResponseType = Shapes::StringShape.new(name: 'BackingKeyIdResponseType')
|
26
|
+
BackingKeyIdType = Shapes::StringShape.new(name: 'BackingKeyIdType')
|
25
27
|
BooleanType = Shapes::BooleanShape.new(name: 'BooleanType')
|
26
28
|
CancelKeyDeletionRequest = Shapes::StructureShape.new(name: 'CancelKeyDeletionRequest')
|
27
29
|
CancelKeyDeletionResponse = Shapes::StructureShape.new(name: 'CancelKeyDeletionResponse')
|
@@ -63,6 +65,7 @@ module Aws::KMS
|
|
63
65
|
DeleteCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreRequest')
|
64
66
|
DeleteCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreResponse')
|
65
67
|
DeleteImportedKeyMaterialRequest = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialRequest')
|
68
|
+
DeleteImportedKeyMaterialResponse = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialResponse')
|
66
69
|
DependencyTimeoutException = Shapes::StructureShape.new(name: 'DependencyTimeoutException')
|
67
70
|
DeriveSharedSecretRequest = Shapes::StructureShape.new(name: 'DeriveSharedSecretRequest')
|
68
71
|
DeriveSharedSecretResponse = Shapes::StructureShape.new(name: 'DeriveSharedSecretResponse')
|
@@ -120,6 +123,9 @@ module Aws::KMS
|
|
120
123
|
GrantTokenType = Shapes::StringShape.new(name: 'GrantTokenType')
|
121
124
|
ImportKeyMaterialRequest = Shapes::StructureShape.new(name: 'ImportKeyMaterialRequest')
|
122
125
|
ImportKeyMaterialResponse = Shapes::StructureShape.new(name: 'ImportKeyMaterialResponse')
|
126
|
+
ImportState = Shapes::StringShape.new(name: 'ImportState')
|
127
|
+
ImportType = Shapes::StringShape.new(name: 'ImportType')
|
128
|
+
IncludeKeyMaterial = Shapes::StringShape.new(name: 'IncludeKeyMaterial')
|
123
129
|
IncorrectKeyException = Shapes::StructureShape.new(name: 'IncorrectKeyException')
|
124
130
|
IncorrectKeyMaterialException = Shapes::StructureShape.new(name: 'IncorrectKeyMaterialException')
|
125
131
|
IncorrectTrustAnchorException = Shapes::StructureShape.new(name: 'IncorrectTrustAnchorException')
|
@@ -142,6 +148,8 @@ module Aws::KMS
|
|
142
148
|
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
143
149
|
KeyListEntry = Shapes::StructureShape.new(name: 'KeyListEntry')
|
144
150
|
KeyManagerType = Shapes::StringShape.new(name: 'KeyManagerType')
|
151
|
+
KeyMaterialDescriptionType = Shapes::StringShape.new(name: 'KeyMaterialDescriptionType')
|
152
|
+
KeyMaterialState = Shapes::StringShape.new(name: 'KeyMaterialState')
|
145
153
|
KeyMetadata = Shapes::StructureShape.new(name: 'KeyMetadata')
|
146
154
|
KeySpec = Shapes::StringShape.new(name: 'KeySpec')
|
147
155
|
KeyState = Shapes::StringShape.new(name: 'KeyState')
|
@@ -375,6 +383,7 @@ module Aws::KMS
|
|
375
383
|
DecryptResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
376
384
|
DecryptResponse.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
377
385
|
DecryptResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
386
|
+
DecryptResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
378
387
|
DecryptResponse.struct_class = Types::DecryptResponse
|
379
388
|
|
380
389
|
DeleteAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
|
@@ -386,8 +395,13 @@ module Aws::KMS
|
|
386
395
|
DeleteCustomKeyStoreResponse.struct_class = Types::DeleteCustomKeyStoreResponse
|
387
396
|
|
388
397
|
DeleteImportedKeyMaterialRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
398
|
+
DeleteImportedKeyMaterialRequest.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
389
399
|
DeleteImportedKeyMaterialRequest.struct_class = Types::DeleteImportedKeyMaterialRequest
|
390
400
|
|
401
|
+
DeleteImportedKeyMaterialResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
402
|
+
DeleteImportedKeyMaterialResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdResponseType, location_name: "KeyMaterialId"))
|
403
|
+
DeleteImportedKeyMaterialResponse.struct_class = Types::DeleteImportedKeyMaterialResponse
|
404
|
+
|
391
405
|
DependencyTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
392
406
|
DependencyTimeoutException.struct_class = Types::DependencyTimeoutException
|
393
407
|
|
@@ -459,6 +473,7 @@ module Aws::KMS
|
|
459
473
|
EncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
460
474
|
EncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
461
475
|
EncryptResponse.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
476
|
+
EncryptResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
462
477
|
EncryptResponse.struct_class = Types::EncryptResponse
|
463
478
|
|
464
479
|
EncryptionAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec)
|
@@ -483,6 +498,7 @@ module Aws::KMS
|
|
483
498
|
GenerateDataKeyPairResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
484
499
|
GenerateDataKeyPairResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
485
500
|
GenerateDataKeyPairResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
501
|
+
GenerateDataKeyPairResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
486
502
|
GenerateDataKeyPairResponse.struct_class = Types::GenerateDataKeyPairResponse
|
487
503
|
|
488
504
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
@@ -496,6 +512,7 @@ module Aws::KMS
|
|
496
512
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
497
513
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
498
514
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
515
|
+
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
499
516
|
GenerateDataKeyPairWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyPairWithoutPlaintextResponse
|
500
517
|
|
501
518
|
GenerateDataKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -511,6 +528,7 @@ module Aws::KMS
|
|
511
528
|
GenerateDataKeyResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
512
529
|
GenerateDataKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
513
530
|
GenerateDataKeyResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
531
|
+
GenerateDataKeyResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
514
532
|
GenerateDataKeyResponse.struct_class = Types::GenerateDataKeyResponse
|
515
533
|
|
516
534
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -523,6 +541,7 @@ module Aws::KMS
|
|
523
541
|
|
524
542
|
GenerateDataKeyWithoutPlaintextResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
525
543
|
GenerateDataKeyWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
544
|
+
GenerateDataKeyWithoutPlaintextResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
526
545
|
GenerateDataKeyWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyWithoutPlaintextResponse
|
527
546
|
|
528
547
|
GenerateMacRequest.add_member(:message, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Message"))
|
@@ -615,8 +634,13 @@ module Aws::KMS
|
|
615
634
|
ImportKeyMaterialRequest.add_member(:encrypted_key_material, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "EncryptedKeyMaterial"))
|
616
635
|
ImportKeyMaterialRequest.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
|
617
636
|
ImportKeyMaterialRequest.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
637
|
+
ImportKeyMaterialRequest.add_member(:import_type, Shapes::ShapeRef.new(shape: ImportType, location_name: "ImportType"))
|
638
|
+
ImportKeyMaterialRequest.add_member(:key_material_description, Shapes::ShapeRef.new(shape: KeyMaterialDescriptionType, location_name: "KeyMaterialDescription"))
|
639
|
+
ImportKeyMaterialRequest.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
618
640
|
ImportKeyMaterialRequest.struct_class = Types::ImportKeyMaterialRequest
|
619
641
|
|
642
|
+
ImportKeyMaterialResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
643
|
+
ImportKeyMaterialResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
620
644
|
ImportKeyMaterialResponse.struct_class = Types::ImportKeyMaterialResponse
|
621
645
|
|
622
646
|
IncorrectKeyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
@@ -697,6 +721,7 @@ module Aws::KMS
|
|
697
721
|
KeyMetadata.add_member(:pending_deletion_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingDeletionWindowInDays"))
|
698
722
|
KeyMetadata.add_member(:mac_algorithms, Shapes::ShapeRef.new(shape: MacAlgorithmSpecList, location_name: "MacAlgorithms"))
|
699
723
|
KeyMetadata.add_member(:xks_key_configuration, Shapes::ShapeRef.new(shape: XksKeyConfigurationType, location_name: "XksKeyConfiguration"))
|
724
|
+
KeyMetadata.add_member(:current_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "CurrentKeyMaterialId"))
|
700
725
|
KeyMetadata.struct_class = Types::KeyMetadata
|
701
726
|
|
702
727
|
KeyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
@@ -738,6 +763,7 @@ module Aws::KMS
|
|
738
763
|
ListKeyPoliciesResponse.struct_class = Types::ListKeyPoliciesResponse
|
739
764
|
|
740
765
|
ListKeyRotationsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
766
|
+
ListKeyRotationsRequest.add_member(:include_key_material, Shapes::ShapeRef.new(shape: IncludeKeyMaterial, location_name: "IncludeKeyMaterial"))
|
741
767
|
ListKeyRotationsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
742
768
|
ListKeyRotationsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
743
769
|
ListKeyRotationsRequest.struct_class = Types::ListKeyRotationsRequest
|
@@ -814,6 +840,8 @@ module Aws::KMS
|
|
814
840
|
ReEncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
815
841
|
ReEncryptResponse.add_member(:source_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "SourceEncryptionAlgorithm"))
|
816
842
|
ReEncryptResponse.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
843
|
+
ReEncryptResponse.add_member(:source_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "SourceKeyMaterialId"))
|
844
|
+
ReEncryptResponse.add_member(:destination_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "DestinationKeyMaterialId"))
|
817
845
|
ReEncryptResponse.struct_class = Types::ReEncryptResponse
|
818
846
|
|
819
847
|
RecipientInfo.add_member(:key_encryption_algorithm, Shapes::ShapeRef.new(shape: KeyEncryptionMechanism, location_name: "KeyEncryptionAlgorithm"))
|
@@ -853,6 +881,12 @@ module Aws::KMS
|
|
853
881
|
RotationsList.member = Shapes::ShapeRef.new(shape: RotationsListEntry)
|
854
882
|
|
855
883
|
RotationsListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
884
|
+
RotationsListEntry.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
885
|
+
RotationsListEntry.add_member(:key_material_description, Shapes::ShapeRef.new(shape: KeyMaterialDescriptionType, location_name: "KeyMaterialDescription"))
|
886
|
+
RotationsListEntry.add_member(:import_state, Shapes::ShapeRef.new(shape: ImportState, location_name: "ImportState"))
|
887
|
+
RotationsListEntry.add_member(:key_material_state, Shapes::ShapeRef.new(shape: KeyMaterialState, location_name: "KeyMaterialState"))
|
888
|
+
RotationsListEntry.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
889
|
+
RotationsListEntry.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
|
856
890
|
RotationsListEntry.add_member(:rotation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "RotationDate"))
|
857
891
|
RotationsListEntry.add_member(:rotation_type, Shapes::ShapeRef.new(shape: RotationType, location_name: "RotationType"))
|
858
892
|
RotationsListEntry.struct_class = Types::RotationsListEntry
|
@@ -1179,7 +1213,7 @@ module Aws::KMS
|
|
1179
1213
|
o.http_method = "POST"
|
1180
1214
|
o.http_request_uri = "/"
|
1181
1215
|
o.input = Shapes::ShapeRef.new(shape: DeleteImportedKeyMaterialRequest)
|
1182
|
-
o.output = Shapes::ShapeRef.new(shape:
|
1216
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteImportedKeyMaterialResponse)
|
1183
1217
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
1184
1218
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1185
1219
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|