aws-sdk-kms 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-kms.rb +47 -0
- data/lib/aws-sdk-kms/client.rb +1959 -0
- data/lib/aws-sdk-kms/client_api.rb +900 -0
- data/lib/aws-sdk-kms/customizations.rb +7 -0
- data/lib/aws-sdk-kms/errors.rb +23 -0
- data/lib/aws-sdk-kms/resource.rb +25 -0
- data/lib/aws-sdk-kms/types.rb +1930 -0
- metadata +80 -0
@@ -0,0 +1,900 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module KMS
|
10
|
+
# @api private
|
11
|
+
module ClientApi
|
12
|
+
|
13
|
+
include Seahorse::Model
|
14
|
+
|
15
|
+
AWSAccountIdType = Shapes::StringShape.new(name: 'AWSAccountIdType')
|
16
|
+
AlgorithmSpec = Shapes::StringShape.new(name: 'AlgorithmSpec')
|
17
|
+
AliasList = Shapes::ListShape.new(name: 'AliasList')
|
18
|
+
AliasListEntry = Shapes::StructureShape.new(name: 'AliasListEntry')
|
19
|
+
AliasNameType = Shapes::StringShape.new(name: 'AliasNameType')
|
20
|
+
AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
|
21
|
+
ArnType = Shapes::StringShape.new(name: 'ArnType')
|
22
|
+
BooleanType = Shapes::BooleanShape.new(name: 'BooleanType')
|
23
|
+
CancelKeyDeletionRequest = Shapes::StructureShape.new(name: 'CancelKeyDeletionRequest')
|
24
|
+
CancelKeyDeletionResponse = Shapes::StructureShape.new(name: 'CancelKeyDeletionResponse')
|
25
|
+
CiphertextType = Shapes::BlobShape.new(name: 'CiphertextType')
|
26
|
+
CreateAliasRequest = Shapes::StructureShape.new(name: 'CreateAliasRequest')
|
27
|
+
CreateGrantRequest = Shapes::StructureShape.new(name: 'CreateGrantRequest')
|
28
|
+
CreateGrantResponse = Shapes::StructureShape.new(name: 'CreateGrantResponse')
|
29
|
+
CreateKeyRequest = Shapes::StructureShape.new(name: 'CreateKeyRequest')
|
30
|
+
CreateKeyResponse = Shapes::StructureShape.new(name: 'CreateKeyResponse')
|
31
|
+
DataKeySpec = Shapes::StringShape.new(name: 'DataKeySpec')
|
32
|
+
DateType = Shapes::TimestampShape.new(name: 'DateType')
|
33
|
+
DecryptRequest = Shapes::StructureShape.new(name: 'DecryptRequest')
|
34
|
+
DecryptResponse = Shapes::StructureShape.new(name: 'DecryptResponse')
|
35
|
+
DeleteAliasRequest = Shapes::StructureShape.new(name: 'DeleteAliasRequest')
|
36
|
+
DeleteImportedKeyMaterialRequest = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialRequest')
|
37
|
+
DependencyTimeoutException = Shapes::StructureShape.new(name: 'DependencyTimeoutException')
|
38
|
+
DescribeKeyRequest = Shapes::StructureShape.new(name: 'DescribeKeyRequest')
|
39
|
+
DescribeKeyResponse = Shapes::StructureShape.new(name: 'DescribeKeyResponse')
|
40
|
+
DescriptionType = Shapes::StringShape.new(name: 'DescriptionType')
|
41
|
+
DisableKeyRequest = Shapes::StructureShape.new(name: 'DisableKeyRequest')
|
42
|
+
DisableKeyRotationRequest = Shapes::StructureShape.new(name: 'DisableKeyRotationRequest')
|
43
|
+
DisabledException = Shapes::StructureShape.new(name: 'DisabledException')
|
44
|
+
EnableKeyRequest = Shapes::StructureShape.new(name: 'EnableKeyRequest')
|
45
|
+
EnableKeyRotationRequest = Shapes::StructureShape.new(name: 'EnableKeyRotationRequest')
|
46
|
+
EncryptRequest = Shapes::StructureShape.new(name: 'EncryptRequest')
|
47
|
+
EncryptResponse = Shapes::StructureShape.new(name: 'EncryptResponse')
|
48
|
+
EncryptionContextKey = Shapes::StringShape.new(name: 'EncryptionContextKey')
|
49
|
+
EncryptionContextType = Shapes::MapShape.new(name: 'EncryptionContextType')
|
50
|
+
EncryptionContextValue = Shapes::StringShape.new(name: 'EncryptionContextValue')
|
51
|
+
ErrorMessageType = Shapes::StringShape.new(name: 'ErrorMessageType')
|
52
|
+
ExpirationModelType = Shapes::StringShape.new(name: 'ExpirationModelType')
|
53
|
+
ExpiredImportTokenException = Shapes::StructureShape.new(name: 'ExpiredImportTokenException')
|
54
|
+
GenerateDataKeyRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyRequest')
|
55
|
+
GenerateDataKeyResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyResponse')
|
56
|
+
GenerateDataKeyWithoutPlaintextRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyWithoutPlaintextRequest')
|
57
|
+
GenerateDataKeyWithoutPlaintextResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyWithoutPlaintextResponse')
|
58
|
+
GenerateRandomRequest = Shapes::StructureShape.new(name: 'GenerateRandomRequest')
|
59
|
+
GenerateRandomResponse = Shapes::StructureShape.new(name: 'GenerateRandomResponse')
|
60
|
+
GetKeyPolicyRequest = Shapes::StructureShape.new(name: 'GetKeyPolicyRequest')
|
61
|
+
GetKeyPolicyResponse = Shapes::StructureShape.new(name: 'GetKeyPolicyResponse')
|
62
|
+
GetKeyRotationStatusRequest = Shapes::StructureShape.new(name: 'GetKeyRotationStatusRequest')
|
63
|
+
GetKeyRotationStatusResponse = Shapes::StructureShape.new(name: 'GetKeyRotationStatusResponse')
|
64
|
+
GetParametersForImportRequest = Shapes::StructureShape.new(name: 'GetParametersForImportRequest')
|
65
|
+
GetParametersForImportResponse = Shapes::StructureShape.new(name: 'GetParametersForImportResponse')
|
66
|
+
GrantConstraints = Shapes::StructureShape.new(name: 'GrantConstraints')
|
67
|
+
GrantIdType = Shapes::StringShape.new(name: 'GrantIdType')
|
68
|
+
GrantList = Shapes::ListShape.new(name: 'GrantList')
|
69
|
+
GrantListEntry = Shapes::StructureShape.new(name: 'GrantListEntry')
|
70
|
+
GrantNameType = Shapes::StringShape.new(name: 'GrantNameType')
|
71
|
+
GrantOperation = Shapes::StringShape.new(name: 'GrantOperation')
|
72
|
+
GrantOperationList = Shapes::ListShape.new(name: 'GrantOperationList')
|
73
|
+
GrantTokenList = Shapes::ListShape.new(name: 'GrantTokenList')
|
74
|
+
GrantTokenType = Shapes::StringShape.new(name: 'GrantTokenType')
|
75
|
+
ImportKeyMaterialRequest = Shapes::StructureShape.new(name: 'ImportKeyMaterialRequest')
|
76
|
+
ImportKeyMaterialResponse = Shapes::StructureShape.new(name: 'ImportKeyMaterialResponse')
|
77
|
+
IncorrectKeyMaterialException = Shapes::StructureShape.new(name: 'IncorrectKeyMaterialException')
|
78
|
+
InvalidAliasNameException = Shapes::StructureShape.new(name: 'InvalidAliasNameException')
|
79
|
+
InvalidArnException = Shapes::StructureShape.new(name: 'InvalidArnException')
|
80
|
+
InvalidCiphertextException = Shapes::StructureShape.new(name: 'InvalidCiphertextException')
|
81
|
+
InvalidGrantIdException = Shapes::StructureShape.new(name: 'InvalidGrantIdException')
|
82
|
+
InvalidGrantTokenException = Shapes::StructureShape.new(name: 'InvalidGrantTokenException')
|
83
|
+
InvalidImportTokenException = Shapes::StructureShape.new(name: 'InvalidImportTokenException')
|
84
|
+
InvalidKeyUsageException = Shapes::StructureShape.new(name: 'InvalidKeyUsageException')
|
85
|
+
InvalidMarkerException = Shapes::StructureShape.new(name: 'InvalidMarkerException')
|
86
|
+
KMSInternalException = Shapes::StructureShape.new(name: 'KMSInternalException')
|
87
|
+
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
|
88
|
+
KeyIdType = Shapes::StringShape.new(name: 'KeyIdType')
|
89
|
+
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
90
|
+
KeyListEntry = Shapes::StructureShape.new(name: 'KeyListEntry')
|
91
|
+
KeyMetadata = Shapes::StructureShape.new(name: 'KeyMetadata')
|
92
|
+
KeyState = Shapes::StringShape.new(name: 'KeyState')
|
93
|
+
KeyUnavailableException = Shapes::StructureShape.new(name: 'KeyUnavailableException')
|
94
|
+
KeyUsageType = Shapes::StringShape.new(name: 'KeyUsageType')
|
95
|
+
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
96
|
+
LimitType = Shapes::IntegerShape.new(name: 'LimitType')
|
97
|
+
ListAliasesRequest = Shapes::StructureShape.new(name: 'ListAliasesRequest')
|
98
|
+
ListAliasesResponse = Shapes::StructureShape.new(name: 'ListAliasesResponse')
|
99
|
+
ListGrantsRequest = Shapes::StructureShape.new(name: 'ListGrantsRequest')
|
100
|
+
ListGrantsResponse = Shapes::StructureShape.new(name: 'ListGrantsResponse')
|
101
|
+
ListKeyPoliciesRequest = Shapes::StructureShape.new(name: 'ListKeyPoliciesRequest')
|
102
|
+
ListKeyPoliciesResponse = Shapes::StructureShape.new(name: 'ListKeyPoliciesResponse')
|
103
|
+
ListKeysRequest = Shapes::StructureShape.new(name: 'ListKeysRequest')
|
104
|
+
ListKeysResponse = Shapes::StructureShape.new(name: 'ListKeysResponse')
|
105
|
+
ListRetirableGrantsRequest = Shapes::StructureShape.new(name: 'ListRetirableGrantsRequest')
|
106
|
+
MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
|
107
|
+
MarkerType = Shapes::StringShape.new(name: 'MarkerType')
|
108
|
+
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
109
|
+
NumberOfBytesType = Shapes::IntegerShape.new(name: 'NumberOfBytesType')
|
110
|
+
OriginType = Shapes::StringShape.new(name: 'OriginType')
|
111
|
+
PendingWindowInDaysType = Shapes::IntegerShape.new(name: 'PendingWindowInDaysType')
|
112
|
+
PlaintextType = Shapes::BlobShape.new(name: 'PlaintextType')
|
113
|
+
PolicyNameList = Shapes::ListShape.new(name: 'PolicyNameList')
|
114
|
+
PolicyNameType = Shapes::StringShape.new(name: 'PolicyNameType')
|
115
|
+
PolicyType = Shapes::StringShape.new(name: 'PolicyType')
|
116
|
+
PrincipalIdType = Shapes::StringShape.new(name: 'PrincipalIdType')
|
117
|
+
PutKeyPolicyRequest = Shapes::StructureShape.new(name: 'PutKeyPolicyRequest')
|
118
|
+
ReEncryptRequest = Shapes::StructureShape.new(name: 'ReEncryptRequest')
|
119
|
+
ReEncryptResponse = Shapes::StructureShape.new(name: 'ReEncryptResponse')
|
120
|
+
RetireGrantRequest = Shapes::StructureShape.new(name: 'RetireGrantRequest')
|
121
|
+
RevokeGrantRequest = Shapes::StructureShape.new(name: 'RevokeGrantRequest')
|
122
|
+
ScheduleKeyDeletionRequest = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionRequest')
|
123
|
+
ScheduleKeyDeletionResponse = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionResponse')
|
124
|
+
UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
|
125
|
+
UpdateAliasRequest = Shapes::StructureShape.new(name: 'UpdateAliasRequest')
|
126
|
+
UpdateKeyDescriptionRequest = Shapes::StructureShape.new(name: 'UpdateKeyDescriptionRequest')
|
127
|
+
WrappingKeySpec = Shapes::StringShape.new(name: 'WrappingKeySpec')
|
128
|
+
|
129
|
+
AliasList.member = Shapes::ShapeRef.new(shape: AliasListEntry)
|
130
|
+
|
131
|
+
AliasListEntry.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, location_name: "AliasName"))
|
132
|
+
AliasListEntry.add_member(:alias_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "AliasArn"))
|
133
|
+
AliasListEntry.add_member(:target_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "TargetKeyId"))
|
134
|
+
AliasListEntry.struct_class = Types::AliasListEntry
|
135
|
+
|
136
|
+
CancelKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
137
|
+
CancelKeyDeletionRequest.struct_class = Types::CancelKeyDeletionRequest
|
138
|
+
|
139
|
+
CancelKeyDeletionResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
140
|
+
CancelKeyDeletionResponse.struct_class = Types::CancelKeyDeletionResponse
|
141
|
+
|
142
|
+
CreateAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
|
143
|
+
CreateAliasRequest.add_member(:target_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "TargetKeyId"))
|
144
|
+
CreateAliasRequest.struct_class = Types::CreateAliasRequest
|
145
|
+
|
146
|
+
CreateGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
147
|
+
CreateGrantRequest.add_member(:grantee_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, required: true, location_name: "GranteePrincipal"))
|
148
|
+
CreateGrantRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "RetiringPrincipal"))
|
149
|
+
CreateGrantRequest.add_member(:operations, Shapes::ShapeRef.new(shape: GrantOperationList, location_name: "Operations"))
|
150
|
+
CreateGrantRequest.add_member(:constraints, Shapes::ShapeRef.new(shape: GrantConstraints, location_name: "Constraints"))
|
151
|
+
CreateGrantRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
152
|
+
CreateGrantRequest.add_member(:name, Shapes::ShapeRef.new(shape: GrantNameType, location_name: "Name"))
|
153
|
+
CreateGrantRequest.struct_class = Types::CreateGrantRequest
|
154
|
+
|
155
|
+
CreateGrantResponse.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
156
|
+
CreateGrantResponse.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
|
157
|
+
CreateGrantResponse.struct_class = Types::CreateGrantResponse
|
158
|
+
|
159
|
+
CreateKeyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
|
160
|
+
CreateKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
|
161
|
+
CreateKeyRequest.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
162
|
+
CreateKeyRequest.add_member(:origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "Origin"))
|
163
|
+
CreateKeyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
|
164
|
+
CreateKeyRequest.struct_class = Types::CreateKeyRequest
|
165
|
+
|
166
|
+
CreateKeyResponse.add_member(:key_metadata, Shapes::ShapeRef.new(shape: KeyMetadata, location_name: "KeyMetadata"))
|
167
|
+
CreateKeyResponse.struct_class = Types::CreateKeyResponse
|
168
|
+
|
169
|
+
DecryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "CiphertextBlob"))
|
170
|
+
DecryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
171
|
+
DecryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
172
|
+
DecryptRequest.struct_class = Types::DecryptRequest
|
173
|
+
|
174
|
+
DecryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
175
|
+
DecryptResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
176
|
+
DecryptResponse.struct_class = Types::DecryptResponse
|
177
|
+
|
178
|
+
DeleteAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
|
179
|
+
DeleteAliasRequest.struct_class = Types::DeleteAliasRequest
|
180
|
+
|
181
|
+
DeleteImportedKeyMaterialRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
182
|
+
DeleteImportedKeyMaterialRequest.struct_class = Types::DeleteImportedKeyMaterialRequest
|
183
|
+
|
184
|
+
DescribeKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
185
|
+
DescribeKeyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
186
|
+
DescribeKeyRequest.struct_class = Types::DescribeKeyRequest
|
187
|
+
|
188
|
+
DescribeKeyResponse.add_member(:key_metadata, Shapes::ShapeRef.new(shape: KeyMetadata, location_name: "KeyMetadata"))
|
189
|
+
DescribeKeyResponse.struct_class = Types::DescribeKeyResponse
|
190
|
+
|
191
|
+
DisableKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
192
|
+
DisableKeyRequest.struct_class = Types::DisableKeyRequest
|
193
|
+
|
194
|
+
DisableKeyRotationRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
195
|
+
DisableKeyRotationRequest.struct_class = Types::DisableKeyRotationRequest
|
196
|
+
|
197
|
+
EnableKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
198
|
+
EnableKeyRequest.struct_class = Types::EnableKeyRequest
|
199
|
+
|
200
|
+
EnableKeyRotationRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
201
|
+
EnableKeyRotationRequest.struct_class = Types::EnableKeyRotationRequest
|
202
|
+
|
203
|
+
EncryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
204
|
+
EncryptRequest.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Plaintext"))
|
205
|
+
EncryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
206
|
+
EncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
207
|
+
EncryptRequest.struct_class = Types::EncryptRequest
|
208
|
+
|
209
|
+
EncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
210
|
+
EncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
211
|
+
EncryptResponse.struct_class = Types::EncryptResponse
|
212
|
+
|
213
|
+
EncryptionContextType.key = Shapes::ShapeRef.new(shape: EncryptionContextKey)
|
214
|
+
EncryptionContextType.value = Shapes::ShapeRef.new(shape: EncryptionContextValue)
|
215
|
+
|
216
|
+
GenerateDataKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
217
|
+
GenerateDataKeyRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
218
|
+
GenerateDataKeyRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
219
|
+
GenerateDataKeyRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: DataKeySpec, location_name: "KeySpec"))
|
220
|
+
GenerateDataKeyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
221
|
+
GenerateDataKeyRequest.struct_class = Types::GenerateDataKeyRequest
|
222
|
+
|
223
|
+
GenerateDataKeyResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
224
|
+
GenerateDataKeyResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
225
|
+
GenerateDataKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
226
|
+
GenerateDataKeyResponse.struct_class = Types::GenerateDataKeyResponse
|
227
|
+
|
228
|
+
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
229
|
+
GenerateDataKeyWithoutPlaintextRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
230
|
+
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: DataKeySpec, location_name: "KeySpec"))
|
231
|
+
GenerateDataKeyWithoutPlaintextRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
232
|
+
GenerateDataKeyWithoutPlaintextRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
233
|
+
GenerateDataKeyWithoutPlaintextRequest.struct_class = Types::GenerateDataKeyWithoutPlaintextRequest
|
234
|
+
|
235
|
+
GenerateDataKeyWithoutPlaintextResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
236
|
+
GenerateDataKeyWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
237
|
+
GenerateDataKeyWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyWithoutPlaintextResponse
|
238
|
+
|
239
|
+
GenerateRandomRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
240
|
+
GenerateRandomRequest.struct_class = Types::GenerateRandomRequest
|
241
|
+
|
242
|
+
GenerateRandomResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
|
243
|
+
GenerateRandomResponse.struct_class = Types::GenerateRandomResponse
|
244
|
+
|
245
|
+
GetKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
246
|
+
GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, required: true, location_name: "PolicyName"))
|
247
|
+
GetKeyPolicyRequest.struct_class = Types::GetKeyPolicyRequest
|
248
|
+
|
249
|
+
GetKeyPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
|
250
|
+
GetKeyPolicyResponse.struct_class = Types::GetKeyPolicyResponse
|
251
|
+
|
252
|
+
GetKeyRotationStatusRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
253
|
+
GetKeyRotationStatusRequest.struct_class = Types::GetKeyRotationStatusRequest
|
254
|
+
|
255
|
+
GetKeyRotationStatusResponse.add_member(:key_rotation_enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "KeyRotationEnabled"))
|
256
|
+
GetKeyRotationStatusResponse.struct_class = Types::GetKeyRotationStatusResponse
|
257
|
+
|
258
|
+
GetParametersForImportRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
259
|
+
GetParametersForImportRequest.add_member(:wrapping_algorithm, Shapes::ShapeRef.new(shape: AlgorithmSpec, required: true, location_name: "WrappingAlgorithm"))
|
260
|
+
GetParametersForImportRequest.add_member(:wrapping_key_spec, Shapes::ShapeRef.new(shape: WrappingKeySpec, required: true, location_name: "WrappingKeySpec"))
|
261
|
+
GetParametersForImportRequest.struct_class = Types::GetParametersForImportRequest
|
262
|
+
|
263
|
+
GetParametersForImportResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
264
|
+
GetParametersForImportResponse.add_member(:import_token, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "ImportToken"))
|
265
|
+
GetParametersForImportResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "PublicKey"))
|
266
|
+
GetParametersForImportResponse.add_member(:parameters_valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ParametersValidTo"))
|
267
|
+
GetParametersForImportResponse.struct_class = Types::GetParametersForImportResponse
|
268
|
+
|
269
|
+
GrantConstraints.add_member(:encryption_context_subset, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextSubset"))
|
270
|
+
GrantConstraints.add_member(:encryption_context_equals, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextEquals"))
|
271
|
+
GrantConstraints.struct_class = Types::GrantConstraints
|
272
|
+
|
273
|
+
GrantList.member = Shapes::ShapeRef.new(shape: GrantListEntry)
|
274
|
+
|
275
|
+
GrantListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
276
|
+
GrantListEntry.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
|
277
|
+
GrantListEntry.add_member(:name, Shapes::ShapeRef.new(shape: GrantNameType, location_name: "Name"))
|
278
|
+
GrantListEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
|
279
|
+
GrantListEntry.add_member(:grantee_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "GranteePrincipal"))
|
280
|
+
GrantListEntry.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "RetiringPrincipal"))
|
281
|
+
GrantListEntry.add_member(:issuing_account, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "IssuingAccount"))
|
282
|
+
GrantListEntry.add_member(:operations, Shapes::ShapeRef.new(shape: GrantOperationList, location_name: "Operations"))
|
283
|
+
GrantListEntry.add_member(:constraints, Shapes::ShapeRef.new(shape: GrantConstraints, location_name: "Constraints"))
|
284
|
+
GrantListEntry.struct_class = Types::GrantListEntry
|
285
|
+
|
286
|
+
GrantOperationList.member = Shapes::ShapeRef.new(shape: GrantOperation)
|
287
|
+
|
288
|
+
GrantTokenList.member = Shapes::ShapeRef.new(shape: GrantTokenType)
|
289
|
+
|
290
|
+
ImportKeyMaterialRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
291
|
+
ImportKeyMaterialRequest.add_member(:import_token, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "ImportToken"))
|
292
|
+
ImportKeyMaterialRequest.add_member(:encrypted_key_material, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "EncryptedKeyMaterial"))
|
293
|
+
ImportKeyMaterialRequest.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
|
294
|
+
ImportKeyMaterialRequest.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
295
|
+
ImportKeyMaterialRequest.struct_class = Types::ImportKeyMaterialRequest
|
296
|
+
|
297
|
+
ImportKeyMaterialResponse.struct_class = Types::ImportKeyMaterialResponse
|
298
|
+
|
299
|
+
KeyList.member = Shapes::ShapeRef.new(shape: KeyListEntry)
|
300
|
+
|
301
|
+
KeyListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
302
|
+
KeyListEntry.add_member(:key_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "KeyArn"))
|
303
|
+
KeyListEntry.struct_class = Types::KeyListEntry
|
304
|
+
|
305
|
+
KeyMetadata.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: AWSAccountIdType, location_name: "AWSAccountId"))
|
306
|
+
KeyMetadata.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
307
|
+
KeyMetadata.add_member(:arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "Arn"))
|
308
|
+
KeyMetadata.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
|
309
|
+
KeyMetadata.add_member(:enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Enabled"))
|
310
|
+
KeyMetadata.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
|
311
|
+
KeyMetadata.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
|
312
|
+
KeyMetadata.add_member(:key_state, Shapes::ShapeRef.new(shape: KeyState, location_name: "KeyState"))
|
313
|
+
KeyMetadata.add_member(:deletion_date, Shapes::ShapeRef.new(shape: DateType, location_name: "DeletionDate"))
|
314
|
+
KeyMetadata.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
|
315
|
+
KeyMetadata.add_member(:origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "Origin"))
|
316
|
+
KeyMetadata.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
|
317
|
+
KeyMetadata.struct_class = Types::KeyMetadata
|
318
|
+
|
319
|
+
ListAliasesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
320
|
+
ListAliasesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
321
|
+
ListAliasesRequest.struct_class = Types::ListAliasesRequest
|
322
|
+
|
323
|
+
ListAliasesResponse.add_member(:aliases, Shapes::ShapeRef.new(shape: AliasList, location_name: "Aliases"))
|
324
|
+
ListAliasesResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
|
325
|
+
ListAliasesResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
|
326
|
+
ListAliasesResponse.struct_class = Types::ListAliasesResponse
|
327
|
+
|
328
|
+
ListGrantsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
329
|
+
ListGrantsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
330
|
+
ListGrantsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
331
|
+
ListGrantsRequest.struct_class = Types::ListGrantsRequest
|
332
|
+
|
333
|
+
ListGrantsResponse.add_member(:grants, Shapes::ShapeRef.new(shape: GrantList, location_name: "Grants"))
|
334
|
+
ListGrantsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
|
335
|
+
ListGrantsResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
|
336
|
+
ListGrantsResponse.struct_class = Types::ListGrantsResponse
|
337
|
+
|
338
|
+
ListKeyPoliciesRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
339
|
+
ListKeyPoliciesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
340
|
+
ListKeyPoliciesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
341
|
+
ListKeyPoliciesRequest.struct_class = Types::ListKeyPoliciesRequest
|
342
|
+
|
343
|
+
ListKeyPoliciesResponse.add_member(:policy_names, Shapes::ShapeRef.new(shape: PolicyNameList, location_name: "PolicyNames"))
|
344
|
+
ListKeyPoliciesResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
|
345
|
+
ListKeyPoliciesResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
|
346
|
+
ListKeyPoliciesResponse.struct_class = Types::ListKeyPoliciesResponse
|
347
|
+
|
348
|
+
ListKeysRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
349
|
+
ListKeysRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
350
|
+
ListKeysRequest.struct_class = Types::ListKeysRequest
|
351
|
+
|
352
|
+
ListKeysResponse.add_member(:keys, Shapes::ShapeRef.new(shape: KeyList, location_name: "Keys"))
|
353
|
+
ListKeysResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
|
354
|
+
ListKeysResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
|
355
|
+
ListKeysResponse.struct_class = Types::ListKeysResponse
|
356
|
+
|
357
|
+
ListRetirableGrantsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
358
|
+
ListRetirableGrantsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
359
|
+
ListRetirableGrantsRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, required: true, location_name: "RetiringPrincipal"))
|
360
|
+
ListRetirableGrantsRequest.struct_class = Types::ListRetirableGrantsRequest
|
361
|
+
|
362
|
+
PolicyNameList.member = Shapes::ShapeRef.new(shape: PolicyNameType)
|
363
|
+
|
364
|
+
PutKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
365
|
+
PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, required: true, location_name: "PolicyName"))
|
366
|
+
PutKeyPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "Policy"))
|
367
|
+
PutKeyPolicyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
|
368
|
+
PutKeyPolicyRequest.struct_class = Types::PutKeyPolicyRequest
|
369
|
+
|
370
|
+
ReEncryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "CiphertextBlob"))
|
371
|
+
ReEncryptRequest.add_member(:source_encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "SourceEncryptionContext"))
|
372
|
+
ReEncryptRequest.add_member(:destination_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "DestinationKeyId"))
|
373
|
+
ReEncryptRequest.add_member(:destination_encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "DestinationEncryptionContext"))
|
374
|
+
ReEncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
375
|
+
ReEncryptRequest.struct_class = Types::ReEncryptRequest
|
376
|
+
|
377
|
+
ReEncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
378
|
+
ReEncryptResponse.add_member(:source_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "SourceKeyId"))
|
379
|
+
ReEncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
380
|
+
ReEncryptResponse.struct_class = Types::ReEncryptResponse
|
381
|
+
|
382
|
+
RetireGrantRequest.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
383
|
+
RetireGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
384
|
+
RetireGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
|
385
|
+
RetireGrantRequest.struct_class = Types::RetireGrantRequest
|
386
|
+
|
387
|
+
RevokeGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
388
|
+
RevokeGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, required: true, location_name: "GrantId"))
|
389
|
+
RevokeGrantRequest.struct_class = Types::RevokeGrantRequest
|
390
|
+
|
391
|
+
ScheduleKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
392
|
+
ScheduleKeyDeletionRequest.add_member(:pending_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingWindowInDays"))
|
393
|
+
ScheduleKeyDeletionRequest.struct_class = Types::ScheduleKeyDeletionRequest
|
394
|
+
|
395
|
+
ScheduleKeyDeletionResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
396
|
+
ScheduleKeyDeletionResponse.add_member(:deletion_date, Shapes::ShapeRef.new(shape: DateType, location_name: "DeletionDate"))
|
397
|
+
ScheduleKeyDeletionResponse.struct_class = Types::ScheduleKeyDeletionResponse
|
398
|
+
|
399
|
+
UpdateAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
|
400
|
+
UpdateAliasRequest.add_member(:target_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "TargetKeyId"))
|
401
|
+
UpdateAliasRequest.struct_class = Types::UpdateAliasRequest
|
402
|
+
|
403
|
+
UpdateKeyDescriptionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
404
|
+
UpdateKeyDescriptionRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, required: true, location_name: "Description"))
|
405
|
+
UpdateKeyDescriptionRequest.struct_class = Types::UpdateKeyDescriptionRequest
|
406
|
+
|
407
|
+
|
408
|
+
# @api private
|
409
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
410
|
+
|
411
|
+
api.version = "2014-11-01"
|
412
|
+
|
413
|
+
api.metadata = {
|
414
|
+
"endpointPrefix" => "kms",
|
415
|
+
"jsonVersion" => "1.1",
|
416
|
+
"protocol" => "json",
|
417
|
+
"serviceFullName" => "AWS Key Management Service",
|
418
|
+
"signatureVersion" => "v4",
|
419
|
+
"targetPrefix" => "TrentService",
|
420
|
+
}
|
421
|
+
|
422
|
+
api.add_operation(:cancel_key_deletion, Seahorse::Model::Operation.new.tap do |o|
|
423
|
+
o.name = "CancelKeyDeletion"
|
424
|
+
o.http_method = "POST"
|
425
|
+
o.http_request_uri = "/"
|
426
|
+
o.input = Shapes::ShapeRef.new(shape: CancelKeyDeletionRequest)
|
427
|
+
o.output = Shapes::ShapeRef.new(shape: CancelKeyDeletionResponse)
|
428
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
429
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
430
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
431
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
432
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
433
|
+
end)
|
434
|
+
|
435
|
+
api.add_operation(:create_alias, Seahorse::Model::Operation.new.tap do |o|
|
436
|
+
o.name = "CreateAlias"
|
437
|
+
o.http_method = "POST"
|
438
|
+
o.http_request_uri = "/"
|
439
|
+
o.input = Shapes::ShapeRef.new(shape: CreateAliasRequest)
|
440
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
442
|
+
o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException)
|
443
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidAliasNameException)
|
445
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
446
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
447
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
448
|
+
end)
|
449
|
+
|
450
|
+
api.add_operation(:create_grant, Seahorse::Model::Operation.new.tap do |o|
|
451
|
+
o.name = "CreateGrant"
|
452
|
+
o.http_method = "POST"
|
453
|
+
o.http_request_uri = "/"
|
454
|
+
o.input = Shapes::ShapeRef.new(shape: CreateGrantRequest)
|
455
|
+
o.output = Shapes::ShapeRef.new(shape: CreateGrantResponse)
|
456
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
457
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
458
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
459
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
460
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
461
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
462
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
463
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
464
|
+
end)
|
465
|
+
|
466
|
+
api.add_operation(:create_key, Seahorse::Model::Operation.new.tap do |o|
|
467
|
+
o.name = "CreateKey"
|
468
|
+
o.http_method = "POST"
|
469
|
+
o.http_request_uri = "/"
|
470
|
+
o.input = Shapes::ShapeRef.new(shape: CreateKeyRequest)
|
471
|
+
o.output = Shapes::ShapeRef.new(shape: CreateKeyResponse)
|
472
|
+
o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
|
473
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
474
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
475
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
476
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
477
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
478
|
+
end)
|
479
|
+
|
480
|
+
api.add_operation(:decrypt, Seahorse::Model::Operation.new.tap do |o|
|
481
|
+
o.name = "Decrypt"
|
482
|
+
o.http_method = "POST"
|
483
|
+
o.http_request_uri = "/"
|
484
|
+
o.input = Shapes::ShapeRef.new(shape: DecryptRequest)
|
485
|
+
o.output = Shapes::ShapeRef.new(shape: DecryptResponse)
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
487
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
488
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
|
489
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
490
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
491
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
492
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
493
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
494
|
+
end)
|
495
|
+
|
496
|
+
api.add_operation(:delete_alias, Seahorse::Model::Operation.new.tap do |o|
|
497
|
+
o.name = "DeleteAlias"
|
498
|
+
o.http_method = "POST"
|
499
|
+
o.http_request_uri = "/"
|
500
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteAliasRequest)
|
501
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
502
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
503
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
504
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
505
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
506
|
+
end)
|
507
|
+
|
508
|
+
api.add_operation(:delete_imported_key_material, Seahorse::Model::Operation.new.tap do |o|
|
509
|
+
o.name = "DeleteImportedKeyMaterial"
|
510
|
+
o.http_method = "POST"
|
511
|
+
o.http_request_uri = "/"
|
512
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteImportedKeyMaterialRequest)
|
513
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
514
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
515
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
516
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
517
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
518
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
519
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
520
|
+
end)
|
521
|
+
|
522
|
+
api.add_operation(:describe_key, Seahorse::Model::Operation.new.tap do |o|
|
523
|
+
o.name = "DescribeKey"
|
524
|
+
o.http_method = "POST"
|
525
|
+
o.http_request_uri = "/"
|
526
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeKeyRequest)
|
527
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeKeyResponse)
|
528
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
529
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
530
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
531
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
532
|
+
end)
|
533
|
+
|
534
|
+
api.add_operation(:disable_key, Seahorse::Model::Operation.new.tap do |o|
|
535
|
+
o.name = "DisableKey"
|
536
|
+
o.http_method = "POST"
|
537
|
+
o.http_request_uri = "/"
|
538
|
+
o.input = Shapes::ShapeRef.new(shape: DisableKeyRequest)
|
539
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
540
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
541
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
542
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
543
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
544
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
545
|
+
end)
|
546
|
+
|
547
|
+
api.add_operation(:disable_key_rotation, Seahorse::Model::Operation.new.tap do |o|
|
548
|
+
o.name = "DisableKeyRotation"
|
549
|
+
o.http_method = "POST"
|
550
|
+
o.http_request_uri = "/"
|
551
|
+
o.input = Shapes::ShapeRef.new(shape: DisableKeyRotationRequest)
|
552
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
553
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
554
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
555
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
556
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
557
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
558
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
559
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
560
|
+
end)
|
561
|
+
|
562
|
+
api.add_operation(:enable_key, Seahorse::Model::Operation.new.tap do |o|
|
563
|
+
o.name = "EnableKey"
|
564
|
+
o.http_method = "POST"
|
565
|
+
o.http_request_uri = "/"
|
566
|
+
o.input = Shapes::ShapeRef.new(shape: EnableKeyRequest)
|
567
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
568
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
569
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
570
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
571
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
572
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
573
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
574
|
+
end)
|
575
|
+
|
576
|
+
api.add_operation(:enable_key_rotation, Seahorse::Model::Operation.new.tap do |o|
|
577
|
+
o.name = "EnableKeyRotation"
|
578
|
+
o.http_method = "POST"
|
579
|
+
o.http_request_uri = "/"
|
580
|
+
o.input = Shapes::ShapeRef.new(shape: EnableKeyRotationRequest)
|
581
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
582
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
583
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
584
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
585
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
586
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
587
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
588
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
589
|
+
end)
|
590
|
+
|
591
|
+
api.add_operation(:encrypt, Seahorse::Model::Operation.new.tap do |o|
|
592
|
+
o.name = "Encrypt"
|
593
|
+
o.http_method = "POST"
|
594
|
+
o.http_request_uri = "/"
|
595
|
+
o.input = Shapes::ShapeRef.new(shape: EncryptRequest)
|
596
|
+
o.output = Shapes::ShapeRef.new(shape: EncryptResponse)
|
597
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
598
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
599
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
600
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
601
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
602
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
603
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
604
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
605
|
+
end)
|
606
|
+
|
607
|
+
api.add_operation(:generate_data_key, Seahorse::Model::Operation.new.tap do |o|
|
608
|
+
o.name = "GenerateDataKey"
|
609
|
+
o.http_method = "POST"
|
610
|
+
o.http_request_uri = "/"
|
611
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateDataKeyRequest)
|
612
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateDataKeyResponse)
|
613
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
614
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
615
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
616
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
617
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
618
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
619
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
620
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
621
|
+
end)
|
622
|
+
|
623
|
+
api.add_operation(:generate_data_key_without_plaintext, Seahorse::Model::Operation.new.tap do |o|
|
624
|
+
o.name = "GenerateDataKeyWithoutPlaintext"
|
625
|
+
o.http_method = "POST"
|
626
|
+
o.http_request_uri = "/"
|
627
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateDataKeyWithoutPlaintextRequest)
|
628
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateDataKeyWithoutPlaintextResponse)
|
629
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
630
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
631
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
632
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
633
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
634
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
635
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
636
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
637
|
+
end)
|
638
|
+
|
639
|
+
api.add_operation(:generate_random, Seahorse::Model::Operation.new.tap do |o|
|
640
|
+
o.name = "GenerateRandom"
|
641
|
+
o.http_method = "POST"
|
642
|
+
o.http_request_uri = "/"
|
643
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateRandomRequest)
|
644
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateRandomResponse)
|
645
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
646
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
647
|
+
end)
|
648
|
+
|
649
|
+
api.add_operation(:get_key_policy, Seahorse::Model::Operation.new.tap do |o|
|
650
|
+
o.name = "GetKeyPolicy"
|
651
|
+
o.http_method = "POST"
|
652
|
+
o.http_request_uri = "/"
|
653
|
+
o.input = Shapes::ShapeRef.new(shape: GetKeyPolicyRequest)
|
654
|
+
o.output = Shapes::ShapeRef.new(shape: GetKeyPolicyResponse)
|
655
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
656
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
657
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
658
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
659
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
660
|
+
end)
|
661
|
+
|
662
|
+
api.add_operation(:get_key_rotation_status, Seahorse::Model::Operation.new.tap do |o|
|
663
|
+
o.name = "GetKeyRotationStatus"
|
664
|
+
o.http_method = "POST"
|
665
|
+
o.http_request_uri = "/"
|
666
|
+
o.input = Shapes::ShapeRef.new(shape: GetKeyRotationStatusRequest)
|
667
|
+
o.output = Shapes::ShapeRef.new(shape: GetKeyRotationStatusResponse)
|
668
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
669
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
670
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
671
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
672
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
673
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
674
|
+
end)
|
675
|
+
|
676
|
+
api.add_operation(:get_parameters_for_import, Seahorse::Model::Operation.new.tap do |o|
|
677
|
+
o.name = "GetParametersForImport"
|
678
|
+
o.http_method = "POST"
|
679
|
+
o.http_request_uri = "/"
|
680
|
+
o.input = Shapes::ShapeRef.new(shape: GetParametersForImportRequest)
|
681
|
+
o.output = Shapes::ShapeRef.new(shape: GetParametersForImportResponse)
|
682
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
683
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
684
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
685
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
686
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
687
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
688
|
+
end)
|
689
|
+
|
690
|
+
api.add_operation(:import_key_material, Seahorse::Model::Operation.new.tap do |o|
|
691
|
+
o.name = "ImportKeyMaterial"
|
692
|
+
o.http_method = "POST"
|
693
|
+
o.http_request_uri = "/"
|
694
|
+
o.input = Shapes::ShapeRef.new(shape: ImportKeyMaterialRequest)
|
695
|
+
o.output = Shapes::ShapeRef.new(shape: ImportKeyMaterialResponse)
|
696
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
697
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
698
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
699
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
700
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
701
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
702
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
|
703
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectKeyMaterialException)
|
704
|
+
o.errors << Shapes::ShapeRef.new(shape: ExpiredImportTokenException)
|
705
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidImportTokenException)
|
706
|
+
end)
|
707
|
+
|
708
|
+
api.add_operation(:list_aliases, Seahorse::Model::Operation.new.tap do |o|
|
709
|
+
o.name = "ListAliases"
|
710
|
+
o.http_method = "POST"
|
711
|
+
o.http_request_uri = "/"
|
712
|
+
o.input = Shapes::ShapeRef.new(shape: ListAliasesRequest)
|
713
|
+
o.output = Shapes::ShapeRef.new(shape: ListAliasesResponse)
|
714
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
715
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
716
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
717
|
+
o[:pager] = Aws::Pager.new(
|
718
|
+
more_results: "truncated",
|
719
|
+
limit_key: "limit",
|
720
|
+
tokens: {
|
721
|
+
"next_marker" => "marker"
|
722
|
+
}
|
723
|
+
)
|
724
|
+
end)
|
725
|
+
|
726
|
+
api.add_operation(:list_grants, Seahorse::Model::Operation.new.tap do |o|
|
727
|
+
o.name = "ListGrants"
|
728
|
+
o.http_method = "POST"
|
729
|
+
o.http_request_uri = "/"
|
730
|
+
o.input = Shapes::ShapeRef.new(shape: ListGrantsRequest)
|
731
|
+
o.output = Shapes::ShapeRef.new(shape: ListGrantsResponse)
|
732
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
733
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
734
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
735
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
736
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
737
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
738
|
+
o[:pager] = Aws::Pager.new(
|
739
|
+
more_results: "truncated",
|
740
|
+
limit_key: "limit",
|
741
|
+
tokens: {
|
742
|
+
"next_marker" => "marker"
|
743
|
+
}
|
744
|
+
)
|
745
|
+
end)
|
746
|
+
|
747
|
+
api.add_operation(:list_key_policies, Seahorse::Model::Operation.new.tap do |o|
|
748
|
+
o.name = "ListKeyPolicies"
|
749
|
+
o.http_method = "POST"
|
750
|
+
o.http_request_uri = "/"
|
751
|
+
o.input = Shapes::ShapeRef.new(shape: ListKeyPoliciesRequest)
|
752
|
+
o.output = Shapes::ShapeRef.new(shape: ListKeyPoliciesResponse)
|
753
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
754
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
755
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
756
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
757
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
758
|
+
o[:pager] = Aws::Pager.new(
|
759
|
+
more_results: "truncated",
|
760
|
+
limit_key: "limit",
|
761
|
+
tokens: {
|
762
|
+
"next_marker" => "marker"
|
763
|
+
}
|
764
|
+
)
|
765
|
+
end)
|
766
|
+
|
767
|
+
api.add_operation(:list_keys, Seahorse::Model::Operation.new.tap do |o|
|
768
|
+
o.name = "ListKeys"
|
769
|
+
o.http_method = "POST"
|
770
|
+
o.http_request_uri = "/"
|
771
|
+
o.input = Shapes::ShapeRef.new(shape: ListKeysRequest)
|
772
|
+
o.output = Shapes::ShapeRef.new(shape: ListKeysResponse)
|
773
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
774
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
775
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
776
|
+
o[:pager] = Aws::Pager.new(
|
777
|
+
more_results: "truncated",
|
778
|
+
limit_key: "limit",
|
779
|
+
tokens: {
|
780
|
+
"next_marker" => "marker"
|
781
|
+
}
|
782
|
+
)
|
783
|
+
end)
|
784
|
+
|
785
|
+
api.add_operation(:list_retirable_grants, Seahorse::Model::Operation.new.tap do |o|
|
786
|
+
o.name = "ListRetirableGrants"
|
787
|
+
o.http_method = "POST"
|
788
|
+
o.http_request_uri = "/"
|
789
|
+
o.input = Shapes::ShapeRef.new(shape: ListRetirableGrantsRequest)
|
790
|
+
o.output = Shapes::ShapeRef.new(shape: ListGrantsResponse)
|
791
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
792
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
793
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
794
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
795
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
796
|
+
end)
|
797
|
+
|
798
|
+
api.add_operation(:put_key_policy, Seahorse::Model::Operation.new.tap do |o|
|
799
|
+
o.name = "PutKeyPolicy"
|
800
|
+
o.http_method = "POST"
|
801
|
+
o.http_request_uri = "/"
|
802
|
+
o.input = Shapes::ShapeRef.new(shape: PutKeyPolicyRequest)
|
803
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
804
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
805
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
806
|
+
o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
|
807
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
808
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
809
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
810
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
811
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
812
|
+
end)
|
813
|
+
|
814
|
+
api.add_operation(:re_encrypt, Seahorse::Model::Operation.new.tap do |o|
|
815
|
+
o.name = "ReEncrypt"
|
816
|
+
o.http_method = "POST"
|
817
|
+
o.http_request_uri = "/"
|
818
|
+
o.input = Shapes::ShapeRef.new(shape: ReEncryptRequest)
|
819
|
+
o.output = Shapes::ShapeRef.new(shape: ReEncryptResponse)
|
820
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
821
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
|
822
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
|
823
|
+
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
|
824
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
825
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
|
826
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
827
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
828
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
829
|
+
end)
|
830
|
+
|
831
|
+
api.add_operation(:retire_grant, Seahorse::Model::Operation.new.tap do |o|
|
832
|
+
o.name = "RetireGrant"
|
833
|
+
o.http_method = "POST"
|
834
|
+
o.http_request_uri = "/"
|
835
|
+
o.input = Shapes::ShapeRef.new(shape: RetireGrantRequest)
|
836
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
837
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
838
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantIdException)
|
839
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
840
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
841
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
842
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
843
|
+
end)
|
844
|
+
|
845
|
+
api.add_operation(:revoke_grant, Seahorse::Model::Operation.new.tap do |o|
|
846
|
+
o.name = "RevokeGrant"
|
847
|
+
o.http_method = "POST"
|
848
|
+
o.http_request_uri = "/"
|
849
|
+
o.input = Shapes::ShapeRef.new(shape: RevokeGrantRequest)
|
850
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
851
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
852
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
853
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
854
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantIdException)
|
855
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
856
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
857
|
+
end)
|
858
|
+
|
859
|
+
api.add_operation(:schedule_key_deletion, Seahorse::Model::Operation.new.tap do |o|
|
860
|
+
o.name = "ScheduleKeyDeletion"
|
861
|
+
o.http_method = "POST"
|
862
|
+
o.http_request_uri = "/"
|
863
|
+
o.input = Shapes::ShapeRef.new(shape: ScheduleKeyDeletionRequest)
|
864
|
+
o.output = Shapes::ShapeRef.new(shape: ScheduleKeyDeletionResponse)
|
865
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
866
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
867
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
868
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
869
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
870
|
+
end)
|
871
|
+
|
872
|
+
api.add_operation(:update_alias, Seahorse::Model::Operation.new.tap do |o|
|
873
|
+
o.name = "UpdateAlias"
|
874
|
+
o.http_method = "POST"
|
875
|
+
o.http_request_uri = "/"
|
876
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateAliasRequest)
|
877
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
878
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
879
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
880
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
881
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
882
|
+
end)
|
883
|
+
|
884
|
+
api.add_operation(:update_key_description, Seahorse::Model::Operation.new.tap do |o|
|
885
|
+
o.name = "UpdateKeyDescription"
|
886
|
+
o.http_method = "POST"
|
887
|
+
o.http_request_uri = "/"
|
888
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateKeyDescriptionRequest)
|
889
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
890
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
891
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
892
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
893
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
894
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
895
|
+
end)
|
896
|
+
end
|
897
|
+
|
898
|
+
end
|
899
|
+
end
|
900
|
+
end
|