aws-sdk-secretsmanager 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,514 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::SecretsManager
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AutomaticallyRotateAfterDaysType = Shapes::IntegerShape.new(name: 'AutomaticallyRotateAfterDaysType')
15
+ BooleanType = Shapes::BooleanShape.new(name: 'BooleanType')
16
+ CancelRotateSecretRequest = Shapes::StructureShape.new(name: 'CancelRotateSecretRequest')
17
+ CancelRotateSecretResponse = Shapes::StructureShape.new(name: 'CancelRotateSecretResponse')
18
+ ClientRequestTokenType = Shapes::StringShape.new(name: 'ClientRequestTokenType')
19
+ CreateSecretRequest = Shapes::StructureShape.new(name: 'CreateSecretRequest')
20
+ CreateSecretResponse = Shapes::StructureShape.new(name: 'CreateSecretResponse')
21
+ CreatedDateType = Shapes::TimestampShape.new(name: 'CreatedDateType')
22
+ DecryptionFailure = Shapes::StructureShape.new(name: 'DecryptionFailure')
23
+ DeleteSecretRequest = Shapes::StructureShape.new(name: 'DeleteSecretRequest')
24
+ DeleteSecretResponse = Shapes::StructureShape.new(name: 'DeleteSecretResponse')
25
+ DeletedDateType = Shapes::TimestampShape.new(name: 'DeletedDateType')
26
+ DeletionDateType = Shapes::TimestampShape.new(name: 'DeletionDateType')
27
+ DescribeSecretRequest = Shapes::StructureShape.new(name: 'DescribeSecretRequest')
28
+ DescribeSecretResponse = Shapes::StructureShape.new(name: 'DescribeSecretResponse')
29
+ DescriptionType = Shapes::StringShape.new(name: 'DescriptionType')
30
+ EncryptionFailure = Shapes::StructureShape.new(name: 'EncryptionFailure')
31
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
32
+ ExcludeCharactersType = Shapes::StringShape.new(name: 'ExcludeCharactersType')
33
+ ExcludeLowercaseType = Shapes::BooleanShape.new(name: 'ExcludeLowercaseType')
34
+ ExcludeNumbersType = Shapes::BooleanShape.new(name: 'ExcludeNumbersType')
35
+ ExcludePunctuationType = Shapes::BooleanShape.new(name: 'ExcludePunctuationType')
36
+ ExcludeUppercaseType = Shapes::BooleanShape.new(name: 'ExcludeUppercaseType')
37
+ GetRandomPasswordRequest = Shapes::StructureShape.new(name: 'GetRandomPasswordRequest')
38
+ GetRandomPasswordResponse = Shapes::StructureShape.new(name: 'GetRandomPasswordResponse')
39
+ GetSecretValueRequest = Shapes::StructureShape.new(name: 'GetSecretValueRequest')
40
+ GetSecretValueResponse = Shapes::StructureShape.new(name: 'GetSecretValueResponse')
41
+ IncludeSpaceType = Shapes::BooleanShape.new(name: 'IncludeSpaceType')
42
+ InternalServiceError = Shapes::StructureShape.new(name: 'InternalServiceError')
43
+ InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
44
+ InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
45
+ InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
46
+ KmsKeyIdType = Shapes::StringShape.new(name: 'KmsKeyIdType')
47
+ LastAccessedDateType = Shapes::TimestampShape.new(name: 'LastAccessedDateType')
48
+ LastChangedDateType = Shapes::TimestampShape.new(name: 'LastChangedDateType')
49
+ LastRotatedDateType = Shapes::TimestampShape.new(name: 'LastRotatedDateType')
50
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
51
+ ListSecretVersionIdsRequest = Shapes::StructureShape.new(name: 'ListSecretVersionIdsRequest')
52
+ ListSecretVersionIdsResponse = Shapes::StructureShape.new(name: 'ListSecretVersionIdsResponse')
53
+ ListSecretsRequest = Shapes::StructureShape.new(name: 'ListSecretsRequest')
54
+ ListSecretsResponse = Shapes::StructureShape.new(name: 'ListSecretsResponse')
55
+ MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
56
+ MaxResultsType = Shapes::IntegerShape.new(name: 'MaxResultsType')
57
+ NameType = Shapes::StringShape.new(name: 'NameType')
58
+ NextTokenType = Shapes::StringShape.new(name: 'NextTokenType')
59
+ PasswordLengthType = Shapes::IntegerShape.new(name: 'PasswordLengthType')
60
+ PutSecretValueRequest = Shapes::StructureShape.new(name: 'PutSecretValueRequest')
61
+ PutSecretValueResponse = Shapes::StructureShape.new(name: 'PutSecretValueResponse')
62
+ RandomPasswordType = Shapes::StringShape.new(name: 'RandomPasswordType')
63
+ RecoveryWindowInDaysType = Shapes::IntegerShape.new(name: 'RecoveryWindowInDaysType')
64
+ RequireEachIncludedTypeType = Shapes::BooleanShape.new(name: 'RequireEachIncludedTypeType')
65
+ ResourceExistsException = Shapes::StructureShape.new(name: 'ResourceExistsException')
66
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
67
+ RestoreSecretRequest = Shapes::StructureShape.new(name: 'RestoreSecretRequest')
68
+ RestoreSecretResponse = Shapes::StructureShape.new(name: 'RestoreSecretResponse')
69
+ RotateSecretRequest = Shapes::StructureShape.new(name: 'RotateSecretRequest')
70
+ RotateSecretResponse = Shapes::StructureShape.new(name: 'RotateSecretResponse')
71
+ RotationEnabledType = Shapes::BooleanShape.new(name: 'RotationEnabledType')
72
+ RotationLambdaARNType = Shapes::StringShape.new(name: 'RotationLambdaARNType')
73
+ RotationRulesType = Shapes::StructureShape.new(name: 'RotationRulesType')
74
+ SecretARNType = Shapes::StringShape.new(name: 'SecretARNType')
75
+ SecretBinaryType = Shapes::BlobShape.new(name: 'SecretBinaryType')
76
+ SecretIdType = Shapes::StringShape.new(name: 'SecretIdType')
77
+ SecretListEntry = Shapes::StructureShape.new(name: 'SecretListEntry')
78
+ SecretListType = Shapes::ListShape.new(name: 'SecretListType')
79
+ SecretNameType = Shapes::StringShape.new(name: 'SecretNameType')
80
+ SecretStringType = Shapes::StringShape.new(name: 'SecretStringType')
81
+ SecretVersionIdType = Shapes::StringShape.new(name: 'SecretVersionIdType')
82
+ SecretVersionStageType = Shapes::StringShape.new(name: 'SecretVersionStageType')
83
+ SecretVersionStagesType = Shapes::ListShape.new(name: 'SecretVersionStagesType')
84
+ SecretVersionsListEntry = Shapes::StructureShape.new(name: 'SecretVersionsListEntry')
85
+ SecretVersionsListType = Shapes::ListShape.new(name: 'SecretVersionsListType')
86
+ SecretVersionsToStagesMapType = Shapes::MapShape.new(name: 'SecretVersionsToStagesMapType')
87
+ Tag = Shapes::StructureShape.new(name: 'Tag')
88
+ TagKeyListType = Shapes::ListShape.new(name: 'TagKeyListType')
89
+ TagKeyType = Shapes::StringShape.new(name: 'TagKeyType')
90
+ TagListType = Shapes::ListShape.new(name: 'TagListType')
91
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
92
+ TagValueType = Shapes::StringShape.new(name: 'TagValueType')
93
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
94
+ UpdateSecretRequest = Shapes::StructureShape.new(name: 'UpdateSecretRequest')
95
+ UpdateSecretResponse = Shapes::StructureShape.new(name: 'UpdateSecretResponse')
96
+ UpdateSecretVersionStageRequest = Shapes::StructureShape.new(name: 'UpdateSecretVersionStageRequest')
97
+ UpdateSecretVersionStageResponse = Shapes::StructureShape.new(name: 'UpdateSecretVersionStageResponse')
98
+
99
+ CancelRotateSecretRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
100
+ CancelRotateSecretRequest.struct_class = Types::CancelRotateSecretRequest
101
+
102
+ CancelRotateSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
103
+ CancelRotateSecretResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
104
+ CancelRotateSecretResponse.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
105
+ CancelRotateSecretResponse.struct_class = Types::CancelRotateSecretResponse
106
+
107
+ CreateSecretRequest.add_member(:name, Shapes::ShapeRef.new(shape: NameType, required: true, location_name: "Name"))
108
+ CreateSecretRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenType, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
109
+ CreateSecretRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
110
+ CreateSecretRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyIdType, location_name: "KmsKeyId"))
111
+ CreateSecretRequest.add_member(:secret_binary, Shapes::ShapeRef.new(shape: SecretBinaryType, location_name: "SecretBinary"))
112
+ CreateSecretRequest.add_member(:secret_string, Shapes::ShapeRef.new(shape: SecretStringType, location_name: "SecretString"))
113
+ CreateSecretRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagListType, location_name: "Tags"))
114
+ CreateSecretRequest.struct_class = Types::CreateSecretRequest
115
+
116
+ CreateSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
117
+ CreateSecretResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
118
+ CreateSecretResponse.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
119
+ CreateSecretResponse.struct_class = Types::CreateSecretResponse
120
+
121
+ DeleteSecretRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
122
+ DeleteSecretRequest.add_member(:recovery_window_in_days, Shapes::ShapeRef.new(shape: RecoveryWindowInDaysType, location_name: "RecoveryWindowInDays", metadata: {"box"=>true}))
123
+ DeleteSecretRequest.struct_class = Types::DeleteSecretRequest
124
+
125
+ DeleteSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
126
+ DeleteSecretResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
127
+ DeleteSecretResponse.add_member(:deletion_date, Shapes::ShapeRef.new(shape: DeletionDateType, location_name: "DeletionDate", metadata: {"box"=>true}))
128
+ DeleteSecretResponse.struct_class = Types::DeleteSecretResponse
129
+
130
+ DescribeSecretRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
131
+ DescribeSecretRequest.struct_class = Types::DescribeSecretRequest
132
+
133
+ DescribeSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
134
+ DescribeSecretResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
135
+ DescribeSecretResponse.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
136
+ DescribeSecretResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyIdType, location_name: "KmsKeyId"))
137
+ DescribeSecretResponse.add_member(:rotation_enabled, Shapes::ShapeRef.new(shape: RotationEnabledType, location_name: "RotationEnabled", metadata: {"box"=>true}))
138
+ DescribeSecretResponse.add_member(:rotation_lambda_arn, Shapes::ShapeRef.new(shape: RotationLambdaARNType, location_name: "RotationLambdaARN"))
139
+ DescribeSecretResponse.add_member(:rotation_rules, Shapes::ShapeRef.new(shape: RotationRulesType, location_name: "RotationRules"))
140
+ DescribeSecretResponse.add_member(:last_rotated_date, Shapes::ShapeRef.new(shape: LastRotatedDateType, location_name: "LastRotatedDate", metadata: {"box"=>true}))
141
+ DescribeSecretResponse.add_member(:last_changed_date, Shapes::ShapeRef.new(shape: LastChangedDateType, location_name: "LastChangedDate", metadata: {"box"=>true}))
142
+ DescribeSecretResponse.add_member(:last_accessed_date, Shapes::ShapeRef.new(shape: LastAccessedDateType, location_name: "LastAccessedDate", metadata: {"box"=>true}))
143
+ DescribeSecretResponse.add_member(:deleted_date, Shapes::ShapeRef.new(shape: DeletedDateType, location_name: "DeletedDate", metadata: {"box"=>true}))
144
+ DescribeSecretResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagListType, location_name: "Tags"))
145
+ DescribeSecretResponse.add_member(:version_ids_to_stages, Shapes::ShapeRef.new(shape: SecretVersionsToStagesMapType, location_name: "VersionIdsToStages"))
146
+ DescribeSecretResponse.struct_class = Types::DescribeSecretResponse
147
+
148
+ GetRandomPasswordRequest.add_member(:password_length, Shapes::ShapeRef.new(shape: PasswordLengthType, location_name: "PasswordLength", metadata: {"box"=>true}))
149
+ GetRandomPasswordRequest.add_member(:exclude_characters, Shapes::ShapeRef.new(shape: ExcludeCharactersType, location_name: "ExcludeCharacters"))
150
+ GetRandomPasswordRequest.add_member(:exclude_numbers, Shapes::ShapeRef.new(shape: ExcludeNumbersType, location_name: "ExcludeNumbers", metadata: {"box"=>true}))
151
+ GetRandomPasswordRequest.add_member(:exclude_punctuation, Shapes::ShapeRef.new(shape: ExcludePunctuationType, location_name: "ExcludePunctuation", metadata: {"box"=>true}))
152
+ GetRandomPasswordRequest.add_member(:exclude_uppercase, Shapes::ShapeRef.new(shape: ExcludeUppercaseType, location_name: "ExcludeUppercase", metadata: {"box"=>true}))
153
+ GetRandomPasswordRequest.add_member(:exclude_lowercase, Shapes::ShapeRef.new(shape: ExcludeLowercaseType, location_name: "ExcludeLowercase", metadata: {"box"=>true}))
154
+ GetRandomPasswordRequest.add_member(:include_space, Shapes::ShapeRef.new(shape: IncludeSpaceType, location_name: "IncludeSpace", metadata: {"box"=>true}))
155
+ GetRandomPasswordRequest.add_member(:require_each_included_type, Shapes::ShapeRef.new(shape: RequireEachIncludedTypeType, location_name: "RequireEachIncludedType", metadata: {"box"=>true}))
156
+ GetRandomPasswordRequest.struct_class = Types::GetRandomPasswordRequest
157
+
158
+ GetRandomPasswordResponse.add_member(:random_password, Shapes::ShapeRef.new(shape: RandomPasswordType, location_name: "RandomPassword"))
159
+ GetRandomPasswordResponse.struct_class = Types::GetRandomPasswordResponse
160
+
161
+ GetSecretValueRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
162
+ GetSecretValueRequest.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
163
+ GetSecretValueRequest.add_member(:version_stage, Shapes::ShapeRef.new(shape: SecretVersionStageType, location_name: "VersionStage"))
164
+ GetSecretValueRequest.struct_class = Types::GetSecretValueRequest
165
+
166
+ GetSecretValueResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
167
+ GetSecretValueResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
168
+ GetSecretValueResponse.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
169
+ GetSecretValueResponse.add_member(:secret_binary, Shapes::ShapeRef.new(shape: SecretBinaryType, location_name: "SecretBinary"))
170
+ GetSecretValueResponse.add_member(:secret_string, Shapes::ShapeRef.new(shape: SecretStringType, location_name: "SecretString"))
171
+ GetSecretValueResponse.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
172
+ GetSecretValueResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: CreatedDateType, location_name: "CreatedDate", metadata: {"box"=>true}))
173
+ GetSecretValueResponse.struct_class = Types::GetSecretValueResponse
174
+
175
+ ListSecretVersionIdsRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
176
+ ListSecretVersionIdsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsType, location_name: "MaxResults", metadata: {"box"=>true}))
177
+ ListSecretVersionIdsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
178
+ ListSecretVersionIdsRequest.add_member(:include_deprecated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "IncludeDeprecated", metadata: {"box"=>true}))
179
+ ListSecretVersionIdsRequest.struct_class = Types::ListSecretVersionIdsRequest
180
+
181
+ ListSecretVersionIdsResponse.add_member(:versions, Shapes::ShapeRef.new(shape: SecretVersionsListType, location_name: "Versions"))
182
+ ListSecretVersionIdsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
183
+ ListSecretVersionIdsResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
184
+ ListSecretVersionIdsResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
185
+ ListSecretVersionIdsResponse.struct_class = Types::ListSecretVersionIdsResponse
186
+
187
+ ListSecretsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsType, location_name: "MaxResults", metadata: {"box"=>true}))
188
+ ListSecretsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
189
+ ListSecretsRequest.struct_class = Types::ListSecretsRequest
190
+
191
+ ListSecretsResponse.add_member(:secret_list, Shapes::ShapeRef.new(shape: SecretListType, location_name: "SecretList"))
192
+ ListSecretsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
193
+ ListSecretsResponse.struct_class = Types::ListSecretsResponse
194
+
195
+ PutSecretValueRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
196
+ PutSecretValueRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenType, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
197
+ PutSecretValueRequest.add_member(:secret_binary, Shapes::ShapeRef.new(shape: SecretBinaryType, location_name: "SecretBinary"))
198
+ PutSecretValueRequest.add_member(:secret_string, Shapes::ShapeRef.new(shape: SecretStringType, location_name: "SecretString"))
199
+ PutSecretValueRequest.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
200
+ PutSecretValueRequest.struct_class = Types::PutSecretValueRequest
201
+
202
+ PutSecretValueResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
203
+ PutSecretValueResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
204
+ PutSecretValueResponse.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
205
+ PutSecretValueResponse.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
206
+ PutSecretValueResponse.struct_class = Types::PutSecretValueResponse
207
+
208
+ RestoreSecretRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
209
+ RestoreSecretRequest.struct_class = Types::RestoreSecretRequest
210
+
211
+ RestoreSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
212
+ RestoreSecretResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
213
+ RestoreSecretResponse.struct_class = Types::RestoreSecretResponse
214
+
215
+ RotateSecretRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
216
+ RotateSecretRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenType, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
217
+ RotateSecretRequest.add_member(:rotation_lambda_arn, Shapes::ShapeRef.new(shape: RotationLambdaARNType, location_name: "RotationLambdaARN"))
218
+ RotateSecretRequest.add_member(:rotation_rules, Shapes::ShapeRef.new(shape: RotationRulesType, location_name: "RotationRules"))
219
+ RotateSecretRequest.struct_class = Types::RotateSecretRequest
220
+
221
+ RotateSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
222
+ RotateSecretResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
223
+ RotateSecretResponse.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId", metadata: {"box"=>true}))
224
+ RotateSecretResponse.struct_class = Types::RotateSecretResponse
225
+
226
+ RotationRulesType.add_member(:automatically_after_days, Shapes::ShapeRef.new(shape: AutomaticallyRotateAfterDaysType, location_name: "AutomaticallyAfterDays", metadata: {"box"=>true}))
227
+ RotationRulesType.struct_class = Types::RotationRulesType
228
+
229
+ SecretListEntry.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
230
+ SecretListEntry.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
231
+ SecretListEntry.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
232
+ SecretListEntry.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyIdType, location_name: "KmsKeyId"))
233
+ SecretListEntry.add_member(:rotation_enabled, Shapes::ShapeRef.new(shape: RotationEnabledType, location_name: "RotationEnabled", metadata: {"box"=>true}))
234
+ SecretListEntry.add_member(:rotation_lambda_arn, Shapes::ShapeRef.new(shape: RotationLambdaARNType, location_name: "RotationLambdaARN"))
235
+ SecretListEntry.add_member(:rotation_rules, Shapes::ShapeRef.new(shape: RotationRulesType, location_name: "RotationRules"))
236
+ SecretListEntry.add_member(:last_rotated_date, Shapes::ShapeRef.new(shape: LastRotatedDateType, location_name: "LastRotatedDate", metadata: {"box"=>true}))
237
+ SecretListEntry.add_member(:last_changed_date, Shapes::ShapeRef.new(shape: LastChangedDateType, location_name: "LastChangedDate", metadata: {"box"=>true}))
238
+ SecretListEntry.add_member(:last_accessed_date, Shapes::ShapeRef.new(shape: LastAccessedDateType, location_name: "LastAccessedDate", metadata: {"box"=>true}))
239
+ SecretListEntry.add_member(:deleted_date, Shapes::ShapeRef.new(shape: DeletedDateType, location_name: "DeletedDate"))
240
+ SecretListEntry.add_member(:tags, Shapes::ShapeRef.new(shape: TagListType, location_name: "Tags"))
241
+ SecretListEntry.add_member(:secret_versions_to_stages, Shapes::ShapeRef.new(shape: SecretVersionsToStagesMapType, location_name: "SecretVersionsToStages"))
242
+ SecretListEntry.struct_class = Types::SecretListEntry
243
+
244
+ SecretListType.member = Shapes::ShapeRef.new(shape: SecretListEntry)
245
+
246
+ SecretVersionStagesType.member = Shapes::ShapeRef.new(shape: SecretVersionStageType)
247
+
248
+ SecretVersionsListEntry.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
249
+ SecretVersionsListEntry.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
250
+ SecretVersionsListEntry.add_member(:last_accessed_date, Shapes::ShapeRef.new(shape: LastAccessedDateType, location_name: "LastAccessedDate", metadata: {"box"=>true}))
251
+ SecretVersionsListEntry.add_member(:created_date, Shapes::ShapeRef.new(shape: CreatedDateType, location_name: "CreatedDate", metadata: {"box"=>true}))
252
+ SecretVersionsListEntry.struct_class = Types::SecretVersionsListEntry
253
+
254
+ SecretVersionsListType.member = Shapes::ShapeRef.new(shape: SecretVersionsListEntry)
255
+
256
+ SecretVersionsToStagesMapType.key = Shapes::ShapeRef.new(shape: SecretVersionIdType)
257
+ SecretVersionsToStagesMapType.value = Shapes::ShapeRef.new(shape: SecretVersionStagesType)
258
+
259
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKeyType, location_name: "Key"))
260
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValueType, location_name: "Value"))
261
+ Tag.struct_class = Types::Tag
262
+
263
+ TagKeyListType.member = Shapes::ShapeRef.new(shape: TagKeyType)
264
+
265
+ TagListType.member = Shapes::ShapeRef.new(shape: Tag)
266
+
267
+ TagResourceRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
268
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagListType, required: true, location_name: "Tags"))
269
+ TagResourceRequest.struct_class = Types::TagResourceRequest
270
+
271
+ UntagResourceRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
272
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyListType, required: true, location_name: "TagKeys"))
273
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
274
+
275
+ UpdateSecretRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
276
+ UpdateSecretRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenType, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
277
+ UpdateSecretRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
278
+ UpdateSecretRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyIdType, location_name: "KmsKeyId"))
279
+ UpdateSecretRequest.add_member(:secret_binary, Shapes::ShapeRef.new(shape: SecretBinaryType, location_name: "SecretBinary"))
280
+ UpdateSecretRequest.add_member(:secret_string, Shapes::ShapeRef.new(shape: SecretStringType, location_name: "SecretString"))
281
+ UpdateSecretRequest.struct_class = Types::UpdateSecretRequest
282
+
283
+ UpdateSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
284
+ UpdateSecretResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
285
+ UpdateSecretResponse.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
286
+ UpdateSecretResponse.struct_class = Types::UpdateSecretResponse
287
+
288
+ UpdateSecretVersionStageRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
289
+ UpdateSecretVersionStageRequest.add_member(:version_stage, Shapes::ShapeRef.new(shape: SecretVersionStageType, required: true, location_name: "VersionStage"))
290
+ UpdateSecretVersionStageRequest.add_member(:remove_from_version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "RemoveFromVersionId", metadata: {"box"=>true}))
291
+ UpdateSecretVersionStageRequest.add_member(:move_to_version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "MoveToVersionId", metadata: {"box"=>true}))
292
+ UpdateSecretVersionStageRequest.struct_class = Types::UpdateSecretVersionStageRequest
293
+
294
+ UpdateSecretVersionStageResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
295
+ UpdateSecretVersionStageResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
296
+ UpdateSecretVersionStageResponse.struct_class = Types::UpdateSecretVersionStageResponse
297
+
298
+
299
+ # @api private
300
+ API = Seahorse::Model::Api.new.tap do |api|
301
+
302
+ api.version = "2017-10-17"
303
+
304
+ api.metadata = {
305
+ "endpointPrefix" => "secretsmanager",
306
+ "jsonVersion" => "1.1",
307
+ "protocol" => "json",
308
+ "serviceFullName" => "AWS Secrets Manager",
309
+ "signatureVersion" => "v4",
310
+ "signingName" => "secretsmanager",
311
+ "targetPrefix" => "secretsmanager",
312
+ }
313
+
314
+ api.add_operation(:cancel_rotate_secret, Seahorse::Model::Operation.new.tap do |o|
315
+ o.name = "CancelRotateSecret"
316
+ o.http_method = "POST"
317
+ o.http_request_uri = "/"
318
+ o.input = Shapes::ShapeRef.new(shape: CancelRotateSecretRequest)
319
+ o.output = Shapes::ShapeRef.new(shape: CancelRotateSecretResponse)
320
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
321
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
322
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
323
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
324
+ end)
325
+
326
+ api.add_operation(:create_secret, Seahorse::Model::Operation.new.tap do |o|
327
+ o.name = "CreateSecret"
328
+ o.http_method = "POST"
329
+ o.http_request_uri = "/"
330
+ o.input = Shapes::ShapeRef.new(shape: CreateSecretRequest)
331
+ o.output = Shapes::ShapeRef.new(shape: CreateSecretResponse)
332
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
333
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
334
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
335
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionFailure)
336
+ o.errors << Shapes::ShapeRef.new(shape: ResourceExistsException)
337
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
338
+ o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
339
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
340
+ end)
341
+
342
+ api.add_operation(:delete_secret, Seahorse::Model::Operation.new.tap do |o|
343
+ o.name = "DeleteSecret"
344
+ o.http_method = "POST"
345
+ o.http_request_uri = "/"
346
+ o.input = Shapes::ShapeRef.new(shape: DeleteSecretRequest)
347
+ o.output = Shapes::ShapeRef.new(shape: DeleteSecretResponse)
348
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
349
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
350
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
351
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
352
+ end)
353
+
354
+ api.add_operation(:describe_secret, Seahorse::Model::Operation.new.tap do |o|
355
+ o.name = "DescribeSecret"
356
+ o.http_method = "POST"
357
+ o.http_request_uri = "/"
358
+ o.input = Shapes::ShapeRef.new(shape: DescribeSecretRequest)
359
+ o.output = Shapes::ShapeRef.new(shape: DescribeSecretResponse)
360
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
361
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
362
+ end)
363
+
364
+ api.add_operation(:get_random_password, Seahorse::Model::Operation.new.tap do |o|
365
+ o.name = "GetRandomPassword"
366
+ o.http_method = "POST"
367
+ o.http_request_uri = "/"
368
+ o.input = Shapes::ShapeRef.new(shape: GetRandomPasswordRequest)
369
+ o.output = Shapes::ShapeRef.new(shape: GetRandomPasswordResponse)
370
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
371
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
372
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
373
+ end)
374
+
375
+ api.add_operation(:get_secret_value, Seahorse::Model::Operation.new.tap do |o|
376
+ o.name = "GetSecretValue"
377
+ o.http_method = "POST"
378
+ o.http_request_uri = "/"
379
+ o.input = Shapes::ShapeRef.new(shape: GetSecretValueRequest)
380
+ o.output = Shapes::ShapeRef.new(shape: GetSecretValueResponse)
381
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
382
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
383
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
384
+ o.errors << Shapes::ShapeRef.new(shape: DecryptionFailure)
385
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
386
+ end)
387
+
388
+ api.add_operation(:list_secret_version_ids, Seahorse::Model::Operation.new.tap do |o|
389
+ o.name = "ListSecretVersionIds"
390
+ o.http_method = "POST"
391
+ o.http_request_uri = "/"
392
+ o.input = Shapes::ShapeRef.new(shape: ListSecretVersionIdsRequest)
393
+ o.output = Shapes::ShapeRef.new(shape: ListSecretVersionIdsResponse)
394
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
395
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
396
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
397
+ o[:pager] = Aws::Pager.new(
398
+ limit_key: "max_results",
399
+ tokens: {
400
+ "next_token" => "next_token"
401
+ }
402
+ )
403
+ end)
404
+
405
+ api.add_operation(:list_secrets, Seahorse::Model::Operation.new.tap do |o|
406
+ o.name = "ListSecrets"
407
+ o.http_method = "POST"
408
+ o.http_request_uri = "/"
409
+ o.input = Shapes::ShapeRef.new(shape: ListSecretsRequest)
410
+ o.output = Shapes::ShapeRef.new(shape: ListSecretsResponse)
411
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
412
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
413
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
414
+ o[:pager] = Aws::Pager.new(
415
+ limit_key: "max_results",
416
+ tokens: {
417
+ "next_token" => "next_token"
418
+ }
419
+ )
420
+ end)
421
+
422
+ api.add_operation(:put_secret_value, Seahorse::Model::Operation.new.tap do |o|
423
+ o.name = "PutSecretValue"
424
+ o.http_method = "POST"
425
+ o.http_request_uri = "/"
426
+ o.input = Shapes::ShapeRef.new(shape: PutSecretValueRequest)
427
+ o.output = Shapes::ShapeRef.new(shape: PutSecretValueResponse)
428
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
429
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
430
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
431
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionFailure)
432
+ o.errors << Shapes::ShapeRef.new(shape: ResourceExistsException)
433
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
434
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
435
+ end)
436
+
437
+ api.add_operation(:restore_secret, Seahorse::Model::Operation.new.tap do |o|
438
+ o.name = "RestoreSecret"
439
+ o.http_method = "POST"
440
+ o.http_request_uri = "/"
441
+ o.input = Shapes::ShapeRef.new(shape: RestoreSecretRequest)
442
+ o.output = Shapes::ShapeRef.new(shape: RestoreSecretResponse)
443
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
444
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
445
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
446
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
447
+ end)
448
+
449
+ api.add_operation(:rotate_secret, Seahorse::Model::Operation.new.tap do |o|
450
+ o.name = "RotateSecret"
451
+ o.http_method = "POST"
452
+ o.http_request_uri = "/"
453
+ o.input = Shapes::ShapeRef.new(shape: RotateSecretRequest)
454
+ o.output = Shapes::ShapeRef.new(shape: RotateSecretResponse)
455
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
456
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
457
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
458
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
459
+ end)
460
+
461
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
462
+ o.name = "TagResource"
463
+ o.http_method = "POST"
464
+ o.http_request_uri = "/"
465
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
466
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
467
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
468
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
469
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
470
+ end)
471
+
472
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
473
+ o.name = "UntagResource"
474
+ o.http_method = "POST"
475
+ o.http_request_uri = "/"
476
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
477
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
478
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
479
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
480
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
481
+ end)
482
+
483
+ api.add_operation(:update_secret, Seahorse::Model::Operation.new.tap do |o|
484
+ o.name = "UpdateSecret"
485
+ o.http_method = "POST"
486
+ o.http_request_uri = "/"
487
+ o.input = Shapes::ShapeRef.new(shape: UpdateSecretRequest)
488
+ o.output = Shapes::ShapeRef.new(shape: UpdateSecretResponse)
489
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
490
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
491
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
492
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionFailure)
493
+ o.errors << Shapes::ShapeRef.new(shape: ResourceExistsException)
494
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
495
+ o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
496
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
497
+ end)
498
+
499
+ api.add_operation(:update_secret_version_stage, Seahorse::Model::Operation.new.tap do |o|
500
+ o.name = "UpdateSecretVersionStage"
501
+ o.http_method = "POST"
502
+ o.http_request_uri = "/"
503
+ o.input = Shapes::ShapeRef.new(shape: UpdateSecretVersionStageRequest)
504
+ o.output = Shapes::ShapeRef.new(shape: UpdateSecretVersionStageResponse)
505
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
506
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
507
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
508
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
509
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
510
+ end)
511
+ end
512
+
513
+ end
514
+ end