aws-sdk-kms 1.76.0 → 1.122.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 +230 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kms/client.rb +1922 -825
- data/lib/aws-sdk-kms/client_api.rb +180 -8
- data/lib/aws-sdk-kms/customizations.rb +0 -8
- data/lib/aws-sdk-kms/endpoint_parameters.rb +13 -10
- data/lib/aws-sdk-kms/endpoint_provider.rb +13 -17
- data/lib/aws-sdk-kms/endpoints.rb +2 -698
- data/lib/aws-sdk-kms/errors.rb +16 -0
- data/lib/aws-sdk-kms/plugins/endpoints.rb +20 -112
- data/lib/aws-sdk-kms/types.rb +1178 -320
- data/lib/aws-sdk-kms.rb +15 -11
- data/sig/client.rbs +830 -0
- data/sig/errors.rbs +160 -0
- data/sig/resource.rbs +86 -0
- data/sig/types.rbs +1069 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -11
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
#
|
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
|
9
9
|
|
|
10
|
+
|
|
10
11
|
module Aws::KMS
|
|
11
12
|
# @api private
|
|
12
13
|
module ClientApi
|
|
@@ -14,6 +15,7 @@ module Aws::KMS
|
|
|
14
15
|
include Seahorse::Model
|
|
15
16
|
|
|
16
17
|
AWSAccountIdType = Shapes::StringShape.new(name: 'AWSAccountIdType')
|
|
18
|
+
AccountIdType = Shapes::StringShape.new(name: 'AccountIdType')
|
|
17
19
|
AlgorithmSpec = Shapes::StringShape.new(name: 'AlgorithmSpec')
|
|
18
20
|
AliasList = Shapes::ListShape.new(name: 'AliasList')
|
|
19
21
|
AliasListEntry = Shapes::StructureShape.new(name: 'AliasListEntry')
|
|
@@ -21,6 +23,8 @@ module Aws::KMS
|
|
|
21
23
|
AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
|
|
22
24
|
ArnType = Shapes::StringShape.new(name: 'ArnType')
|
|
23
25
|
AttestationDocumentType = Shapes::BlobShape.new(name: 'AttestationDocumentType')
|
|
26
|
+
BackingKeyIdResponseType = Shapes::StringShape.new(name: 'BackingKeyIdResponseType')
|
|
27
|
+
BackingKeyIdType = Shapes::StringShape.new(name: 'BackingKeyIdType')
|
|
24
28
|
BooleanType = Shapes::BooleanShape.new(name: 'BooleanType')
|
|
25
29
|
CancelKeyDeletionRequest = Shapes::StructureShape.new(name: 'CancelKeyDeletionRequest')
|
|
26
30
|
CancelKeyDeletionResponse = Shapes::StructureShape.new(name: 'CancelKeyDeletionResponse')
|
|
@@ -31,6 +35,7 @@ module Aws::KMS
|
|
|
31
35
|
CloudHsmClusterNotActiveException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotActiveException')
|
|
32
36
|
CloudHsmClusterNotFoundException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotFoundException')
|
|
33
37
|
CloudHsmClusterNotRelatedException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotRelatedException')
|
|
38
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
34
39
|
ConnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreRequest')
|
|
35
40
|
ConnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreResponse')
|
|
36
41
|
ConnectionErrorCodeType = Shapes::StringShape.new(name: 'ConnectionErrorCodeType')
|
|
@@ -61,7 +66,10 @@ module Aws::KMS
|
|
|
61
66
|
DeleteCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreRequest')
|
|
62
67
|
DeleteCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreResponse')
|
|
63
68
|
DeleteImportedKeyMaterialRequest = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialRequest')
|
|
69
|
+
DeleteImportedKeyMaterialResponse = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialResponse')
|
|
64
70
|
DependencyTimeoutException = Shapes::StructureShape.new(name: 'DependencyTimeoutException')
|
|
71
|
+
DeriveSharedSecretRequest = Shapes::StructureShape.new(name: 'DeriveSharedSecretRequest')
|
|
72
|
+
DeriveSharedSecretResponse = Shapes::StructureShape.new(name: 'DeriveSharedSecretResponse')
|
|
65
73
|
DescribeCustomKeyStoresRequest = Shapes::StructureShape.new(name: 'DescribeCustomKeyStoresRequest')
|
|
66
74
|
DescribeCustomKeyStoresResponse = Shapes::StructureShape.new(name: 'DescribeCustomKeyStoresResponse')
|
|
67
75
|
DescribeKeyRequest = Shapes::StructureShape.new(name: 'DescribeKeyRequest')
|
|
@@ -72,6 +80,8 @@ module Aws::KMS
|
|
|
72
80
|
DisabledException = Shapes::StructureShape.new(name: 'DisabledException')
|
|
73
81
|
DisconnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreRequest')
|
|
74
82
|
DisconnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreResponse')
|
|
83
|
+
DryRunModifierList = Shapes::ListShape.new(name: 'DryRunModifierList')
|
|
84
|
+
DryRunModifierType = Shapes::StringShape.new(name: 'DryRunModifierType')
|
|
75
85
|
DryRunOperationException = Shapes::StructureShape.new(name: 'DryRunOperationException')
|
|
76
86
|
EnableKeyRequest = Shapes::StructureShape.new(name: 'EnableKeyRequest')
|
|
77
87
|
EnableKeyRotationRequest = Shapes::StructureShape.new(name: 'EnableKeyRotationRequest')
|
|
@@ -116,6 +126,9 @@ module Aws::KMS
|
|
|
116
126
|
GrantTokenType = Shapes::StringShape.new(name: 'GrantTokenType')
|
|
117
127
|
ImportKeyMaterialRequest = Shapes::StructureShape.new(name: 'ImportKeyMaterialRequest')
|
|
118
128
|
ImportKeyMaterialResponse = Shapes::StructureShape.new(name: 'ImportKeyMaterialResponse')
|
|
129
|
+
ImportState = Shapes::StringShape.new(name: 'ImportState')
|
|
130
|
+
ImportType = Shapes::StringShape.new(name: 'ImportType')
|
|
131
|
+
IncludeKeyMaterial = Shapes::StringShape.new(name: 'IncludeKeyMaterial')
|
|
119
132
|
IncorrectKeyException = Shapes::StructureShape.new(name: 'IncorrectKeyException')
|
|
120
133
|
IncorrectKeyMaterialException = Shapes::StructureShape.new(name: 'IncorrectKeyMaterialException')
|
|
121
134
|
IncorrectTrustAnchorException = Shapes::StructureShape.new(name: 'IncorrectTrustAnchorException')
|
|
@@ -131,11 +144,15 @@ module Aws::KMS
|
|
|
131
144
|
KMSInvalidMacException = Shapes::StructureShape.new(name: 'KMSInvalidMacException')
|
|
132
145
|
KMSInvalidSignatureException = Shapes::StructureShape.new(name: 'KMSInvalidSignatureException')
|
|
133
146
|
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
|
|
147
|
+
KeyAgreementAlgorithmSpec = Shapes::StringShape.new(name: 'KeyAgreementAlgorithmSpec')
|
|
148
|
+
KeyAgreementAlgorithmSpecList = Shapes::ListShape.new(name: 'KeyAgreementAlgorithmSpecList')
|
|
134
149
|
KeyEncryptionMechanism = Shapes::StringShape.new(name: 'KeyEncryptionMechanism')
|
|
135
150
|
KeyIdType = Shapes::StringShape.new(name: 'KeyIdType')
|
|
136
151
|
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
|
137
152
|
KeyListEntry = Shapes::StructureShape.new(name: 'KeyListEntry')
|
|
138
153
|
KeyManagerType = Shapes::StringShape.new(name: 'KeyManagerType')
|
|
154
|
+
KeyMaterialDescriptionType = Shapes::StringShape.new(name: 'KeyMaterialDescriptionType')
|
|
155
|
+
KeyMaterialState = Shapes::StringShape.new(name: 'KeyMaterialState')
|
|
139
156
|
KeyMetadata = Shapes::StructureShape.new(name: 'KeyMetadata')
|
|
140
157
|
KeySpec = Shapes::StringShape.new(name: 'KeySpec')
|
|
141
158
|
KeyState = Shapes::StringShape.new(name: 'KeyState')
|
|
@@ -150,6 +167,8 @@ module Aws::KMS
|
|
|
150
167
|
ListGrantsResponse = Shapes::StructureShape.new(name: 'ListGrantsResponse')
|
|
151
168
|
ListKeyPoliciesRequest = Shapes::StructureShape.new(name: 'ListKeyPoliciesRequest')
|
|
152
169
|
ListKeyPoliciesResponse = Shapes::StructureShape.new(name: 'ListKeyPoliciesResponse')
|
|
170
|
+
ListKeyRotationsRequest = Shapes::StructureShape.new(name: 'ListKeyRotationsRequest')
|
|
171
|
+
ListKeyRotationsResponse = Shapes::StructureShape.new(name: 'ListKeyRotationsResponse')
|
|
153
172
|
ListKeysRequest = Shapes::StructureShape.new(name: 'ListKeysRequest')
|
|
154
173
|
ListKeysResponse = Shapes::StructureShape.new(name: 'ListKeysResponse')
|
|
155
174
|
ListResourceTagsRequest = Shapes::StructureShape.new(name: 'ListResourceTagsRequest')
|
|
@@ -184,6 +203,12 @@ module Aws::KMS
|
|
|
184
203
|
ReplicateKeyResponse = Shapes::StructureShape.new(name: 'ReplicateKeyResponse')
|
|
185
204
|
RetireGrantRequest = Shapes::StructureShape.new(name: 'RetireGrantRequest')
|
|
186
205
|
RevokeGrantRequest = Shapes::StructureShape.new(name: 'RevokeGrantRequest')
|
|
206
|
+
RotateKeyOnDemandRequest = Shapes::StructureShape.new(name: 'RotateKeyOnDemandRequest')
|
|
207
|
+
RotateKeyOnDemandResponse = Shapes::StructureShape.new(name: 'RotateKeyOnDemandResponse')
|
|
208
|
+
RotationPeriodInDaysType = Shapes::IntegerShape.new(name: 'RotationPeriodInDaysType')
|
|
209
|
+
RotationType = Shapes::StringShape.new(name: 'RotationType')
|
|
210
|
+
RotationsList = Shapes::ListShape.new(name: 'RotationsList')
|
|
211
|
+
RotationsListEntry = Shapes::StructureShape.new(name: 'RotationsListEntry')
|
|
187
212
|
ScheduleKeyDeletionRequest = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionRequest')
|
|
188
213
|
ScheduleKeyDeletionResponse = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionResponse')
|
|
189
214
|
SignRequest = Shapes::StructureShape.new(name: 'SignRequest')
|
|
@@ -266,6 +291,9 @@ module Aws::KMS
|
|
|
266
291
|
CloudHsmClusterNotRelatedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
267
292
|
CloudHsmClusterNotRelatedException.struct_class = Types::CloudHsmClusterNotRelatedException
|
|
268
293
|
|
|
294
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
295
|
+
ConflictException.struct_class = Types::ConflictException
|
|
296
|
+
|
|
269
297
|
ConnectCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
|
|
270
298
|
ConnectCustomKeyStoreRequest.struct_class = Types::ConnectCustomKeyStoreRequest
|
|
271
299
|
|
|
@@ -283,6 +311,7 @@ module Aws::KMS
|
|
|
283
311
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "XksProxyUriEndpoint"))
|
|
284
312
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "XksProxyUriPath"))
|
|
285
313
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "XksProxyVpcEndpointServiceName"))
|
|
314
|
+
CreateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_owner, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "XksProxyVpcEndpointServiceOwner"))
|
|
286
315
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_authentication_credential, Shapes::ShapeRef.new(shape: XksProxyAuthenticationCredentialType, location_name: "XksProxyAuthenticationCredential"))
|
|
287
316
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_connectivity, Shapes::ShapeRef.new(shape: XksProxyConnectivityType, location_name: "XksProxyConnectivity"))
|
|
288
317
|
CreateCustomKeyStoreRequest.struct_class = Types::CreateCustomKeyStoreRequest
|
|
@@ -307,7 +336,7 @@ module Aws::KMS
|
|
|
307
336
|
CreateKeyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
|
|
308
337
|
CreateKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
|
|
309
338
|
CreateKeyRequest.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
|
310
|
-
CreateKeyRequest.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, deprecated: true, location_name: "CustomerMasterKeySpec", metadata: {"deprecatedMessage"=>"This parameter has been deprecated. Instead, use the KeySpec parameter."}))
|
|
339
|
+
CreateKeyRequest.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, deprecated: true, location_name: "CustomerMasterKeySpec", metadata: {"deprecatedMessage" => "This parameter has been deprecated. Instead, use the KeySpec parameter."}))
|
|
311
340
|
CreateKeyRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: KeySpec, location_name: "KeySpec"))
|
|
312
341
|
CreateKeyRequest.add_member(:origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "Origin"))
|
|
313
342
|
CreateKeyRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
|
|
@@ -345,19 +374,21 @@ module Aws::KMS
|
|
|
345
374
|
CustomKeyStoresListEntry.add_member(:xks_proxy_configuration, Shapes::ShapeRef.new(shape: XksProxyConfigurationType, location_name: "XksProxyConfiguration"))
|
|
346
375
|
CustomKeyStoresListEntry.struct_class = Types::CustomKeyStoresListEntry
|
|
347
376
|
|
|
348
|
-
DecryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType,
|
|
377
|
+
DecryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
|
349
378
|
DecryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
|
350
379
|
DecryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
|
351
380
|
DecryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
352
381
|
DecryptRequest.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
|
353
382
|
DecryptRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
|
354
383
|
DecryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
384
|
+
DecryptRequest.add_member(:dry_run_modifiers, Shapes::ShapeRef.new(shape: DryRunModifierList, location_name: "DryRunModifiers"))
|
|
355
385
|
DecryptRequest.struct_class = Types::DecryptRequest
|
|
356
386
|
|
|
357
387
|
DecryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
358
388
|
DecryptResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
|
359
389
|
DecryptResponse.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
|
360
390
|
DecryptResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
|
391
|
+
DecryptResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
361
392
|
DecryptResponse.struct_class = Types::DecryptResponse
|
|
362
393
|
|
|
363
394
|
DeleteAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
|
|
@@ -369,11 +400,31 @@ module Aws::KMS
|
|
|
369
400
|
DeleteCustomKeyStoreResponse.struct_class = Types::DeleteCustomKeyStoreResponse
|
|
370
401
|
|
|
371
402
|
DeleteImportedKeyMaterialRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
403
|
+
DeleteImportedKeyMaterialRequest.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
372
404
|
DeleteImportedKeyMaterialRequest.struct_class = Types::DeleteImportedKeyMaterialRequest
|
|
373
405
|
|
|
406
|
+
DeleteImportedKeyMaterialResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
407
|
+
DeleteImportedKeyMaterialResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdResponseType, location_name: "KeyMaterialId"))
|
|
408
|
+
DeleteImportedKeyMaterialResponse.struct_class = Types::DeleteImportedKeyMaterialResponse
|
|
409
|
+
|
|
374
410
|
DependencyTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
375
411
|
DependencyTimeoutException.struct_class = Types::DependencyTimeoutException
|
|
376
412
|
|
|
413
|
+
DeriveSharedSecretRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
414
|
+
DeriveSharedSecretRequest.add_member(:key_agreement_algorithm, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec, required: true, location_name: "KeyAgreementAlgorithm"))
|
|
415
|
+
DeriveSharedSecretRequest.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, required: true, location_name: "PublicKey"))
|
|
416
|
+
DeriveSharedSecretRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
|
417
|
+
DeriveSharedSecretRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
418
|
+
DeriveSharedSecretRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
|
419
|
+
DeriveSharedSecretRequest.struct_class = Types::DeriveSharedSecretRequest
|
|
420
|
+
|
|
421
|
+
DeriveSharedSecretResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
422
|
+
DeriveSharedSecretResponse.add_member(:shared_secret, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "SharedSecret"))
|
|
423
|
+
DeriveSharedSecretResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
|
424
|
+
DeriveSharedSecretResponse.add_member(:key_agreement_algorithm, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec, location_name: "KeyAgreementAlgorithm"))
|
|
425
|
+
DeriveSharedSecretResponse.add_member(:key_origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "KeyOrigin"))
|
|
426
|
+
DeriveSharedSecretResponse.struct_class = Types::DeriveSharedSecretResponse
|
|
427
|
+
|
|
377
428
|
DescribeCustomKeyStoresRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
|
|
378
429
|
DescribeCustomKeyStoresRequest.add_member(:custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, location_name: "CustomKeyStoreName"))
|
|
379
430
|
DescribeCustomKeyStoresRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
|
@@ -406,6 +457,8 @@ module Aws::KMS
|
|
|
406
457
|
|
|
407
458
|
DisconnectCustomKeyStoreResponse.struct_class = Types::DisconnectCustomKeyStoreResponse
|
|
408
459
|
|
|
460
|
+
DryRunModifierList.member = Shapes::ShapeRef.new(shape: DryRunModifierType)
|
|
461
|
+
|
|
409
462
|
DryRunOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
410
463
|
DryRunOperationException.struct_class = Types::DryRunOperationException
|
|
411
464
|
|
|
@@ -413,6 +466,7 @@ module Aws::KMS
|
|
|
413
466
|
EnableKeyRequest.struct_class = Types::EnableKeyRequest
|
|
414
467
|
|
|
415
468
|
EnableKeyRotationRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
469
|
+
EnableKeyRotationRequest.add_member(:rotation_period_in_days, Shapes::ShapeRef.new(shape: RotationPeriodInDaysType, location_name: "RotationPeriodInDays"))
|
|
416
470
|
EnableKeyRotationRequest.struct_class = Types::EnableKeyRotationRequest
|
|
417
471
|
|
|
418
472
|
EncryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
@@ -450,6 +504,7 @@ module Aws::KMS
|
|
|
450
504
|
GenerateDataKeyPairResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
451
505
|
GenerateDataKeyPairResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
|
452
506
|
GenerateDataKeyPairResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
|
507
|
+
GenerateDataKeyPairResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
453
508
|
GenerateDataKeyPairResponse.struct_class = Types::GenerateDataKeyPairResponse
|
|
454
509
|
|
|
455
510
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
|
@@ -463,6 +518,7 @@ module Aws::KMS
|
|
|
463
518
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
|
464
519
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
465
520
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
|
521
|
+
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
466
522
|
GenerateDataKeyPairWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyPairWithoutPlaintextResponse
|
|
467
523
|
|
|
468
524
|
GenerateDataKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
@@ -478,6 +534,7 @@ module Aws::KMS
|
|
|
478
534
|
GenerateDataKeyResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
|
479
535
|
GenerateDataKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
480
536
|
GenerateDataKeyResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
|
537
|
+
GenerateDataKeyResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
481
538
|
GenerateDataKeyResponse.struct_class = Types::GenerateDataKeyResponse
|
|
482
539
|
|
|
483
540
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
@@ -490,6 +547,7 @@ module Aws::KMS
|
|
|
490
547
|
|
|
491
548
|
GenerateDataKeyWithoutPlaintextResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
|
492
549
|
GenerateDataKeyWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
550
|
+
GenerateDataKeyWithoutPlaintextResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
493
551
|
GenerateDataKeyWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyWithoutPlaintextResponse
|
|
494
552
|
|
|
495
553
|
GenerateMacRequest.add_member(:message, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Message"))
|
|
@@ -514,16 +572,21 @@ module Aws::KMS
|
|
|
514
572
|
GenerateRandomResponse.struct_class = Types::GenerateRandomResponse
|
|
515
573
|
|
|
516
574
|
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,
|
|
575
|
+
GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
|
|
518
576
|
GetKeyPolicyRequest.struct_class = Types::GetKeyPolicyRequest
|
|
519
577
|
|
|
520
578
|
GetKeyPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
|
|
579
|
+
GetKeyPolicyResponse.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
|
|
521
580
|
GetKeyPolicyResponse.struct_class = Types::GetKeyPolicyResponse
|
|
522
581
|
|
|
523
582
|
GetKeyRotationStatusRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
524
583
|
GetKeyRotationStatusRequest.struct_class = Types::GetKeyRotationStatusRequest
|
|
525
584
|
|
|
526
585
|
GetKeyRotationStatusResponse.add_member(:key_rotation_enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "KeyRotationEnabled"))
|
|
586
|
+
GetKeyRotationStatusResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
587
|
+
GetKeyRotationStatusResponse.add_member(:rotation_period_in_days, Shapes::ShapeRef.new(shape: RotationPeriodInDaysType, location_name: "RotationPeriodInDays"))
|
|
588
|
+
GetKeyRotationStatusResponse.add_member(:next_rotation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "NextRotationDate"))
|
|
589
|
+
GetKeyRotationStatusResponse.add_member(:on_demand_rotation_start_date, Shapes::ShapeRef.new(shape: DateType, location_name: "OnDemandRotationStartDate"))
|
|
527
590
|
GetKeyRotationStatusResponse.struct_class = Types::GetKeyRotationStatusResponse
|
|
528
591
|
|
|
529
592
|
GetParametersForImportRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
@@ -543,11 +606,12 @@ module Aws::KMS
|
|
|
543
606
|
|
|
544
607
|
GetPublicKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
545
608
|
GetPublicKeyResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
|
546
|
-
GetPublicKeyResponse.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, deprecated: true, location_name: "CustomerMasterKeySpec", metadata: {"deprecatedMessage"=>"This field has been deprecated. Instead, use the KeySpec field."}))
|
|
609
|
+
GetPublicKeyResponse.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, deprecated: true, location_name: "CustomerMasterKeySpec", metadata: {"deprecatedMessage" => "This field has been deprecated. Instead, use the KeySpec field."}))
|
|
547
610
|
GetPublicKeyResponse.add_member(:key_spec, Shapes::ShapeRef.new(shape: KeySpec, location_name: "KeySpec"))
|
|
548
611
|
GetPublicKeyResponse.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
|
549
612
|
GetPublicKeyResponse.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
|
|
550
613
|
GetPublicKeyResponse.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
|
|
614
|
+
GetPublicKeyResponse.add_member(:key_agreement_algorithms, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpecList, location_name: "KeyAgreementAlgorithms"))
|
|
551
615
|
GetPublicKeyResponse.struct_class = Types::GetPublicKeyResponse
|
|
552
616
|
|
|
553
617
|
GrantConstraints.add_member(:encryption_context_subset, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextSubset"))
|
|
@@ -576,8 +640,13 @@ module Aws::KMS
|
|
|
576
640
|
ImportKeyMaterialRequest.add_member(:encrypted_key_material, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "EncryptedKeyMaterial"))
|
|
577
641
|
ImportKeyMaterialRequest.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
|
|
578
642
|
ImportKeyMaterialRequest.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
|
643
|
+
ImportKeyMaterialRequest.add_member(:import_type, Shapes::ShapeRef.new(shape: ImportType, location_name: "ImportType"))
|
|
644
|
+
ImportKeyMaterialRequest.add_member(:key_material_description, Shapes::ShapeRef.new(shape: KeyMaterialDescriptionType, location_name: "KeyMaterialDescription"))
|
|
645
|
+
ImportKeyMaterialRequest.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
579
646
|
ImportKeyMaterialRequest.struct_class = Types::ImportKeyMaterialRequest
|
|
580
647
|
|
|
648
|
+
ImportKeyMaterialResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
649
|
+
ImportKeyMaterialResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
581
650
|
ImportKeyMaterialResponse.struct_class = Types::ImportKeyMaterialResponse
|
|
582
651
|
|
|
583
652
|
IncorrectKeyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
@@ -625,6 +694,8 @@ module Aws::KMS
|
|
|
625
694
|
KMSInvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
626
695
|
KMSInvalidStateException.struct_class = Types::KMSInvalidStateException
|
|
627
696
|
|
|
697
|
+
KeyAgreementAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec)
|
|
698
|
+
|
|
628
699
|
KeyList.member = Shapes::ShapeRef.new(shape: KeyListEntry)
|
|
629
700
|
|
|
630
701
|
KeyListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
@@ -646,15 +717,17 @@ module Aws::KMS
|
|
|
646
717
|
KeyMetadata.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, location_name: "CloudHsmClusterId"))
|
|
647
718
|
KeyMetadata.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
|
648
719
|
KeyMetadata.add_member(:key_manager, Shapes::ShapeRef.new(shape: KeyManagerType, location_name: "KeyManager"))
|
|
649
|
-
KeyMetadata.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, deprecated: true, location_name: "CustomerMasterKeySpec", metadata: {"deprecatedMessage"=>"This field has been deprecated. Instead, use the KeySpec field."}))
|
|
720
|
+
KeyMetadata.add_member(:customer_master_key_spec, Shapes::ShapeRef.new(shape: CustomerMasterKeySpec, deprecated: true, location_name: "CustomerMasterKeySpec", metadata: {"deprecatedMessage" => "This field has been deprecated. Instead, use the KeySpec field."}))
|
|
650
721
|
KeyMetadata.add_member(:key_spec, Shapes::ShapeRef.new(shape: KeySpec, location_name: "KeySpec"))
|
|
651
722
|
KeyMetadata.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
|
|
652
723
|
KeyMetadata.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
|
|
724
|
+
KeyMetadata.add_member(:key_agreement_algorithms, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpecList, location_name: "KeyAgreementAlgorithms"))
|
|
653
725
|
KeyMetadata.add_member(:multi_region, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "MultiRegion"))
|
|
654
726
|
KeyMetadata.add_member(:multi_region_configuration, Shapes::ShapeRef.new(shape: MultiRegionConfiguration, location_name: "MultiRegionConfiguration"))
|
|
655
727
|
KeyMetadata.add_member(:pending_deletion_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingDeletionWindowInDays"))
|
|
656
728
|
KeyMetadata.add_member(:mac_algorithms, Shapes::ShapeRef.new(shape: MacAlgorithmSpecList, location_name: "MacAlgorithms"))
|
|
657
729
|
KeyMetadata.add_member(:xks_key_configuration, Shapes::ShapeRef.new(shape: XksKeyConfigurationType, location_name: "XksKeyConfiguration"))
|
|
730
|
+
KeyMetadata.add_member(:current_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "CurrentKeyMaterialId"))
|
|
658
731
|
KeyMetadata.struct_class = Types::KeyMetadata
|
|
659
732
|
|
|
660
733
|
KeyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
@@ -695,6 +768,17 @@ module Aws::KMS
|
|
|
695
768
|
ListKeyPoliciesResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
|
|
696
769
|
ListKeyPoliciesResponse.struct_class = Types::ListKeyPoliciesResponse
|
|
697
770
|
|
|
771
|
+
ListKeyRotationsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
772
|
+
ListKeyRotationsRequest.add_member(:include_key_material, Shapes::ShapeRef.new(shape: IncludeKeyMaterial, location_name: "IncludeKeyMaterial"))
|
|
773
|
+
ListKeyRotationsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
|
774
|
+
ListKeyRotationsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
|
775
|
+
ListKeyRotationsRequest.struct_class = Types::ListKeyRotationsRequest
|
|
776
|
+
|
|
777
|
+
ListKeyRotationsResponse.add_member(:rotations, Shapes::ShapeRef.new(shape: RotationsList, location_name: "Rotations"))
|
|
778
|
+
ListKeyRotationsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
|
|
779
|
+
ListKeyRotationsResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
|
|
780
|
+
ListKeyRotationsResponse.struct_class = Types::ListKeyRotationsResponse
|
|
781
|
+
|
|
698
782
|
ListKeysRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
|
699
783
|
ListKeysRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
|
700
784
|
ListKeysRequest.struct_class = Types::ListKeysRequest
|
|
@@ -741,12 +825,12 @@ module Aws::KMS
|
|
|
741
825
|
PolicyNameList.member = Shapes::ShapeRef.new(shape: PolicyNameType)
|
|
742
826
|
|
|
743
827
|
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,
|
|
828
|
+
PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
|
|
745
829
|
PutKeyPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "Policy"))
|
|
746
830
|
PutKeyPolicyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
|
|
747
831
|
PutKeyPolicyRequest.struct_class = Types::PutKeyPolicyRequest
|
|
748
832
|
|
|
749
|
-
ReEncryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType,
|
|
833
|
+
ReEncryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
|
750
834
|
ReEncryptRequest.add_member(:source_encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "SourceEncryptionContext"))
|
|
751
835
|
ReEncryptRequest.add_member(:source_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "SourceKeyId"))
|
|
752
836
|
ReEncryptRequest.add_member(:destination_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "DestinationKeyId"))
|
|
@@ -755,6 +839,7 @@ module Aws::KMS
|
|
|
755
839
|
ReEncryptRequest.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
|
756
840
|
ReEncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
|
757
841
|
ReEncryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
842
|
+
ReEncryptRequest.add_member(:dry_run_modifiers, Shapes::ShapeRef.new(shape: DryRunModifierList, location_name: "DryRunModifiers"))
|
|
758
843
|
ReEncryptRequest.struct_class = Types::ReEncryptRequest
|
|
759
844
|
|
|
760
845
|
ReEncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
|
@@ -762,6 +847,8 @@ module Aws::KMS
|
|
|
762
847
|
ReEncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
763
848
|
ReEncryptResponse.add_member(:source_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "SourceEncryptionAlgorithm"))
|
|
764
849
|
ReEncryptResponse.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
|
850
|
+
ReEncryptResponse.add_member(:source_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "SourceKeyMaterialId"))
|
|
851
|
+
ReEncryptResponse.add_member(:destination_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "DestinationKeyMaterialId"))
|
|
765
852
|
ReEncryptResponse.struct_class = Types::ReEncryptResponse
|
|
766
853
|
|
|
767
854
|
RecipientInfo.add_member(:key_encryption_algorithm, Shapes::ShapeRef.new(shape: KeyEncryptionMechanism, location_name: "KeyEncryptionAlgorithm"))
|
|
@@ -792,6 +879,25 @@ module Aws::KMS
|
|
|
792
879
|
RevokeGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
793
880
|
RevokeGrantRequest.struct_class = Types::RevokeGrantRequest
|
|
794
881
|
|
|
882
|
+
RotateKeyOnDemandRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
883
|
+
RotateKeyOnDemandRequest.struct_class = Types::RotateKeyOnDemandRequest
|
|
884
|
+
|
|
885
|
+
RotateKeyOnDemandResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
886
|
+
RotateKeyOnDemandResponse.struct_class = Types::RotateKeyOnDemandResponse
|
|
887
|
+
|
|
888
|
+
RotationsList.member = Shapes::ShapeRef.new(shape: RotationsListEntry)
|
|
889
|
+
|
|
890
|
+
RotationsListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
891
|
+
RotationsListEntry.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
892
|
+
RotationsListEntry.add_member(:key_material_description, Shapes::ShapeRef.new(shape: KeyMaterialDescriptionType, location_name: "KeyMaterialDescription"))
|
|
893
|
+
RotationsListEntry.add_member(:import_state, Shapes::ShapeRef.new(shape: ImportState, location_name: "ImportState"))
|
|
894
|
+
RotationsListEntry.add_member(:key_material_state, Shapes::ShapeRef.new(shape: KeyMaterialState, location_name: "KeyMaterialState"))
|
|
895
|
+
RotationsListEntry.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
|
896
|
+
RotationsListEntry.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
|
|
897
|
+
RotationsListEntry.add_member(:rotation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "RotationDate"))
|
|
898
|
+
RotationsListEntry.add_member(:rotation_type, Shapes::ShapeRef.new(shape: RotationType, location_name: "RotationType"))
|
|
899
|
+
RotationsListEntry.struct_class = Types::RotationsListEntry
|
|
900
|
+
|
|
795
901
|
ScheduleKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
796
902
|
ScheduleKeyDeletionRequest.add_member(:pending_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingWindowInDays"))
|
|
797
903
|
ScheduleKeyDeletionRequest.struct_class = Types::ScheduleKeyDeletionRequest
|
|
@@ -850,6 +956,7 @@ module Aws::KMS
|
|
|
850
956
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "XksProxyUriEndpoint"))
|
|
851
957
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "XksProxyUriPath"))
|
|
852
958
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "XksProxyVpcEndpointServiceName"))
|
|
959
|
+
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_owner, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "XksProxyVpcEndpointServiceOwner"))
|
|
853
960
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_authentication_credential, Shapes::ShapeRef.new(shape: XksProxyAuthenticationCredentialType, location_name: "XksProxyAuthenticationCredential"))
|
|
854
961
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_connectivity, Shapes::ShapeRef.new(shape: XksProxyConnectivityType, location_name: "XksProxyConnectivity"))
|
|
855
962
|
UpdateCustomKeyStoreRequest.struct_class = Types::UpdateCustomKeyStoreRequest
|
|
@@ -912,6 +1019,7 @@ module Aws::KMS
|
|
|
912
1019
|
XksProxyConfigurationType.add_member(:uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "UriEndpoint"))
|
|
913
1020
|
XksProxyConfigurationType.add_member(:uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "UriPath"))
|
|
914
1021
|
XksProxyConfigurationType.add_member(:vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "VpcEndpointServiceName"))
|
|
1022
|
+
XksProxyConfigurationType.add_member(:vpc_endpoint_service_owner, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "VpcEndpointServiceOwner"))
|
|
915
1023
|
XksProxyConfigurationType.struct_class = Types::XksProxyConfigurationType
|
|
916
1024
|
|
|
917
1025
|
XksProxyIncorrectAuthenticationCredentialException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
@@ -949,9 +1057,11 @@ module Aws::KMS
|
|
|
949
1057
|
|
|
950
1058
|
api.metadata = {
|
|
951
1059
|
"apiVersion" => "2014-11-01",
|
|
1060
|
+
"auth" => ["aws.auth#sigv4"],
|
|
952
1061
|
"endpointPrefix" => "kms",
|
|
953
1062
|
"jsonVersion" => "1.1",
|
|
954
1063
|
"protocol" => "json",
|
|
1064
|
+
"protocols" => ["json"],
|
|
955
1065
|
"serviceAbbreviation" => "KMS",
|
|
956
1066
|
"serviceFullName" => "AWS Key Management Service",
|
|
957
1067
|
"serviceId" => "KMS",
|
|
@@ -1112,7 +1222,7 @@ module Aws::KMS
|
|
|
1112
1222
|
o.http_method = "POST"
|
|
1113
1223
|
o.http_request_uri = "/"
|
|
1114
1224
|
o.input = Shapes::ShapeRef.new(shape: DeleteImportedKeyMaterialRequest)
|
|
1115
|
-
o.output = Shapes::ShapeRef.new(shape:
|
|
1225
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteImportedKeyMaterialResponse)
|
|
1116
1226
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
|
1117
1227
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
|
1118
1228
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
|
@@ -1121,6 +1231,23 @@ module Aws::KMS
|
|
|
1121
1231
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
1122
1232
|
end)
|
|
1123
1233
|
|
|
1234
|
+
api.add_operation(:derive_shared_secret, Seahorse::Model::Operation.new.tap do |o|
|
|
1235
|
+
o.name = "DeriveSharedSecret"
|
|
1236
|
+
o.http_method = "POST"
|
|
1237
|
+
o.http_request_uri = "/"
|
|
1238
|
+
o.input = Shapes::ShapeRef.new(shape: DeriveSharedSecretRequest)
|
|
1239
|
+
o.output = Shapes::ShapeRef.new(shape: DeriveSharedSecretResponse)
|
|
1240
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
1241
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
|
1242
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
|
1243
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
|
1244
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
|
1245
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
|
1246
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1247
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
1248
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
|
1249
|
+
end)
|
|
1250
|
+
|
|
1124
1251
|
api.add_operation(:describe_custom_key_stores, Seahorse::Model::Operation.new.tap do |o|
|
|
1125
1252
|
o.name = "DescribeCustomKeyStores"
|
|
1126
1253
|
o.http_method = "POST"
|
|
@@ -1131,6 +1258,7 @@ module Aws::KMS
|
|
|
1131
1258
|
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
|
1132
1259
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1133
1260
|
o[:pager] = Aws::Pager.new(
|
|
1261
|
+
more_results: "truncated",
|
|
1134
1262
|
limit_key: "limit",
|
|
1135
1263
|
tokens: {
|
|
1136
1264
|
"next_marker" => "marker"
|
|
@@ -1423,6 +1551,7 @@ module Aws::KMS
|
|
|
1423
1551
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
|
1424
1552
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
1425
1553
|
o[:pager] = Aws::Pager.new(
|
|
1554
|
+
more_results: "truncated",
|
|
1426
1555
|
limit_key: "limit",
|
|
1427
1556
|
tokens: {
|
|
1428
1557
|
"next_marker" => "marker"
|
|
@@ -1444,6 +1573,7 @@ module Aws::KMS
|
|
|
1444
1573
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1445
1574
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
1446
1575
|
o[:pager] = Aws::Pager.new(
|
|
1576
|
+
more_results: "truncated",
|
|
1447
1577
|
limit_key: "limit",
|
|
1448
1578
|
tokens: {
|
|
1449
1579
|
"next_marker" => "marker"
|
|
@@ -1463,6 +1593,28 @@ module Aws::KMS
|
|
|
1463
1593
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1464
1594
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
1465
1595
|
o[:pager] = Aws::Pager.new(
|
|
1596
|
+
more_results: "truncated",
|
|
1597
|
+
limit_key: "limit",
|
|
1598
|
+
tokens: {
|
|
1599
|
+
"next_marker" => "marker"
|
|
1600
|
+
}
|
|
1601
|
+
)
|
|
1602
|
+
end)
|
|
1603
|
+
|
|
1604
|
+
api.add_operation(:list_key_rotations, Seahorse::Model::Operation.new.tap do |o|
|
|
1605
|
+
o.name = "ListKeyRotations"
|
|
1606
|
+
o.http_method = "POST"
|
|
1607
|
+
o.http_request_uri = "/"
|
|
1608
|
+
o.input = Shapes::ShapeRef.new(shape: ListKeyRotationsRequest)
|
|
1609
|
+
o.output = Shapes::ShapeRef.new(shape: ListKeyRotationsResponse)
|
|
1610
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
1611
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
|
1612
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
|
1613
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1614
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
1615
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
|
1616
|
+
o[:pager] = Aws::Pager.new(
|
|
1617
|
+
more_results: "truncated",
|
|
1466
1618
|
limit_key: "limit",
|
|
1467
1619
|
tokens: {
|
|
1468
1620
|
"next_marker" => "marker"
|
|
@@ -1480,6 +1632,7 @@ module Aws::KMS
|
|
|
1480
1632
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1481
1633
|
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
|
1482
1634
|
o[:pager] = Aws::Pager.new(
|
|
1635
|
+
more_results: "truncated",
|
|
1483
1636
|
limit_key: "limit",
|
|
1484
1637
|
tokens: {
|
|
1485
1638
|
"next_marker" => "marker"
|
|
@@ -1498,6 +1651,7 @@ module Aws::KMS
|
|
|
1498
1651
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
|
1499
1652
|
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
|
1500
1653
|
o[:pager] = Aws::Pager.new(
|
|
1654
|
+
more_results: "truncated",
|
|
1501
1655
|
limit_key: "limit",
|
|
1502
1656
|
tokens: {
|
|
1503
1657
|
"next_marker" => "marker"
|
|
@@ -1517,6 +1671,7 @@ module Aws::KMS
|
|
|
1517
1671
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
1518
1672
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1519
1673
|
o[:pager] = Aws::Pager.new(
|
|
1674
|
+
more_results: "truncated",
|
|
1520
1675
|
limit_key: "limit",
|
|
1521
1676
|
tokens: {
|
|
1522
1677
|
"next_marker" => "marker"
|
|
@@ -1608,6 +1763,23 @@ module Aws::KMS
|
|
|
1608
1763
|
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
|
1609
1764
|
end)
|
|
1610
1765
|
|
|
1766
|
+
api.add_operation(:rotate_key_on_demand, Seahorse::Model::Operation.new.tap do |o|
|
|
1767
|
+
o.name = "RotateKeyOnDemand"
|
|
1768
|
+
o.http_method = "POST"
|
|
1769
|
+
o.http_request_uri = "/"
|
|
1770
|
+
o.input = Shapes::ShapeRef.new(shape: RotateKeyOnDemandRequest)
|
|
1771
|
+
o.output = Shapes::ShapeRef.new(shape: RotateKeyOnDemandResponse)
|
|
1772
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
1773
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
|
1774
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
|
1775
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
|
1776
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1777
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
1778
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
|
1779
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
|
1780
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
1781
|
+
end)
|
|
1782
|
+
|
|
1611
1783
|
api.add_operation(:schedule_key_deletion, Seahorse::Model::Operation.new.tap do |o|
|
|
1612
1784
|
o.name = "ScheduleKeyDeletion"
|
|
1613
1785
|
o.http_method = "POST"
|
|
@@ -13,22 +13,22 @@ module Aws::KMS
|
|
|
13
13
|
# @!attribute region
|
|
14
14
|
# The AWS region used to dispatch the request.
|
|
15
15
|
#
|
|
16
|
-
# @return [
|
|
16
|
+
# @return [string]
|
|
17
17
|
#
|
|
18
18
|
# @!attribute use_dual_stack
|
|
19
19
|
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
|
20
20
|
#
|
|
21
|
-
# @return [
|
|
21
|
+
# @return [boolean]
|
|
22
22
|
#
|
|
23
23
|
# @!attribute use_fips
|
|
24
24
|
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
|
25
25
|
#
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [boolean]
|
|
27
27
|
#
|
|
28
28
|
# @!attribute endpoint
|
|
29
29
|
# Override the endpoint used to send this request
|
|
30
30
|
#
|
|
31
|
-
# @return [
|
|
31
|
+
# @return [string]
|
|
32
32
|
#
|
|
33
33
|
EndpointParameters = Struct.new(
|
|
34
34
|
:region,
|
|
@@ -52,15 +52,18 @@ module Aws::KMS
|
|
|
52
52
|
self[:region] = options[:region]
|
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
|
54
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
|
55
|
-
if self[:use_dual_stack].nil?
|
|
56
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
|
57
|
-
end
|
|
58
55
|
self[:use_fips] = options[:use_fips]
|
|
59
56
|
self[:use_fips] = false if self[:use_fips].nil?
|
|
60
|
-
if self[:use_fips].nil?
|
|
61
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
|
62
|
-
end
|
|
63
57
|
self[:endpoint] = options[:endpoint]
|
|
64
58
|
end
|
|
59
|
+
|
|
60
|
+
def self.create(config, options={})
|
|
61
|
+
new({
|
|
62
|
+
region: config.region,
|
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
|
64
|
+
use_fips: config.use_fips_endpoint,
|
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
|
66
|
+
}.merge(options))
|
|
67
|
+
end
|
|
65
68
|
end
|
|
66
69
|
end
|