aws-sdk-kms 1.88.0 → 1.145.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 +285 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kms/client.rb +2264 -915
- data/lib/aws-sdk-kms/client_api.rb +168 -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 -740
- data/lib/aws-sdk-kms/plugins/endpoints.rb +19 -118
- data/lib/aws-sdk-kms/types.rb +1400 -424
- data/lib/aws-sdk-kms.rb +15 -11
- data/sig/client.rbs +116 -35
- data/sig/errors.rbs +48 -48
- data/sig/resource.rbs +6 -0
- data/sig/types.rbs +117 -21
- metadata +6 -9
|
@@ -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
|
+
CloudTrailEventIdType = Shapes::StringShape.new(name: 'CloudTrailEventIdType')
|
|
34
39
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
35
40
|
ConnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreRequest')
|
|
36
41
|
ConnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreResponse')
|
|
@@ -56,12 +61,15 @@ module Aws::KMS
|
|
|
56
61
|
DataKeyPairSpec = Shapes::StringShape.new(name: 'DataKeyPairSpec')
|
|
57
62
|
DataKeySpec = Shapes::StringShape.new(name: 'DataKeySpec')
|
|
58
63
|
DateType = Shapes::TimestampShape.new(name: 'DateType')
|
|
64
|
+
DecapsulateRequest = Shapes::StructureShape.new(name: 'DecapsulateRequest')
|
|
65
|
+
DecapsulateResponse = Shapes::StructureShape.new(name: 'DecapsulateResponse')
|
|
59
66
|
DecryptRequest = Shapes::StructureShape.new(name: 'DecryptRequest')
|
|
60
67
|
DecryptResponse = Shapes::StructureShape.new(name: 'DecryptResponse')
|
|
61
68
|
DeleteAliasRequest = Shapes::StructureShape.new(name: 'DeleteAliasRequest')
|
|
62
69
|
DeleteCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreRequest')
|
|
63
70
|
DeleteCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreResponse')
|
|
64
71
|
DeleteImportedKeyMaterialRequest = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialRequest')
|
|
72
|
+
DeleteImportedKeyMaterialResponse = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialResponse')
|
|
65
73
|
DependencyTimeoutException = Shapes::StructureShape.new(name: 'DependencyTimeoutException')
|
|
66
74
|
DeriveSharedSecretRequest = Shapes::StructureShape.new(name: 'DeriveSharedSecretRequest')
|
|
67
75
|
DeriveSharedSecretResponse = Shapes::StructureShape.new(name: 'DeriveSharedSecretResponse')
|
|
@@ -75,9 +83,15 @@ module Aws::KMS
|
|
|
75
83
|
DisabledException = Shapes::StructureShape.new(name: 'DisabledException')
|
|
76
84
|
DisconnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreRequest')
|
|
77
85
|
DisconnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreResponse')
|
|
86
|
+
DryRunModifierList = Shapes::ListShape.new(name: 'DryRunModifierList')
|
|
87
|
+
DryRunModifierType = Shapes::StringShape.new(name: 'DryRunModifierType')
|
|
78
88
|
DryRunOperationException = Shapes::StructureShape.new(name: 'DryRunOperationException')
|
|
79
89
|
EnableKeyRequest = Shapes::StructureShape.new(name: 'EnableKeyRequest')
|
|
80
90
|
EnableKeyRotationRequest = Shapes::StructureShape.new(name: 'EnableKeyRotationRequest')
|
|
91
|
+
EncapsulateRequest = Shapes::StructureShape.new(name: 'EncapsulateRequest')
|
|
92
|
+
EncapsulateResponse = Shapes::StructureShape.new(name: 'EncapsulateResponse')
|
|
93
|
+
EncapsulationAlgorithmSpec = Shapes::StringShape.new(name: 'EncapsulationAlgorithmSpec')
|
|
94
|
+
EncapsulationAlgorithmSpecList = Shapes::ListShape.new(name: 'EncapsulationAlgorithmSpecList')
|
|
81
95
|
EncryptRequest = Shapes::StructureShape.new(name: 'EncryptRequest')
|
|
82
96
|
EncryptResponse = Shapes::StructureShape.new(name: 'EncryptResponse')
|
|
83
97
|
EncryptionAlgorithmSpec = Shapes::StringShape.new(name: 'EncryptionAlgorithmSpec')
|
|
@@ -100,6 +114,8 @@ module Aws::KMS
|
|
|
100
114
|
GenerateMacResponse = Shapes::StructureShape.new(name: 'GenerateMacResponse')
|
|
101
115
|
GenerateRandomRequest = Shapes::StructureShape.new(name: 'GenerateRandomRequest')
|
|
102
116
|
GenerateRandomResponse = Shapes::StructureShape.new(name: 'GenerateRandomResponse')
|
|
117
|
+
GetKeyLastUsageRequest = Shapes::StructureShape.new(name: 'GetKeyLastUsageRequest')
|
|
118
|
+
GetKeyLastUsageResponse = Shapes::StructureShape.new(name: 'GetKeyLastUsageResponse')
|
|
103
119
|
GetKeyPolicyRequest = Shapes::StructureShape.new(name: 'GetKeyPolicyRequest')
|
|
104
120
|
GetKeyPolicyResponse = Shapes::StructureShape.new(name: 'GetKeyPolicyResponse')
|
|
105
121
|
GetKeyRotationStatusRequest = Shapes::StructureShape.new(name: 'GetKeyRotationStatusRequest')
|
|
@@ -108,6 +124,7 @@ module Aws::KMS
|
|
|
108
124
|
GetParametersForImportResponse = Shapes::StructureShape.new(name: 'GetParametersForImportResponse')
|
|
109
125
|
GetPublicKeyRequest = Shapes::StructureShape.new(name: 'GetPublicKeyRequest')
|
|
110
126
|
GetPublicKeyResponse = Shapes::StructureShape.new(name: 'GetPublicKeyResponse')
|
|
127
|
+
GrantConstraintSourceArnType = Shapes::StringShape.new(name: 'GrantConstraintSourceArnType')
|
|
111
128
|
GrantConstraints = Shapes::StructureShape.new(name: 'GrantConstraints')
|
|
112
129
|
GrantIdType = Shapes::StringShape.new(name: 'GrantIdType')
|
|
113
130
|
GrantList = Shapes::ListShape.new(name: 'GrantList')
|
|
@@ -119,6 +136,9 @@ module Aws::KMS
|
|
|
119
136
|
GrantTokenType = Shapes::StringShape.new(name: 'GrantTokenType')
|
|
120
137
|
ImportKeyMaterialRequest = Shapes::StructureShape.new(name: 'ImportKeyMaterialRequest')
|
|
121
138
|
ImportKeyMaterialResponse = Shapes::StructureShape.new(name: 'ImportKeyMaterialResponse')
|
|
139
|
+
ImportState = Shapes::StringShape.new(name: 'ImportState')
|
|
140
|
+
ImportType = Shapes::StringShape.new(name: 'ImportType')
|
|
141
|
+
IncludeKeyMaterial = Shapes::StringShape.new(name: 'IncludeKeyMaterial')
|
|
122
142
|
IncorrectKeyException = Shapes::StructureShape.new(name: 'IncorrectKeyException')
|
|
123
143
|
IncorrectKeyMaterialException = Shapes::StructureShape.new(name: 'IncorrectKeyMaterialException')
|
|
124
144
|
IncorrectTrustAnchorException = Shapes::StructureShape.new(name: 'IncorrectTrustAnchorException')
|
|
@@ -138,15 +158,20 @@ module Aws::KMS
|
|
|
138
158
|
KeyAgreementAlgorithmSpecList = Shapes::ListShape.new(name: 'KeyAgreementAlgorithmSpecList')
|
|
139
159
|
KeyEncryptionMechanism = Shapes::StringShape.new(name: 'KeyEncryptionMechanism')
|
|
140
160
|
KeyIdType = Shapes::StringShape.new(name: 'KeyIdType')
|
|
161
|
+
KeyLastUsageData = Shapes::StructureShape.new(name: 'KeyLastUsageData')
|
|
162
|
+
KeyLastUsageTrackingOperation = Shapes::StringShape.new(name: 'KeyLastUsageTrackingOperation')
|
|
141
163
|
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
|
142
164
|
KeyListEntry = Shapes::StructureShape.new(name: 'KeyListEntry')
|
|
143
165
|
KeyManagerType = Shapes::StringShape.new(name: 'KeyManagerType')
|
|
166
|
+
KeyMaterialDescriptionType = Shapes::StringShape.new(name: 'KeyMaterialDescriptionType')
|
|
167
|
+
KeyMaterialState = Shapes::StringShape.new(name: 'KeyMaterialState')
|
|
144
168
|
KeyMetadata = Shapes::StructureShape.new(name: 'KeyMetadata')
|
|
145
169
|
KeySpec = Shapes::StringShape.new(name: 'KeySpec')
|
|
146
170
|
KeyState = Shapes::StringShape.new(name: 'KeyState')
|
|
147
171
|
KeyStorePasswordType = Shapes::StringShape.new(name: 'KeyStorePasswordType')
|
|
148
172
|
KeyUnavailableException = Shapes::StructureShape.new(name: 'KeyUnavailableException')
|
|
149
173
|
KeyUsageType = Shapes::StringShape.new(name: 'KeyUsageType')
|
|
174
|
+
KmsRequestIdType = Shapes::StringShape.new(name: 'KmsRequestIdType')
|
|
150
175
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
|
151
176
|
LimitType = Shapes::IntegerShape.new(name: 'LimitType')
|
|
152
177
|
ListAliasesRequest = Shapes::StructureShape.new(name: 'ListAliasesRequest')
|
|
@@ -189,6 +214,8 @@ module Aws::KMS
|
|
|
189
214
|
RegionType = Shapes::StringShape.new(name: 'RegionType')
|
|
190
215
|
ReplicateKeyRequest = Shapes::StructureShape.new(name: 'ReplicateKeyRequest')
|
|
191
216
|
ReplicateKeyResponse = Shapes::StructureShape.new(name: 'ReplicateKeyResponse')
|
|
217
|
+
ResourceOwnerType = Shapes::StringShape.new(name: 'ResourceOwnerType')
|
|
218
|
+
ResourceOwnersList = Shapes::ListShape.new(name: 'ResourceOwnersList')
|
|
192
219
|
RetireGrantRequest = Shapes::StructureShape.new(name: 'RetireGrantRequest')
|
|
193
220
|
RevokeGrantRequest = Shapes::StructureShape.new(name: 'RevokeGrantRequest')
|
|
194
221
|
RotateKeyOnDemandRequest = Shapes::StructureShape.new(name: 'RotateKeyOnDemandRequest')
|
|
@@ -199,6 +226,7 @@ module Aws::KMS
|
|
|
199
226
|
RotationsListEntry = Shapes::StructureShape.new(name: 'RotationsListEntry')
|
|
200
227
|
ScheduleKeyDeletionRequest = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionRequest')
|
|
201
228
|
ScheduleKeyDeletionResponse = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionResponse')
|
|
229
|
+
ServicePrincipalType = Shapes::StringShape.new(name: 'ServicePrincipalType')
|
|
202
230
|
SignRequest = Shapes::StructureShape.new(name: 'SignRequest')
|
|
203
231
|
SignResponse = Shapes::StructureShape.new(name: 'SignResponse')
|
|
204
232
|
SigningAlgorithmSpec = Shapes::StringShape.new(name: 'SigningAlgorithmSpec')
|
|
@@ -299,6 +327,7 @@ module Aws::KMS
|
|
|
299
327
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "XksProxyUriEndpoint"))
|
|
300
328
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "XksProxyUriPath"))
|
|
301
329
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "XksProxyVpcEndpointServiceName"))
|
|
330
|
+
CreateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_owner, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "XksProxyVpcEndpointServiceOwner"))
|
|
302
331
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_authentication_credential, Shapes::ShapeRef.new(shape: XksProxyAuthenticationCredentialType, location_name: "XksProxyAuthenticationCredential"))
|
|
303
332
|
CreateCustomKeyStoreRequest.add_member(:xks_proxy_connectivity, Shapes::ShapeRef.new(shape: XksProxyConnectivityType, location_name: "XksProxyConnectivity"))
|
|
304
333
|
CreateCustomKeyStoreRequest.struct_class = Types::CreateCustomKeyStoreRequest
|
|
@@ -307,13 +336,15 @@ module Aws::KMS
|
|
|
307
336
|
CreateCustomKeyStoreResponse.struct_class = Types::CreateCustomKeyStoreResponse
|
|
308
337
|
|
|
309
338
|
CreateGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
310
|
-
CreateGrantRequest.add_member(:grantee_principal, Shapes::ShapeRef.new(shape: PrincipalIdType,
|
|
339
|
+
CreateGrantRequest.add_member(:grantee_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "GranteePrincipal"))
|
|
311
340
|
CreateGrantRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "RetiringPrincipal"))
|
|
312
341
|
CreateGrantRequest.add_member(:operations, Shapes::ShapeRef.new(shape: GrantOperationList, required: true, location_name: "Operations"))
|
|
313
342
|
CreateGrantRequest.add_member(:constraints, Shapes::ShapeRef.new(shape: GrantConstraints, location_name: "Constraints"))
|
|
314
343
|
CreateGrantRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
|
315
344
|
CreateGrantRequest.add_member(:name, Shapes::ShapeRef.new(shape: GrantNameType, location_name: "Name"))
|
|
316
345
|
CreateGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
346
|
+
CreateGrantRequest.add_member(:grantee_service_principal, Shapes::ShapeRef.new(shape: ServicePrincipalType, location_name: "GranteeServicePrincipal"))
|
|
347
|
+
CreateGrantRequest.add_member(:retiring_service_principal, Shapes::ShapeRef.new(shape: ServicePrincipalType, location_name: "RetiringServicePrincipal"))
|
|
317
348
|
CreateGrantRequest.struct_class = Types::CreateGrantRequest
|
|
318
349
|
|
|
319
350
|
CreateGrantResponse.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
|
@@ -323,7 +354,7 @@ module Aws::KMS
|
|
|
323
354
|
CreateKeyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
|
|
324
355
|
CreateKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
|
|
325
356
|
CreateKeyRequest.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
|
326
|
-
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."}))
|
|
357
|
+
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."}))
|
|
327
358
|
CreateKeyRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: KeySpec, location_name: "KeySpec"))
|
|
328
359
|
CreateKeyRequest.add_member(:origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "Origin"))
|
|
329
360
|
CreateKeyRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
|
|
@@ -361,19 +392,33 @@ module Aws::KMS
|
|
|
361
392
|
CustomKeyStoresListEntry.add_member(:xks_proxy_configuration, Shapes::ShapeRef.new(shape: XksProxyConfigurationType, location_name: "XksProxyConfiguration"))
|
|
362
393
|
CustomKeyStoresListEntry.struct_class = Types::CustomKeyStoresListEntry
|
|
363
394
|
|
|
364
|
-
|
|
395
|
+
DecapsulateRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
396
|
+
DecapsulateRequest.add_member(:shared_secret_ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "SharedSecretCiphertextBlob"))
|
|
397
|
+
DecapsulateRequest.add_member(:encapsulation_algorithm, Shapes::ShapeRef.new(shape: EncapsulationAlgorithmSpec, required: true, location_name: "EncapsulationAlgorithm"))
|
|
398
|
+
DecapsulateRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
|
399
|
+
DecapsulateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
400
|
+
DecapsulateRequest.struct_class = Types::DecapsulateRequest
|
|
401
|
+
|
|
402
|
+
DecapsulateResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
403
|
+
DecapsulateResponse.add_member(:shared_secret, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "SharedSecret"))
|
|
404
|
+
DecapsulateResponse.add_member(:encapsulation_algorithm, Shapes::ShapeRef.new(shape: EncapsulationAlgorithmSpec, location_name: "EncapsulationAlgorithm"))
|
|
405
|
+
DecapsulateResponse.struct_class = Types::DecapsulateResponse
|
|
406
|
+
|
|
407
|
+
DecryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
|
365
408
|
DecryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
|
366
409
|
DecryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
|
367
410
|
DecryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
368
411
|
DecryptRequest.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
|
369
412
|
DecryptRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
|
370
413
|
DecryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
414
|
+
DecryptRequest.add_member(:dry_run_modifiers, Shapes::ShapeRef.new(shape: DryRunModifierList, location_name: "DryRunModifiers"))
|
|
371
415
|
DecryptRequest.struct_class = Types::DecryptRequest
|
|
372
416
|
|
|
373
417
|
DecryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
374
418
|
DecryptResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
|
375
419
|
DecryptResponse.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
|
376
420
|
DecryptResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
|
421
|
+
DecryptResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
377
422
|
DecryptResponse.struct_class = Types::DecryptResponse
|
|
378
423
|
|
|
379
424
|
DeleteAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
|
|
@@ -385,8 +430,13 @@ module Aws::KMS
|
|
|
385
430
|
DeleteCustomKeyStoreResponse.struct_class = Types::DeleteCustomKeyStoreResponse
|
|
386
431
|
|
|
387
432
|
DeleteImportedKeyMaterialRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
433
|
+
DeleteImportedKeyMaterialRequest.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
388
434
|
DeleteImportedKeyMaterialRequest.struct_class = Types::DeleteImportedKeyMaterialRequest
|
|
389
435
|
|
|
436
|
+
DeleteImportedKeyMaterialResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
437
|
+
DeleteImportedKeyMaterialResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdResponseType, location_name: "KeyMaterialId"))
|
|
438
|
+
DeleteImportedKeyMaterialResponse.struct_class = Types::DeleteImportedKeyMaterialResponse
|
|
439
|
+
|
|
390
440
|
DependencyTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
391
441
|
DependencyTimeoutException.struct_class = Types::DependencyTimeoutException
|
|
392
442
|
|
|
@@ -437,6 +487,8 @@ module Aws::KMS
|
|
|
437
487
|
|
|
438
488
|
DisconnectCustomKeyStoreResponse.struct_class = Types::DisconnectCustomKeyStoreResponse
|
|
439
489
|
|
|
490
|
+
DryRunModifierList.member = Shapes::ShapeRef.new(shape: DryRunModifierType)
|
|
491
|
+
|
|
440
492
|
DryRunOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
441
493
|
DryRunOperationException.struct_class = Types::DryRunOperationException
|
|
442
494
|
|
|
@@ -447,6 +499,20 @@ module Aws::KMS
|
|
|
447
499
|
EnableKeyRotationRequest.add_member(:rotation_period_in_days, Shapes::ShapeRef.new(shape: RotationPeriodInDaysType, location_name: "RotationPeriodInDays"))
|
|
448
500
|
EnableKeyRotationRequest.struct_class = Types::EnableKeyRotationRequest
|
|
449
501
|
|
|
502
|
+
EncapsulateRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
503
|
+
EncapsulateRequest.add_member(:encapsulation_algorithm, Shapes::ShapeRef.new(shape: EncapsulationAlgorithmSpec, required: true, location_name: "EncapsulationAlgorithm"))
|
|
504
|
+
EncapsulateRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
|
505
|
+
EncapsulateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
506
|
+
EncapsulateRequest.struct_class = Types::EncapsulateRequest
|
|
507
|
+
|
|
508
|
+
EncapsulateResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
509
|
+
EncapsulateResponse.add_member(:shared_secret, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "SharedSecret"))
|
|
510
|
+
EncapsulateResponse.add_member(:shared_secret_ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "SharedSecretCiphertextBlob"))
|
|
511
|
+
EncapsulateResponse.add_member(:encapsulation_algorithm, Shapes::ShapeRef.new(shape: EncapsulationAlgorithmSpec, location_name: "EncapsulationAlgorithm"))
|
|
512
|
+
EncapsulateResponse.struct_class = Types::EncapsulateResponse
|
|
513
|
+
|
|
514
|
+
EncapsulationAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: EncapsulationAlgorithmSpec)
|
|
515
|
+
|
|
450
516
|
EncryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
451
517
|
EncryptRequest.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Plaintext"))
|
|
452
518
|
EncryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
|
@@ -482,6 +548,7 @@ module Aws::KMS
|
|
|
482
548
|
GenerateDataKeyPairResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
483
549
|
GenerateDataKeyPairResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
|
484
550
|
GenerateDataKeyPairResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
|
551
|
+
GenerateDataKeyPairResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
485
552
|
GenerateDataKeyPairResponse.struct_class = Types::GenerateDataKeyPairResponse
|
|
486
553
|
|
|
487
554
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
|
@@ -495,6 +562,7 @@ module Aws::KMS
|
|
|
495
562
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
|
496
563
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
497
564
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, location_name: "KeyPairSpec"))
|
|
565
|
+
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
498
566
|
GenerateDataKeyPairWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyPairWithoutPlaintextResponse
|
|
499
567
|
|
|
500
568
|
GenerateDataKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
@@ -510,6 +578,7 @@ module Aws::KMS
|
|
|
510
578
|
GenerateDataKeyResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
|
511
579
|
GenerateDataKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
512
580
|
GenerateDataKeyResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
|
581
|
+
GenerateDataKeyResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
513
582
|
GenerateDataKeyResponse.struct_class = Types::GenerateDataKeyResponse
|
|
514
583
|
|
|
515
584
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
@@ -522,6 +591,7 @@ module Aws::KMS
|
|
|
522
591
|
|
|
523
592
|
GenerateDataKeyWithoutPlaintextResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
|
524
593
|
GenerateDataKeyWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
594
|
+
GenerateDataKeyWithoutPlaintextResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
525
595
|
GenerateDataKeyWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyWithoutPlaintextResponse
|
|
526
596
|
|
|
527
597
|
GenerateMacRequest.add_member(:message, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Message"))
|
|
@@ -545,6 +615,15 @@ module Aws::KMS
|
|
|
545
615
|
GenerateRandomResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
|
|
546
616
|
GenerateRandomResponse.struct_class = Types::GenerateRandomResponse
|
|
547
617
|
|
|
618
|
+
GetKeyLastUsageRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
619
|
+
GetKeyLastUsageRequest.struct_class = Types::GetKeyLastUsageRequest
|
|
620
|
+
|
|
621
|
+
GetKeyLastUsageResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
622
|
+
GetKeyLastUsageResponse.add_member(:key_last_usage, Shapes::ShapeRef.new(shape: KeyLastUsageData, location_name: "KeyLastUsage"))
|
|
623
|
+
GetKeyLastUsageResponse.add_member(:tracking_start_date, Shapes::ShapeRef.new(shape: DateType, location_name: "TrackingStartDate"))
|
|
624
|
+
GetKeyLastUsageResponse.add_member(:key_creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "KeyCreationDate"))
|
|
625
|
+
GetKeyLastUsageResponse.struct_class = Types::GetKeyLastUsageResponse
|
|
626
|
+
|
|
548
627
|
GetKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
549
628
|
GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
|
|
550
629
|
GetKeyPolicyRequest.struct_class = Types::GetKeyPolicyRequest
|
|
@@ -580,16 +659,18 @@ module Aws::KMS
|
|
|
580
659
|
|
|
581
660
|
GetPublicKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
582
661
|
GetPublicKeyResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, location_name: "PublicKey"))
|
|
583
|
-
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."}))
|
|
662
|
+
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."}))
|
|
584
663
|
GetPublicKeyResponse.add_member(:key_spec, Shapes::ShapeRef.new(shape: KeySpec, location_name: "KeySpec"))
|
|
585
664
|
GetPublicKeyResponse.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
|
586
665
|
GetPublicKeyResponse.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
|
|
587
666
|
GetPublicKeyResponse.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
|
|
588
667
|
GetPublicKeyResponse.add_member(:key_agreement_algorithms, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpecList, location_name: "KeyAgreementAlgorithms"))
|
|
668
|
+
GetPublicKeyResponse.add_member(:encapsulation_algorithms, Shapes::ShapeRef.new(shape: EncapsulationAlgorithmSpecList, location_name: "EncapsulationAlgorithms"))
|
|
589
669
|
GetPublicKeyResponse.struct_class = Types::GetPublicKeyResponse
|
|
590
670
|
|
|
591
671
|
GrantConstraints.add_member(:encryption_context_subset, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextSubset"))
|
|
592
672
|
GrantConstraints.add_member(:encryption_context_equals, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextEquals"))
|
|
673
|
+
GrantConstraints.add_member(:source_arn, Shapes::ShapeRef.new(shape: GrantConstraintSourceArnType, location_name: "SourceArn"))
|
|
593
674
|
GrantConstraints.struct_class = Types::GrantConstraints
|
|
594
675
|
|
|
595
676
|
GrantList.member = Shapes::ShapeRef.new(shape: GrantListEntry)
|
|
@@ -603,6 +684,8 @@ module Aws::KMS
|
|
|
603
684
|
GrantListEntry.add_member(:issuing_account, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "IssuingAccount"))
|
|
604
685
|
GrantListEntry.add_member(:operations, Shapes::ShapeRef.new(shape: GrantOperationList, location_name: "Operations"))
|
|
605
686
|
GrantListEntry.add_member(:constraints, Shapes::ShapeRef.new(shape: GrantConstraints, location_name: "Constraints"))
|
|
687
|
+
GrantListEntry.add_member(:grantee_service_principal, Shapes::ShapeRef.new(shape: ServicePrincipalType, location_name: "GranteeServicePrincipal"))
|
|
688
|
+
GrantListEntry.add_member(:retiring_service_principal, Shapes::ShapeRef.new(shape: ServicePrincipalType, location_name: "RetiringServicePrincipal"))
|
|
606
689
|
GrantListEntry.struct_class = Types::GrantListEntry
|
|
607
690
|
|
|
608
691
|
GrantOperationList.member = Shapes::ShapeRef.new(shape: GrantOperation)
|
|
@@ -614,8 +697,13 @@ module Aws::KMS
|
|
|
614
697
|
ImportKeyMaterialRequest.add_member(:encrypted_key_material, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "EncryptedKeyMaterial"))
|
|
615
698
|
ImportKeyMaterialRequest.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
|
|
616
699
|
ImportKeyMaterialRequest.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
|
700
|
+
ImportKeyMaterialRequest.add_member(:import_type, Shapes::ShapeRef.new(shape: ImportType, location_name: "ImportType"))
|
|
701
|
+
ImportKeyMaterialRequest.add_member(:key_material_description, Shapes::ShapeRef.new(shape: KeyMaterialDescriptionType, location_name: "KeyMaterialDescription"))
|
|
702
|
+
ImportKeyMaterialRequest.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
617
703
|
ImportKeyMaterialRequest.struct_class = Types::ImportKeyMaterialRequest
|
|
618
704
|
|
|
705
|
+
ImportKeyMaterialResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
706
|
+
ImportKeyMaterialResponse.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
619
707
|
ImportKeyMaterialResponse.struct_class = Types::ImportKeyMaterialResponse
|
|
620
708
|
|
|
621
709
|
IncorrectKeyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
@@ -665,6 +753,12 @@ module Aws::KMS
|
|
|
665
753
|
|
|
666
754
|
KeyAgreementAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec)
|
|
667
755
|
|
|
756
|
+
KeyLastUsageData.add_member(:operation, Shapes::ShapeRef.new(shape: KeyLastUsageTrackingOperation, location_name: "Operation"))
|
|
757
|
+
KeyLastUsageData.add_member(:timestamp, Shapes::ShapeRef.new(shape: DateType, location_name: "Timestamp"))
|
|
758
|
+
KeyLastUsageData.add_member(:cloud_trail_event_id, Shapes::ShapeRef.new(shape: CloudTrailEventIdType, location_name: "CloudTrailEventId"))
|
|
759
|
+
KeyLastUsageData.add_member(:kms_request_id, Shapes::ShapeRef.new(shape: KmsRequestIdType, location_name: "KmsRequestId"))
|
|
760
|
+
KeyLastUsageData.struct_class = Types::KeyLastUsageData
|
|
761
|
+
|
|
668
762
|
KeyList.member = Shapes::ShapeRef.new(shape: KeyListEntry)
|
|
669
763
|
|
|
670
764
|
KeyListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
@@ -686,16 +780,18 @@ module Aws::KMS
|
|
|
686
780
|
KeyMetadata.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, location_name: "CloudHsmClusterId"))
|
|
687
781
|
KeyMetadata.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
|
688
782
|
KeyMetadata.add_member(:key_manager, Shapes::ShapeRef.new(shape: KeyManagerType, location_name: "KeyManager"))
|
|
689
|
-
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."}))
|
|
783
|
+
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."}))
|
|
690
784
|
KeyMetadata.add_member(:key_spec, Shapes::ShapeRef.new(shape: KeySpec, location_name: "KeySpec"))
|
|
691
785
|
KeyMetadata.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
|
|
692
786
|
KeyMetadata.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
|
|
693
787
|
KeyMetadata.add_member(:key_agreement_algorithms, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpecList, location_name: "KeyAgreementAlgorithms"))
|
|
788
|
+
KeyMetadata.add_member(:encapsulation_algorithms, Shapes::ShapeRef.new(shape: EncapsulationAlgorithmSpecList, location_name: "EncapsulationAlgorithms"))
|
|
694
789
|
KeyMetadata.add_member(:multi_region, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "MultiRegion"))
|
|
695
790
|
KeyMetadata.add_member(:multi_region_configuration, Shapes::ShapeRef.new(shape: MultiRegionConfiguration, location_name: "MultiRegionConfiguration"))
|
|
696
791
|
KeyMetadata.add_member(:pending_deletion_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingDeletionWindowInDays"))
|
|
697
792
|
KeyMetadata.add_member(:mac_algorithms, Shapes::ShapeRef.new(shape: MacAlgorithmSpecList, location_name: "MacAlgorithms"))
|
|
698
793
|
KeyMetadata.add_member(:xks_key_configuration, Shapes::ShapeRef.new(shape: XksKeyConfigurationType, location_name: "XksKeyConfiguration"))
|
|
794
|
+
KeyMetadata.add_member(:current_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "CurrentKeyMaterialId"))
|
|
699
795
|
KeyMetadata.struct_class = Types::KeyMetadata
|
|
700
796
|
|
|
701
797
|
KeyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
@@ -719,6 +815,7 @@ module Aws::KMS
|
|
|
719
815
|
ListGrantsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
720
816
|
ListGrantsRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
|
|
721
817
|
ListGrantsRequest.add_member(:grantee_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "GranteePrincipal"))
|
|
818
|
+
ListGrantsRequest.add_member(:grantee_service_principal, Shapes::ShapeRef.new(shape: ServicePrincipalType, location_name: "GranteeServicePrincipal"))
|
|
722
819
|
ListGrantsRequest.struct_class = Types::ListGrantsRequest
|
|
723
820
|
|
|
724
821
|
ListGrantsResponse.add_member(:grants, Shapes::ShapeRef.new(shape: GrantList, location_name: "Grants"))
|
|
@@ -737,6 +834,7 @@ module Aws::KMS
|
|
|
737
834
|
ListKeyPoliciesResponse.struct_class = Types::ListKeyPoliciesResponse
|
|
738
835
|
|
|
739
836
|
ListKeyRotationsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
|
837
|
+
ListKeyRotationsRequest.add_member(:include_key_material, Shapes::ShapeRef.new(shape: IncludeKeyMaterial, location_name: "IncludeKeyMaterial"))
|
|
740
838
|
ListKeyRotationsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
|
741
839
|
ListKeyRotationsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
|
742
840
|
ListKeyRotationsRequest.struct_class = Types::ListKeyRotationsRequest
|
|
@@ -748,6 +846,7 @@ module Aws::KMS
|
|
|
748
846
|
|
|
749
847
|
ListKeysRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
|
750
848
|
ListKeysRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
|
849
|
+
ListKeysRequest.add_member(:resource_owners, Shapes::ShapeRef.new(shape: ResourceOwnersList, location_name: "ResourceOwners"))
|
|
751
850
|
ListKeysRequest.struct_class = Types::ListKeysRequest
|
|
752
851
|
|
|
753
852
|
ListKeysResponse.add_member(:keys, Shapes::ShapeRef.new(shape: KeyList, location_name: "Keys"))
|
|
@@ -767,7 +866,8 @@ module Aws::KMS
|
|
|
767
866
|
|
|
768
867
|
ListRetirableGrantsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
|
769
868
|
ListRetirableGrantsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
|
770
|
-
ListRetirableGrantsRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType,
|
|
869
|
+
ListRetirableGrantsRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "RetiringPrincipal"))
|
|
870
|
+
ListRetirableGrantsRequest.add_member(:retiring_service_principal, Shapes::ShapeRef.new(shape: ServicePrincipalType, location_name: "RetiringServicePrincipal"))
|
|
771
871
|
ListRetirableGrantsRequest.struct_class = Types::ListRetirableGrantsRequest
|
|
772
872
|
|
|
773
873
|
MacAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: MacAlgorithmSpec)
|
|
@@ -797,7 +897,7 @@ module Aws::KMS
|
|
|
797
897
|
PutKeyPolicyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
|
|
798
898
|
PutKeyPolicyRequest.struct_class = Types::PutKeyPolicyRequest
|
|
799
899
|
|
|
800
|
-
ReEncryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType,
|
|
900
|
+
ReEncryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
|
801
901
|
ReEncryptRequest.add_member(:source_encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "SourceEncryptionContext"))
|
|
802
902
|
ReEncryptRequest.add_member(:source_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "SourceKeyId"))
|
|
803
903
|
ReEncryptRequest.add_member(:destination_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "DestinationKeyId"))
|
|
@@ -806,6 +906,7 @@ module Aws::KMS
|
|
|
806
906
|
ReEncryptRequest.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
|
807
907
|
ReEncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
|
808
908
|
ReEncryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
|
909
|
+
ReEncryptRequest.add_member(:dry_run_modifiers, Shapes::ShapeRef.new(shape: DryRunModifierList, location_name: "DryRunModifiers"))
|
|
809
910
|
ReEncryptRequest.struct_class = Types::ReEncryptRequest
|
|
810
911
|
|
|
811
912
|
ReEncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
|
@@ -813,6 +914,8 @@ module Aws::KMS
|
|
|
813
914
|
ReEncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
814
915
|
ReEncryptResponse.add_member(:source_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "SourceEncryptionAlgorithm"))
|
|
815
916
|
ReEncryptResponse.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
|
917
|
+
ReEncryptResponse.add_member(:source_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "SourceKeyMaterialId"))
|
|
918
|
+
ReEncryptResponse.add_member(:destination_key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "DestinationKeyMaterialId"))
|
|
816
919
|
ReEncryptResponse.struct_class = Types::ReEncryptResponse
|
|
817
920
|
|
|
818
921
|
RecipientInfo.add_member(:key_encryption_algorithm, Shapes::ShapeRef.new(shape: KeyEncryptionMechanism, location_name: "KeyEncryptionAlgorithm"))
|
|
@@ -832,6 +935,8 @@ module Aws::KMS
|
|
|
832
935
|
ReplicateKeyResponse.add_member(:replica_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "ReplicaTags"))
|
|
833
936
|
ReplicateKeyResponse.struct_class = Types::ReplicateKeyResponse
|
|
834
937
|
|
|
938
|
+
ResourceOwnersList.member = Shapes::ShapeRef.new(shape: ResourceOwnerType)
|
|
939
|
+
|
|
835
940
|
RetireGrantRequest.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
|
836
941
|
RetireGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
837
942
|
RetireGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
|
|
@@ -852,6 +957,12 @@ module Aws::KMS
|
|
|
852
957
|
RotationsList.member = Shapes::ShapeRef.new(shape: RotationsListEntry)
|
|
853
958
|
|
|
854
959
|
RotationsListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
|
960
|
+
RotationsListEntry.add_member(:key_material_id, Shapes::ShapeRef.new(shape: BackingKeyIdType, location_name: "KeyMaterialId"))
|
|
961
|
+
RotationsListEntry.add_member(:key_material_description, Shapes::ShapeRef.new(shape: KeyMaterialDescriptionType, location_name: "KeyMaterialDescription"))
|
|
962
|
+
RotationsListEntry.add_member(:import_state, Shapes::ShapeRef.new(shape: ImportState, location_name: "ImportState"))
|
|
963
|
+
RotationsListEntry.add_member(:key_material_state, Shapes::ShapeRef.new(shape: KeyMaterialState, location_name: "KeyMaterialState"))
|
|
964
|
+
RotationsListEntry.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
|
965
|
+
RotationsListEntry.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
|
|
855
966
|
RotationsListEntry.add_member(:rotation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "RotationDate"))
|
|
856
967
|
RotationsListEntry.add_member(:rotation_type, Shapes::ShapeRef.new(shape: RotationType, location_name: "RotationType"))
|
|
857
968
|
RotationsListEntry.struct_class = Types::RotationsListEntry
|
|
@@ -914,6 +1025,7 @@ module Aws::KMS
|
|
|
914
1025
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "XksProxyUriEndpoint"))
|
|
915
1026
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "XksProxyUriPath"))
|
|
916
1027
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "XksProxyVpcEndpointServiceName"))
|
|
1028
|
+
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_owner, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "XksProxyVpcEndpointServiceOwner"))
|
|
917
1029
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_authentication_credential, Shapes::ShapeRef.new(shape: XksProxyAuthenticationCredentialType, location_name: "XksProxyAuthenticationCredential"))
|
|
918
1030
|
UpdateCustomKeyStoreRequest.add_member(:xks_proxy_connectivity, Shapes::ShapeRef.new(shape: XksProxyConnectivityType, location_name: "XksProxyConnectivity"))
|
|
919
1031
|
UpdateCustomKeyStoreRequest.struct_class = Types::UpdateCustomKeyStoreRequest
|
|
@@ -976,6 +1088,7 @@ module Aws::KMS
|
|
|
976
1088
|
XksProxyConfigurationType.add_member(:uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "UriEndpoint"))
|
|
977
1089
|
XksProxyConfigurationType.add_member(:uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "UriPath"))
|
|
978
1090
|
XksProxyConfigurationType.add_member(:vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "VpcEndpointServiceName"))
|
|
1091
|
+
XksProxyConfigurationType.add_member(:vpc_endpoint_service_owner, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "VpcEndpointServiceOwner"))
|
|
979
1092
|
XksProxyConfigurationType.struct_class = Types::XksProxyConfigurationType
|
|
980
1093
|
|
|
981
1094
|
XksProxyIncorrectAuthenticationCredentialException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
|
@@ -1130,6 +1243,24 @@ module Aws::KMS
|
|
|
1130
1243
|
o.errors << Shapes::ShapeRef.new(shape: XksKeyNotFoundException)
|
|
1131
1244
|
end)
|
|
1132
1245
|
|
|
1246
|
+
api.add_operation(:decapsulate, Seahorse::Model::Operation.new.tap do |o|
|
|
1247
|
+
o.name = "Decapsulate"
|
|
1248
|
+
o.http_method = "POST"
|
|
1249
|
+
o.http_request_uri = "/"
|
|
1250
|
+
o.input = Shapes::ShapeRef.new(shape: DecapsulateRequest)
|
|
1251
|
+
o.output = Shapes::ShapeRef.new(shape: DecapsulateResponse)
|
|
1252
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
1253
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
|
1254
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
|
1255
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
|
1256
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
|
1257
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
|
1258
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
|
|
1259
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1260
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
1261
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
|
1262
|
+
end)
|
|
1263
|
+
|
|
1133
1264
|
api.add_operation(:decrypt, Seahorse::Model::Operation.new.tap do |o|
|
|
1134
1265
|
o.name = "Decrypt"
|
|
1135
1266
|
o.http_method = "POST"
|
|
@@ -1178,7 +1309,7 @@ module Aws::KMS
|
|
|
1178
1309
|
o.http_method = "POST"
|
|
1179
1310
|
o.http_request_uri = "/"
|
|
1180
1311
|
o.input = Shapes::ShapeRef.new(shape: DeleteImportedKeyMaterialRequest)
|
|
1181
|
-
o.output = Shapes::ShapeRef.new(shape:
|
|
1312
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteImportedKeyMaterialResponse)
|
|
1182
1313
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
|
1183
1314
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
|
1184
1315
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
|
@@ -1302,6 +1433,23 @@ module Aws::KMS
|
|
|
1302
1433
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
|
1303
1434
|
end)
|
|
1304
1435
|
|
|
1436
|
+
api.add_operation(:encapsulate, Seahorse::Model::Operation.new.tap do |o|
|
|
1437
|
+
o.name = "Encapsulate"
|
|
1438
|
+
o.http_method = "POST"
|
|
1439
|
+
o.http_request_uri = "/"
|
|
1440
|
+
o.input = Shapes::ShapeRef.new(shape: EncapsulateRequest)
|
|
1441
|
+
o.output = Shapes::ShapeRef.new(shape: EncapsulateResponse)
|
|
1442
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
1443
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
|
1444
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
|
1445
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
|
1446
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
|
1447
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
|
1448
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1449
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
1450
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
|
1451
|
+
end)
|
|
1452
|
+
|
|
1305
1453
|
api.add_operation(:encrypt, Seahorse::Model::Operation.new.tap do |o|
|
|
1306
1454
|
o.name = "Encrypt"
|
|
1307
1455
|
o.http_method = "POST"
|
|
@@ -1418,6 +1566,18 @@ module Aws::KMS
|
|
|
1418
1566
|
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
|
|
1419
1567
|
end)
|
|
1420
1568
|
|
|
1569
|
+
api.add_operation(:get_key_last_usage, Seahorse::Model::Operation.new.tap do |o|
|
|
1570
|
+
o.name = "GetKeyLastUsage"
|
|
1571
|
+
o.http_method = "POST"
|
|
1572
|
+
o.http_request_uri = "/"
|
|
1573
|
+
o.input = Shapes::ShapeRef.new(shape: GetKeyLastUsageRequest)
|
|
1574
|
+
o.output = Shapes::ShapeRef.new(shape: GetKeyLastUsageResponse)
|
|
1575
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
1576
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
|
1577
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
|
1578
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
|
1579
|
+
end)
|
|
1580
|
+
|
|
1421
1581
|
api.add_operation(:get_key_policy, Seahorse::Model::Operation.new.tap do |o|
|
|
1422
1582
|
o.name = "GetKeyPolicy"
|
|
1423
1583
|
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
|