aws-sdk-kms 1.76.0 → 1.88.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 +60 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kms/client.rb +771 -119
- data/lib/aws-sdk-kms/client_api.rb +130 -2
- data/lib/aws-sdk-kms/endpoints.rb +42 -0
- data/lib/aws-sdk-kms/errors.rb +16 -0
- data/lib/aws-sdk-kms/plugins/endpoints.rb +7 -0
- data/lib/aws-sdk-kms/types.rb +472 -36
- data/lib/aws-sdk-kms.rb +1 -1
- data/sig/client.rbs +802 -0
- data/sig/errors.rbs +160 -0
- data/sig/resource.rbs +81 -0
- data/sig/types.rbs +1036 -0
- data/sig/waiters.rbs +13 -0
- metadata +15 -10
@@ -31,6 +31,7 @@ module Aws::KMS
|
|
31
31
|
CloudHsmClusterNotActiveException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotActiveException')
|
32
32
|
CloudHsmClusterNotFoundException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotFoundException')
|
33
33
|
CloudHsmClusterNotRelatedException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotRelatedException')
|
34
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
34
35
|
ConnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreRequest')
|
35
36
|
ConnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreResponse')
|
36
37
|
ConnectionErrorCodeType = Shapes::StringShape.new(name: 'ConnectionErrorCodeType')
|
@@ -62,6 +63,8 @@ module Aws::KMS
|
|
62
63
|
DeleteCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreResponse')
|
63
64
|
DeleteImportedKeyMaterialRequest = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialRequest')
|
64
65
|
DependencyTimeoutException = Shapes::StructureShape.new(name: 'DependencyTimeoutException')
|
66
|
+
DeriveSharedSecretRequest = Shapes::StructureShape.new(name: 'DeriveSharedSecretRequest')
|
67
|
+
DeriveSharedSecretResponse = Shapes::StructureShape.new(name: 'DeriveSharedSecretResponse')
|
65
68
|
DescribeCustomKeyStoresRequest = Shapes::StructureShape.new(name: 'DescribeCustomKeyStoresRequest')
|
66
69
|
DescribeCustomKeyStoresResponse = Shapes::StructureShape.new(name: 'DescribeCustomKeyStoresResponse')
|
67
70
|
DescribeKeyRequest = Shapes::StructureShape.new(name: 'DescribeKeyRequest')
|
@@ -131,6 +134,8 @@ module Aws::KMS
|
|
131
134
|
KMSInvalidMacException = Shapes::StructureShape.new(name: 'KMSInvalidMacException')
|
132
135
|
KMSInvalidSignatureException = Shapes::StructureShape.new(name: 'KMSInvalidSignatureException')
|
133
136
|
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
|
137
|
+
KeyAgreementAlgorithmSpec = Shapes::StringShape.new(name: 'KeyAgreementAlgorithmSpec')
|
138
|
+
KeyAgreementAlgorithmSpecList = Shapes::ListShape.new(name: 'KeyAgreementAlgorithmSpecList')
|
134
139
|
KeyEncryptionMechanism = Shapes::StringShape.new(name: 'KeyEncryptionMechanism')
|
135
140
|
KeyIdType = Shapes::StringShape.new(name: 'KeyIdType')
|
136
141
|
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
@@ -150,6 +155,8 @@ module Aws::KMS
|
|
150
155
|
ListGrantsResponse = Shapes::StructureShape.new(name: 'ListGrantsResponse')
|
151
156
|
ListKeyPoliciesRequest = Shapes::StructureShape.new(name: 'ListKeyPoliciesRequest')
|
152
157
|
ListKeyPoliciesResponse = Shapes::StructureShape.new(name: 'ListKeyPoliciesResponse')
|
158
|
+
ListKeyRotationsRequest = Shapes::StructureShape.new(name: 'ListKeyRotationsRequest')
|
159
|
+
ListKeyRotationsResponse = Shapes::StructureShape.new(name: 'ListKeyRotationsResponse')
|
153
160
|
ListKeysRequest = Shapes::StructureShape.new(name: 'ListKeysRequest')
|
154
161
|
ListKeysResponse = Shapes::StructureShape.new(name: 'ListKeysResponse')
|
155
162
|
ListResourceTagsRequest = Shapes::StructureShape.new(name: 'ListResourceTagsRequest')
|
@@ -184,6 +191,12 @@ module Aws::KMS
|
|
184
191
|
ReplicateKeyResponse = Shapes::StructureShape.new(name: 'ReplicateKeyResponse')
|
185
192
|
RetireGrantRequest = Shapes::StructureShape.new(name: 'RetireGrantRequest')
|
186
193
|
RevokeGrantRequest = Shapes::StructureShape.new(name: 'RevokeGrantRequest')
|
194
|
+
RotateKeyOnDemandRequest = Shapes::StructureShape.new(name: 'RotateKeyOnDemandRequest')
|
195
|
+
RotateKeyOnDemandResponse = Shapes::StructureShape.new(name: 'RotateKeyOnDemandResponse')
|
196
|
+
RotationPeriodInDaysType = Shapes::IntegerShape.new(name: 'RotationPeriodInDaysType')
|
197
|
+
RotationType = Shapes::StringShape.new(name: 'RotationType')
|
198
|
+
RotationsList = Shapes::ListShape.new(name: 'RotationsList')
|
199
|
+
RotationsListEntry = Shapes::StructureShape.new(name: 'RotationsListEntry')
|
187
200
|
ScheduleKeyDeletionRequest = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionRequest')
|
188
201
|
ScheduleKeyDeletionResponse = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionResponse')
|
189
202
|
SignRequest = Shapes::StructureShape.new(name: 'SignRequest')
|
@@ -266,6 +279,9 @@ module Aws::KMS
|
|
266
279
|
CloudHsmClusterNotRelatedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
267
280
|
CloudHsmClusterNotRelatedException.struct_class = Types::CloudHsmClusterNotRelatedException
|
268
281
|
|
282
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
283
|
+
ConflictException.struct_class = Types::ConflictException
|
284
|
+
|
269
285
|
ConnectCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
|
270
286
|
ConnectCustomKeyStoreRequest.struct_class = Types::ConnectCustomKeyStoreRequest
|
271
287
|
|
@@ -374,6 +390,21 @@ module Aws::KMS
|
|
374
390
|
DependencyTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
375
391
|
DependencyTimeoutException.struct_class = Types::DependencyTimeoutException
|
376
392
|
|
393
|
+
DeriveSharedSecretRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
394
|
+
DeriveSharedSecretRequest.add_member(:key_agreement_algorithm, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec, required: true, location_name: "KeyAgreementAlgorithm"))
|
395
|
+
DeriveSharedSecretRequest.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, required: true, location_name: "PublicKey"))
|
396
|
+
DeriveSharedSecretRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
397
|
+
DeriveSharedSecretRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
398
|
+
DeriveSharedSecretRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
399
|
+
DeriveSharedSecretRequest.struct_class = Types::DeriveSharedSecretRequest
|
400
|
+
|
401
|
+
DeriveSharedSecretResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
402
|
+
DeriveSharedSecretResponse.add_member(:shared_secret, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "SharedSecret"))
|
403
|
+
DeriveSharedSecretResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
404
|
+
DeriveSharedSecretResponse.add_member(:key_agreement_algorithm, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec, location_name: "KeyAgreementAlgorithm"))
|
405
|
+
DeriveSharedSecretResponse.add_member(:key_origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "KeyOrigin"))
|
406
|
+
DeriveSharedSecretResponse.struct_class = Types::DeriveSharedSecretResponse
|
407
|
+
|
377
408
|
DescribeCustomKeyStoresRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
|
378
409
|
DescribeCustomKeyStoresRequest.add_member(:custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, location_name: "CustomKeyStoreName"))
|
379
410
|
DescribeCustomKeyStoresRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
@@ -413,6 +444,7 @@ module Aws::KMS
|
|
413
444
|
EnableKeyRequest.struct_class = Types::EnableKeyRequest
|
414
445
|
|
415
446
|
EnableKeyRotationRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
447
|
+
EnableKeyRotationRequest.add_member(:rotation_period_in_days, Shapes::ShapeRef.new(shape: RotationPeriodInDaysType, location_name: "RotationPeriodInDays"))
|
416
448
|
EnableKeyRotationRequest.struct_class = Types::EnableKeyRotationRequest
|
417
449
|
|
418
450
|
EncryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -514,16 +546,21 @@ module Aws::KMS
|
|
514
546
|
GenerateRandomResponse.struct_class = Types::GenerateRandomResponse
|
515
547
|
|
516
548
|
GetKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
517
|
-
GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType,
|
549
|
+
GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
|
518
550
|
GetKeyPolicyRequest.struct_class = Types::GetKeyPolicyRequest
|
519
551
|
|
520
552
|
GetKeyPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
|
553
|
+
GetKeyPolicyResponse.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
|
521
554
|
GetKeyPolicyResponse.struct_class = Types::GetKeyPolicyResponse
|
522
555
|
|
523
556
|
GetKeyRotationStatusRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
524
557
|
GetKeyRotationStatusRequest.struct_class = Types::GetKeyRotationStatusRequest
|
525
558
|
|
526
559
|
GetKeyRotationStatusResponse.add_member(:key_rotation_enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "KeyRotationEnabled"))
|
560
|
+
GetKeyRotationStatusResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
561
|
+
GetKeyRotationStatusResponse.add_member(:rotation_period_in_days, Shapes::ShapeRef.new(shape: RotationPeriodInDaysType, location_name: "RotationPeriodInDays"))
|
562
|
+
GetKeyRotationStatusResponse.add_member(:next_rotation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "NextRotationDate"))
|
563
|
+
GetKeyRotationStatusResponse.add_member(:on_demand_rotation_start_date, Shapes::ShapeRef.new(shape: DateType, location_name: "OnDemandRotationStartDate"))
|
527
564
|
GetKeyRotationStatusResponse.struct_class = Types::GetKeyRotationStatusResponse
|
528
565
|
|
529
566
|
GetParametersForImportRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -548,6 +585,7 @@ module Aws::KMS
|
|
548
585
|
GetPublicKeyResponse.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
549
586
|
GetPublicKeyResponse.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
|
550
587
|
GetPublicKeyResponse.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
|
588
|
+
GetPublicKeyResponse.add_member(:key_agreement_algorithms, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpecList, location_name: "KeyAgreementAlgorithms"))
|
551
589
|
GetPublicKeyResponse.struct_class = Types::GetPublicKeyResponse
|
552
590
|
|
553
591
|
GrantConstraints.add_member(:encryption_context_subset, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextSubset"))
|
@@ -625,6 +663,8 @@ module Aws::KMS
|
|
625
663
|
KMSInvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
626
664
|
KMSInvalidStateException.struct_class = Types::KMSInvalidStateException
|
627
665
|
|
666
|
+
KeyAgreementAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec)
|
667
|
+
|
628
668
|
KeyList.member = Shapes::ShapeRef.new(shape: KeyListEntry)
|
629
669
|
|
630
670
|
KeyListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -650,6 +690,7 @@ module Aws::KMS
|
|
650
690
|
KeyMetadata.add_member(:key_spec, Shapes::ShapeRef.new(shape: KeySpec, location_name: "KeySpec"))
|
651
691
|
KeyMetadata.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
|
652
692
|
KeyMetadata.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
|
693
|
+
KeyMetadata.add_member(:key_agreement_algorithms, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpecList, location_name: "KeyAgreementAlgorithms"))
|
653
694
|
KeyMetadata.add_member(:multi_region, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "MultiRegion"))
|
654
695
|
KeyMetadata.add_member(:multi_region_configuration, Shapes::ShapeRef.new(shape: MultiRegionConfiguration, location_name: "MultiRegionConfiguration"))
|
655
696
|
KeyMetadata.add_member(:pending_deletion_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingDeletionWindowInDays"))
|
@@ -695,6 +736,16 @@ module Aws::KMS
|
|
695
736
|
ListKeyPoliciesResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
|
696
737
|
ListKeyPoliciesResponse.struct_class = Types::ListKeyPoliciesResponse
|
697
738
|
|
739
|
+
ListKeyRotationsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
740
|
+
ListKeyRotationsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
741
|
+
ListKeyRotationsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
742
|
+
ListKeyRotationsRequest.struct_class = Types::ListKeyRotationsRequest
|
743
|
+
|
744
|
+
ListKeyRotationsResponse.add_member(:rotations, Shapes::ShapeRef.new(shape: RotationsList, location_name: "Rotations"))
|
745
|
+
ListKeyRotationsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
|
746
|
+
ListKeyRotationsResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
|
747
|
+
ListKeyRotationsResponse.struct_class = Types::ListKeyRotationsResponse
|
748
|
+
|
698
749
|
ListKeysRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
699
750
|
ListKeysRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
700
751
|
ListKeysRequest.struct_class = Types::ListKeysRequest
|
@@ -741,7 +792,7 @@ module Aws::KMS
|
|
741
792
|
PolicyNameList.member = Shapes::ShapeRef.new(shape: PolicyNameType)
|
742
793
|
|
743
794
|
PutKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
744
|
-
PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType,
|
795
|
+
PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
|
745
796
|
PutKeyPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "Policy"))
|
746
797
|
PutKeyPolicyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
|
747
798
|
PutKeyPolicyRequest.struct_class = Types::PutKeyPolicyRequest
|
@@ -792,6 +843,19 @@ module Aws::KMS
|
|
792
843
|
RevokeGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
793
844
|
RevokeGrantRequest.struct_class = Types::RevokeGrantRequest
|
794
845
|
|
846
|
+
RotateKeyOnDemandRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
847
|
+
RotateKeyOnDemandRequest.struct_class = Types::RotateKeyOnDemandRequest
|
848
|
+
|
849
|
+
RotateKeyOnDemandResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
850
|
+
RotateKeyOnDemandResponse.struct_class = Types::RotateKeyOnDemandResponse
|
851
|
+
|
852
|
+
RotationsList.member = Shapes::ShapeRef.new(shape: RotationsListEntry)
|
853
|
+
|
854
|
+
RotationsListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
855
|
+
RotationsListEntry.add_member(:rotation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "RotationDate"))
|
856
|
+
RotationsListEntry.add_member(:rotation_type, Shapes::ShapeRef.new(shape: RotationType, location_name: "RotationType"))
|
857
|
+
RotationsListEntry.struct_class = Types::RotationsListEntry
|
858
|
+
|
795
859
|
ScheduleKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
796
860
|
ScheduleKeyDeletionRequest.add_member(:pending_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingWindowInDays"))
|
797
861
|
ScheduleKeyDeletionRequest.struct_class = Types::ScheduleKeyDeletionRequest
|
@@ -949,9 +1013,11 @@ module Aws::KMS
|
|
949
1013
|
|
950
1014
|
api.metadata = {
|
951
1015
|
"apiVersion" => "2014-11-01",
|
1016
|
+
"auth" => ["aws.auth#sigv4"],
|
952
1017
|
"endpointPrefix" => "kms",
|
953
1018
|
"jsonVersion" => "1.1",
|
954
1019
|
"protocol" => "json",
|
1020
|
+
"protocols" => ["json"],
|
955
1021
|
"serviceAbbreviation" => "KMS",
|
956
1022
|
"serviceFullName" => "AWS Key Management Service",
|
957
1023
|
"serviceId" => "KMS",
|
@@ -1121,6 +1187,23 @@ module Aws::KMS
|
|
1121
1187
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1122
1188
|
end)
|
1123
1189
|
|
1190
|
+
api.add_operation(:derive_shared_secret, Seahorse::Model::Operation.new.tap do |o|
|
1191
|
+
o.name = "DeriveSharedSecret"
|
1192
|
+
o.http_method = "POST"
|
1193
|
+
o.http_request_uri = "/"
|
1194
|
+
o.input = Shapes::ShapeRef.new(shape: DeriveSharedSecretRequest)
|
1195
|
+
o.output = Shapes::ShapeRef.new(shape: DeriveSharedSecretResponse)
|
1196
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1197
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
1198
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
1199
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1200
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1201
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
1202
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1203
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1204
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1205
|
+
end)
|
1206
|
+
|
1124
1207
|
api.add_operation(:describe_custom_key_stores, Seahorse::Model::Operation.new.tap do |o|
|
1125
1208
|
o.name = "DescribeCustomKeyStores"
|
1126
1209
|
o.http_method = "POST"
|
@@ -1131,6 +1214,7 @@ module Aws::KMS
|
|
1131
1214
|
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
1132
1215
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1133
1216
|
o[:pager] = Aws::Pager.new(
|
1217
|
+
more_results: "truncated",
|
1134
1218
|
limit_key: "limit",
|
1135
1219
|
tokens: {
|
1136
1220
|
"next_marker" => "marker"
|
@@ -1423,6 +1507,7 @@ module Aws::KMS
|
|
1423
1507
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
1424
1508
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1425
1509
|
o[:pager] = Aws::Pager.new(
|
1510
|
+
more_results: "truncated",
|
1426
1511
|
limit_key: "limit",
|
1427
1512
|
tokens: {
|
1428
1513
|
"next_marker" => "marker"
|
@@ -1444,6 +1529,7 @@ module Aws::KMS
|
|
1444
1529
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1445
1530
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1446
1531
|
o[:pager] = Aws::Pager.new(
|
1532
|
+
more_results: "truncated",
|
1447
1533
|
limit_key: "limit",
|
1448
1534
|
tokens: {
|
1449
1535
|
"next_marker" => "marker"
|
@@ -1463,6 +1549,28 @@ module Aws::KMS
|
|
1463
1549
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1464
1550
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1465
1551
|
o[:pager] = Aws::Pager.new(
|
1552
|
+
more_results: "truncated",
|
1553
|
+
limit_key: "limit",
|
1554
|
+
tokens: {
|
1555
|
+
"next_marker" => "marker"
|
1556
|
+
}
|
1557
|
+
)
|
1558
|
+
end)
|
1559
|
+
|
1560
|
+
api.add_operation(:list_key_rotations, Seahorse::Model::Operation.new.tap do |o|
|
1561
|
+
o.name = "ListKeyRotations"
|
1562
|
+
o.http_method = "POST"
|
1563
|
+
o.http_request_uri = "/"
|
1564
|
+
o.input = Shapes::ShapeRef.new(shape: ListKeyRotationsRequest)
|
1565
|
+
o.output = Shapes::ShapeRef.new(shape: ListKeyRotationsResponse)
|
1566
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1567
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
1568
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
1569
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1570
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1571
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1572
|
+
o[:pager] = Aws::Pager.new(
|
1573
|
+
more_results: "truncated",
|
1466
1574
|
limit_key: "limit",
|
1467
1575
|
tokens: {
|
1468
1576
|
"next_marker" => "marker"
|
@@ -1480,6 +1588,7 @@ module Aws::KMS
|
|
1480
1588
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1481
1589
|
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
1482
1590
|
o[:pager] = Aws::Pager.new(
|
1591
|
+
more_results: "truncated",
|
1483
1592
|
limit_key: "limit",
|
1484
1593
|
tokens: {
|
1485
1594
|
"next_marker" => "marker"
|
@@ -1498,6 +1607,7 @@ module Aws::KMS
|
|
1498
1607
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
1499
1608
|
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
1500
1609
|
o[:pager] = Aws::Pager.new(
|
1610
|
+
more_results: "truncated",
|
1501
1611
|
limit_key: "limit",
|
1502
1612
|
tokens: {
|
1503
1613
|
"next_marker" => "marker"
|
@@ -1517,6 +1627,7 @@ module Aws::KMS
|
|
1517
1627
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1518
1628
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1519
1629
|
o[:pager] = Aws::Pager.new(
|
1630
|
+
more_results: "truncated",
|
1520
1631
|
limit_key: "limit",
|
1521
1632
|
tokens: {
|
1522
1633
|
"next_marker" => "marker"
|
@@ -1608,6 +1719,23 @@ module Aws::KMS
|
|
1608
1719
|
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1609
1720
|
end)
|
1610
1721
|
|
1722
|
+
api.add_operation(:rotate_key_on_demand, Seahorse::Model::Operation.new.tap do |o|
|
1723
|
+
o.name = "RotateKeyOnDemand"
|
1724
|
+
o.http_method = "POST"
|
1725
|
+
o.http_request_uri = "/"
|
1726
|
+
o.input = Shapes::ShapeRef.new(shape: RotateKeyOnDemandRequest)
|
1727
|
+
o.output = Shapes::ShapeRef.new(shape: RotateKeyOnDemandResponse)
|
1728
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1729
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
1730
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
1731
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1732
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1733
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1734
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1735
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1736
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1737
|
+
end)
|
1738
|
+
|
1611
1739
|
api.add_operation(:schedule_key_deletion, Seahorse::Model::Operation.new.tap do |o|
|
1612
1740
|
o.name = "ScheduleKeyDeletion"
|
1613
1741
|
o.http_method = "POST"
|
@@ -152,6 +152,20 @@ module Aws::KMS
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
155
|
+
class DeriveSharedSecret
|
156
|
+
def self.build(context)
|
157
|
+
unless context.config.regional_endpoint
|
158
|
+
endpoint = context.config.endpoint.to_s
|
159
|
+
end
|
160
|
+
Aws::KMS::EndpointParameters.new(
|
161
|
+
region: context.config.region,
|
162
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
163
|
+
use_fips: context.config.use_fips_endpoint,
|
164
|
+
endpoint: endpoint,
|
165
|
+
)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
155
169
|
class DescribeCustomKeyStores
|
156
170
|
def self.build(context)
|
157
171
|
unless context.config.regional_endpoint
|
@@ -460,6 +474,20 @@ module Aws::KMS
|
|
460
474
|
end
|
461
475
|
end
|
462
476
|
|
477
|
+
class ListKeyRotations
|
478
|
+
def self.build(context)
|
479
|
+
unless context.config.regional_endpoint
|
480
|
+
endpoint = context.config.endpoint.to_s
|
481
|
+
end
|
482
|
+
Aws::KMS::EndpointParameters.new(
|
483
|
+
region: context.config.region,
|
484
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
485
|
+
use_fips: context.config.use_fips_endpoint,
|
486
|
+
endpoint: endpoint,
|
487
|
+
)
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
463
491
|
class ListKeys
|
464
492
|
def self.build(context)
|
465
493
|
unless context.config.regional_endpoint
|
@@ -572,6 +600,20 @@ module Aws::KMS
|
|
572
600
|
end
|
573
601
|
end
|
574
602
|
|
603
|
+
class RotateKeyOnDemand
|
604
|
+
def self.build(context)
|
605
|
+
unless context.config.regional_endpoint
|
606
|
+
endpoint = context.config.endpoint.to_s
|
607
|
+
end
|
608
|
+
Aws::KMS::EndpointParameters.new(
|
609
|
+
region: context.config.region,
|
610
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
611
|
+
use_fips: context.config.use_fips_endpoint,
|
612
|
+
endpoint: endpoint,
|
613
|
+
)
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
575
617
|
class ScheduleKeyDeletion
|
576
618
|
def self.build(context)
|
577
619
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-kms/errors.rb
CHANGED
@@ -33,6 +33,7 @@ module Aws::KMS
|
|
33
33
|
# * {CloudHsmClusterNotActiveException}
|
34
34
|
# * {CloudHsmClusterNotFoundException}
|
35
35
|
# * {CloudHsmClusterNotRelatedException}
|
36
|
+
# * {ConflictException}
|
36
37
|
# * {CustomKeyStoreHasCMKsException}
|
37
38
|
# * {CustomKeyStoreInvalidStateException}
|
38
39
|
# * {CustomKeyStoreNameInUseException}
|
@@ -171,6 +172,21 @@ module Aws::KMS
|
|
171
172
|
end
|
172
173
|
end
|
173
174
|
|
175
|
+
class ConflictException < ServiceError
|
176
|
+
|
177
|
+
# @param [Seahorse::Client::RequestContext] context
|
178
|
+
# @param [String] message
|
179
|
+
# @param [Aws::KMS::Types::ConflictException] data
|
180
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
181
|
+
super(context, message, data)
|
182
|
+
end
|
183
|
+
|
184
|
+
# @return [String]
|
185
|
+
def message
|
186
|
+
@message || @data[:message]
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
174
190
|
class CustomKeyStoreHasCMKsException < ServiceError
|
175
191
|
|
176
192
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -14,6 +14,7 @@ module Aws::KMS
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::KMS::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
@@ -77,6 +78,8 @@ module Aws::KMS
|
|
77
78
|
Aws::KMS::Endpoints::DeleteCustomKeyStore.build(context)
|
78
79
|
when :delete_imported_key_material
|
79
80
|
Aws::KMS::Endpoints::DeleteImportedKeyMaterial.build(context)
|
81
|
+
when :derive_shared_secret
|
82
|
+
Aws::KMS::Endpoints::DeriveSharedSecret.build(context)
|
80
83
|
when :describe_custom_key_stores
|
81
84
|
Aws::KMS::Endpoints::DescribeCustomKeyStores.build(context)
|
82
85
|
when :describe_key
|
@@ -121,6 +124,8 @@ module Aws::KMS
|
|
121
124
|
Aws::KMS::Endpoints::ListGrants.build(context)
|
122
125
|
when :list_key_policies
|
123
126
|
Aws::KMS::Endpoints::ListKeyPolicies.build(context)
|
127
|
+
when :list_key_rotations
|
128
|
+
Aws::KMS::Endpoints::ListKeyRotations.build(context)
|
124
129
|
when :list_keys
|
125
130
|
Aws::KMS::Endpoints::ListKeys.build(context)
|
126
131
|
when :list_resource_tags
|
@@ -137,6 +142,8 @@ module Aws::KMS
|
|
137
142
|
Aws::KMS::Endpoints::RetireGrant.build(context)
|
138
143
|
when :revoke_grant
|
139
144
|
Aws::KMS::Endpoints::RevokeGrant.build(context)
|
145
|
+
when :rotate_key_on_demand
|
146
|
+
Aws::KMS::Endpoints::RotateKeyOnDemand.build(context)
|
140
147
|
when :schedule_key_deletion
|
141
148
|
Aws::KMS::Endpoints::ScheduleKeyDeletion.build(context)
|
142
149
|
when :sign
|