aws-sdk-secretsmanager 1.31.0 → 1.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +580 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-secretsmanager/client.rb +1801 -1300
- data/lib/aws-sdk-secretsmanager/client_api.rb +241 -1
- data/lib/aws-sdk-secretsmanager/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-secretsmanager/endpoint_provider.rb +65 -0
- data/lib/aws-sdk-secretsmanager/endpoints.rb +20 -0
- data/lib/aws-sdk-secretsmanager/errors.rb +51 -11
- data/lib/aws-sdk-secretsmanager/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-secretsmanager/resource.rb +4 -1
- data/lib/aws-sdk-secretsmanager/types.rb +1357 -1079
- data/lib/aws-sdk-secretsmanager.rb +26 -12
- data/sig/client.rbs +445 -0
- data/sig/errors.rbs +52 -0
- data/sig/resource.rbs +85 -0
- data/sig/types.rbs +485 -0
- data/sig/waiters.rbs +13 -0
- metadata +26 -15
@@ -1,17 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
4
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
7
|
#
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
10
|
+
|
8
11
|
module Aws::SecretsManager
|
9
12
|
# @api private
|
10
13
|
module ClientApi
|
11
14
|
|
12
15
|
include Seahorse::Model
|
13
16
|
|
17
|
+
APIErrorListType = Shapes::ListShape.new(name: 'APIErrorListType')
|
18
|
+
APIErrorType = Shapes::StructureShape.new(name: 'APIErrorType')
|
19
|
+
AddReplicaRegionListType = Shapes::ListShape.new(name: 'AddReplicaRegionListType')
|
14
20
|
AutomaticallyRotateAfterDaysType = Shapes::IntegerShape.new(name: 'AutomaticallyRotateAfterDaysType')
|
21
|
+
BatchGetSecretValueRequest = Shapes::StructureShape.new(name: 'BatchGetSecretValueRequest')
|
22
|
+
BatchGetSecretValueResponse = Shapes::StructureShape.new(name: 'BatchGetSecretValueResponse')
|
15
23
|
BooleanType = Shapes::BooleanShape.new(name: 'BooleanType')
|
16
24
|
CancelRotateSecretRequest = Shapes::StructureShape.new(name: 'CancelRotateSecretRequest')
|
17
25
|
CancelRotateSecretResponse = Shapes::StructureShape.new(name: 'CancelRotateSecretResponse')
|
@@ -29,13 +37,20 @@ module Aws::SecretsManager
|
|
29
37
|
DescribeSecretRequest = Shapes::StructureShape.new(name: 'DescribeSecretRequest')
|
30
38
|
DescribeSecretResponse = Shapes::StructureShape.new(name: 'DescribeSecretResponse')
|
31
39
|
DescriptionType = Shapes::StringShape.new(name: 'DescriptionType')
|
40
|
+
DurationType = Shapes::StringShape.new(name: 'DurationType')
|
32
41
|
EncryptionFailure = Shapes::StructureShape.new(name: 'EncryptionFailure')
|
42
|
+
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
33
43
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
34
44
|
ExcludeCharactersType = Shapes::StringShape.new(name: 'ExcludeCharactersType')
|
35
45
|
ExcludeLowercaseType = Shapes::BooleanShape.new(name: 'ExcludeLowercaseType')
|
36
46
|
ExcludeNumbersType = Shapes::BooleanShape.new(name: 'ExcludeNumbersType')
|
37
47
|
ExcludePunctuationType = Shapes::BooleanShape.new(name: 'ExcludePunctuationType')
|
38
48
|
ExcludeUppercaseType = Shapes::BooleanShape.new(name: 'ExcludeUppercaseType')
|
49
|
+
Filter = Shapes::StructureShape.new(name: 'Filter')
|
50
|
+
FilterNameStringType = Shapes::StringShape.new(name: 'FilterNameStringType')
|
51
|
+
FilterValueStringType = Shapes::StringShape.new(name: 'FilterValueStringType')
|
52
|
+
FilterValuesStringList = Shapes::ListShape.new(name: 'FilterValuesStringList')
|
53
|
+
FiltersListType = Shapes::ListShape.new(name: 'FiltersListType')
|
39
54
|
GetRandomPasswordRequest = Shapes::StructureShape.new(name: 'GetRandomPasswordRequest')
|
40
55
|
GetRandomPasswordResponse = Shapes::StructureShape.new(name: 'GetRandomPasswordResponse')
|
41
56
|
GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
|
@@ -47,6 +62,7 @@ module Aws::SecretsManager
|
|
47
62
|
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
48
63
|
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
49
64
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
65
|
+
KmsKeyIdListType = Shapes::ListShape.new(name: 'KmsKeyIdListType')
|
50
66
|
KmsKeyIdType = Shapes::StringShape.new(name: 'KmsKeyIdType')
|
51
67
|
LastAccessedDateType = Shapes::TimestampShape.new(name: 'LastAccessedDateType')
|
52
68
|
LastChangedDateType = Shapes::TimestampShape.new(name: 'LastChangedDateType')
|
@@ -57,19 +73,31 @@ module Aws::SecretsManager
|
|
57
73
|
ListSecretsRequest = Shapes::StructureShape.new(name: 'ListSecretsRequest')
|
58
74
|
ListSecretsResponse = Shapes::StructureShape.new(name: 'ListSecretsResponse')
|
59
75
|
MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
|
76
|
+
MaxResultsBatchType = Shapes::IntegerShape.new(name: 'MaxResultsBatchType')
|
60
77
|
MaxResultsType = Shapes::IntegerShape.new(name: 'MaxResultsType')
|
61
78
|
NameType = Shapes::StringShape.new(name: 'NameType')
|
79
|
+
NextRotationDateType = Shapes::TimestampShape.new(name: 'NextRotationDateType')
|
62
80
|
NextTokenType = Shapes::StringShape.new(name: 'NextTokenType')
|
63
81
|
NonEmptyResourcePolicyType = Shapes::StringShape.new(name: 'NonEmptyResourcePolicyType')
|
64
82
|
OwningServiceType = Shapes::StringShape.new(name: 'OwningServiceType')
|
65
83
|
PasswordLengthType = Shapes::IntegerShape.new(name: 'PasswordLengthType')
|
66
84
|
PreconditionNotMetException = Shapes::StructureShape.new(name: 'PreconditionNotMetException')
|
85
|
+
PublicPolicyException = Shapes::StructureShape.new(name: 'PublicPolicyException')
|
67
86
|
PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
|
68
87
|
PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
|
69
88
|
PutSecretValueRequest = Shapes::StructureShape.new(name: 'PutSecretValueRequest')
|
70
89
|
PutSecretValueResponse = Shapes::StructureShape.new(name: 'PutSecretValueResponse')
|
71
90
|
RandomPasswordType = Shapes::StringShape.new(name: 'RandomPasswordType')
|
72
91
|
RecoveryWindowInDaysType = Shapes::IntegerShape.new(name: 'RecoveryWindowInDaysType')
|
92
|
+
RegionType = Shapes::StringShape.new(name: 'RegionType')
|
93
|
+
RemoveRegionsFromReplicationRequest = Shapes::StructureShape.new(name: 'RemoveRegionsFromReplicationRequest')
|
94
|
+
RemoveRegionsFromReplicationResponse = Shapes::StructureShape.new(name: 'RemoveRegionsFromReplicationResponse')
|
95
|
+
RemoveReplicaRegionListType = Shapes::ListShape.new(name: 'RemoveReplicaRegionListType')
|
96
|
+
ReplicaRegionType = Shapes::StructureShape.new(name: 'ReplicaRegionType')
|
97
|
+
ReplicateSecretToRegionsRequest = Shapes::StructureShape.new(name: 'ReplicateSecretToRegionsRequest')
|
98
|
+
ReplicateSecretToRegionsResponse = Shapes::StructureShape.new(name: 'ReplicateSecretToRegionsResponse')
|
99
|
+
ReplicationStatusListType = Shapes::ListShape.new(name: 'ReplicationStatusListType')
|
100
|
+
ReplicationStatusType = Shapes::StructureShape.new(name: 'ReplicationStatusType')
|
73
101
|
RequireEachIncludedTypeType = Shapes::BooleanShape.new(name: 'RequireEachIncludedTypeType')
|
74
102
|
ResourceExistsException = Shapes::StructureShape.new(name: 'ResourceExistsException')
|
75
103
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -80,30 +108,65 @@ module Aws::SecretsManager
|
|
80
108
|
RotationEnabledType = Shapes::BooleanShape.new(name: 'RotationEnabledType')
|
81
109
|
RotationLambdaARNType = Shapes::StringShape.new(name: 'RotationLambdaARNType')
|
82
110
|
RotationRulesType = Shapes::StructureShape.new(name: 'RotationRulesType')
|
111
|
+
RotationTokenType = Shapes::StringShape.new(name: 'RotationTokenType')
|
112
|
+
ScheduleExpressionType = Shapes::StringShape.new(name: 'ScheduleExpressionType')
|
83
113
|
SecretARNType = Shapes::StringShape.new(name: 'SecretARNType')
|
84
114
|
SecretBinaryType = Shapes::BlobShape.new(name: 'SecretBinaryType')
|
115
|
+
SecretIdListType = Shapes::ListShape.new(name: 'SecretIdListType')
|
85
116
|
SecretIdType = Shapes::StringShape.new(name: 'SecretIdType')
|
86
117
|
SecretListEntry = Shapes::StructureShape.new(name: 'SecretListEntry')
|
87
118
|
SecretListType = Shapes::ListShape.new(name: 'SecretListType')
|
88
119
|
SecretNameType = Shapes::StringShape.new(name: 'SecretNameType')
|
89
120
|
SecretStringType = Shapes::StringShape.new(name: 'SecretStringType')
|
121
|
+
SecretValueEntry = Shapes::StructureShape.new(name: 'SecretValueEntry')
|
122
|
+
SecretValuesType = Shapes::ListShape.new(name: 'SecretValuesType')
|
90
123
|
SecretVersionIdType = Shapes::StringShape.new(name: 'SecretVersionIdType')
|
91
124
|
SecretVersionStageType = Shapes::StringShape.new(name: 'SecretVersionStageType')
|
92
125
|
SecretVersionStagesType = Shapes::ListShape.new(name: 'SecretVersionStagesType')
|
93
126
|
SecretVersionsListEntry = Shapes::StructureShape.new(name: 'SecretVersionsListEntry')
|
94
127
|
SecretVersionsListType = Shapes::ListShape.new(name: 'SecretVersionsListType')
|
95
128
|
SecretVersionsToStagesMapType = Shapes::MapShape.new(name: 'SecretVersionsToStagesMapType')
|
129
|
+
SortOrderType = Shapes::StringShape.new(name: 'SortOrderType')
|
130
|
+
StatusMessageType = Shapes::StringShape.new(name: 'StatusMessageType')
|
131
|
+
StatusType = Shapes::StringShape.new(name: 'StatusType')
|
132
|
+
StopReplicationToReplicaRequest = Shapes::StructureShape.new(name: 'StopReplicationToReplicaRequest')
|
133
|
+
StopReplicationToReplicaResponse = Shapes::StructureShape.new(name: 'StopReplicationToReplicaResponse')
|
96
134
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
97
135
|
TagKeyListType = Shapes::ListShape.new(name: 'TagKeyListType')
|
98
136
|
TagKeyType = Shapes::StringShape.new(name: 'TagKeyType')
|
99
137
|
TagListType = Shapes::ListShape.new(name: 'TagListType')
|
100
138
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
101
139
|
TagValueType = Shapes::StringShape.new(name: 'TagValueType')
|
140
|
+
TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
|
102
141
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
103
142
|
UpdateSecretRequest = Shapes::StructureShape.new(name: 'UpdateSecretRequest')
|
104
143
|
UpdateSecretResponse = Shapes::StructureShape.new(name: 'UpdateSecretResponse')
|
105
144
|
UpdateSecretVersionStageRequest = Shapes::StructureShape.new(name: 'UpdateSecretVersionStageRequest')
|
106
145
|
UpdateSecretVersionStageResponse = Shapes::StructureShape.new(name: 'UpdateSecretVersionStageResponse')
|
146
|
+
ValidateResourcePolicyRequest = Shapes::StructureShape.new(name: 'ValidateResourcePolicyRequest')
|
147
|
+
ValidateResourcePolicyResponse = Shapes::StructureShape.new(name: 'ValidateResourcePolicyResponse')
|
148
|
+
ValidationErrorsEntry = Shapes::StructureShape.new(name: 'ValidationErrorsEntry')
|
149
|
+
ValidationErrorsType = Shapes::ListShape.new(name: 'ValidationErrorsType')
|
150
|
+
|
151
|
+
APIErrorListType.member = Shapes::ShapeRef.new(shape: APIErrorType)
|
152
|
+
|
153
|
+
APIErrorType.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, location_name: "SecretId"))
|
154
|
+
APIErrorType.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
|
155
|
+
APIErrorType.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
156
|
+
APIErrorType.struct_class = Types::APIErrorType
|
157
|
+
|
158
|
+
AddReplicaRegionListType.member = Shapes::ShapeRef.new(shape: ReplicaRegionType)
|
159
|
+
|
160
|
+
BatchGetSecretValueRequest.add_member(:secret_id_list, Shapes::ShapeRef.new(shape: SecretIdListType, location_name: "SecretIdList"))
|
161
|
+
BatchGetSecretValueRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FiltersListType, location_name: "Filters"))
|
162
|
+
BatchGetSecretValueRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsBatchType, location_name: "MaxResults", metadata: {"box"=>true}))
|
163
|
+
BatchGetSecretValueRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
|
164
|
+
BatchGetSecretValueRequest.struct_class = Types::BatchGetSecretValueRequest
|
165
|
+
|
166
|
+
BatchGetSecretValueResponse.add_member(:secret_values, Shapes::ShapeRef.new(shape: SecretValuesType, location_name: "SecretValues"))
|
167
|
+
BatchGetSecretValueResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
|
168
|
+
BatchGetSecretValueResponse.add_member(:errors, Shapes::ShapeRef.new(shape: APIErrorListType, location_name: "Errors"))
|
169
|
+
BatchGetSecretValueResponse.struct_class = Types::BatchGetSecretValueResponse
|
107
170
|
|
108
171
|
CancelRotateSecretRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
|
109
172
|
CancelRotateSecretRequest.struct_class = Types::CancelRotateSecretRequest
|
@@ -120,11 +183,14 @@ module Aws::SecretsManager
|
|
120
183
|
CreateSecretRequest.add_member(:secret_binary, Shapes::ShapeRef.new(shape: SecretBinaryType, location_name: "SecretBinary"))
|
121
184
|
CreateSecretRequest.add_member(:secret_string, Shapes::ShapeRef.new(shape: SecretStringType, location_name: "SecretString"))
|
122
185
|
CreateSecretRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagListType, location_name: "Tags"))
|
186
|
+
CreateSecretRequest.add_member(:add_replica_regions, Shapes::ShapeRef.new(shape: AddReplicaRegionListType, location_name: "AddReplicaRegions"))
|
187
|
+
CreateSecretRequest.add_member(:force_overwrite_replica_secret, Shapes::ShapeRef.new(shape: BooleanType, location_name: "ForceOverwriteReplicaSecret"))
|
123
188
|
CreateSecretRequest.struct_class = Types::CreateSecretRequest
|
124
189
|
|
125
190
|
CreateSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
126
191
|
CreateSecretResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
|
127
192
|
CreateSecretResponse.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
|
193
|
+
CreateSecretResponse.add_member(:replication_status, Shapes::ShapeRef.new(shape: ReplicationStatusListType, location_name: "ReplicationStatus"))
|
128
194
|
CreateSecretResponse.struct_class = Types::CreateSecretResponse
|
129
195
|
|
130
196
|
DecryptionFailure.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
@@ -161,14 +227,26 @@ module Aws::SecretsManager
|
|
161
227
|
DescribeSecretResponse.add_member(:last_changed_date, Shapes::ShapeRef.new(shape: LastChangedDateType, location_name: "LastChangedDate", metadata: {"box"=>true}))
|
162
228
|
DescribeSecretResponse.add_member(:last_accessed_date, Shapes::ShapeRef.new(shape: LastAccessedDateType, location_name: "LastAccessedDate", metadata: {"box"=>true}))
|
163
229
|
DescribeSecretResponse.add_member(:deleted_date, Shapes::ShapeRef.new(shape: DeletedDateType, location_name: "DeletedDate", metadata: {"box"=>true}))
|
230
|
+
DescribeSecretResponse.add_member(:next_rotation_date, Shapes::ShapeRef.new(shape: NextRotationDateType, location_name: "NextRotationDate"))
|
164
231
|
DescribeSecretResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagListType, location_name: "Tags"))
|
165
232
|
DescribeSecretResponse.add_member(:version_ids_to_stages, Shapes::ShapeRef.new(shape: SecretVersionsToStagesMapType, location_name: "VersionIdsToStages"))
|
166
233
|
DescribeSecretResponse.add_member(:owning_service, Shapes::ShapeRef.new(shape: OwningServiceType, location_name: "OwningService"))
|
234
|
+
DescribeSecretResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: TimestampType, location_name: "CreatedDate", metadata: {"box"=>true}))
|
235
|
+
DescribeSecretResponse.add_member(:primary_region, Shapes::ShapeRef.new(shape: RegionType, location_name: "PrimaryRegion"))
|
236
|
+
DescribeSecretResponse.add_member(:replication_status, Shapes::ShapeRef.new(shape: ReplicationStatusListType, location_name: "ReplicationStatus"))
|
167
237
|
DescribeSecretResponse.struct_class = Types::DescribeSecretResponse
|
168
238
|
|
169
239
|
EncryptionFailure.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
170
240
|
EncryptionFailure.struct_class = Types::EncryptionFailure
|
171
241
|
|
242
|
+
Filter.add_member(:key, Shapes::ShapeRef.new(shape: FilterNameStringType, location_name: "Key"))
|
243
|
+
Filter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValuesStringList, location_name: "Values"))
|
244
|
+
Filter.struct_class = Types::Filter
|
245
|
+
|
246
|
+
FilterValuesStringList.member = Shapes::ShapeRef.new(shape: FilterValueStringType)
|
247
|
+
|
248
|
+
FiltersListType.member = Shapes::ShapeRef.new(shape: Filter)
|
249
|
+
|
172
250
|
GetRandomPasswordRequest.add_member(:password_length, Shapes::ShapeRef.new(shape: PasswordLengthType, location_name: "PasswordLength", metadata: {"box"=>true}))
|
173
251
|
GetRandomPasswordRequest.add_member(:exclude_characters, Shapes::ShapeRef.new(shape: ExcludeCharactersType, location_name: "ExcludeCharacters"))
|
174
252
|
GetRandomPasswordRequest.add_member(:exclude_numbers, Shapes::ShapeRef.new(shape: ExcludeNumbersType, location_name: "ExcludeNumbers", metadata: {"box"=>true}))
|
@@ -216,6 +294,8 @@ module Aws::SecretsManager
|
|
216
294
|
InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
217
295
|
InvalidRequestException.struct_class = Types::InvalidRequestException
|
218
296
|
|
297
|
+
KmsKeyIdListType.member = Shapes::ShapeRef.new(shape: KmsKeyIdType)
|
298
|
+
|
219
299
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
220
300
|
LimitExceededException.struct_class = Types::LimitExceededException
|
221
301
|
|
@@ -231,8 +311,11 @@ module Aws::SecretsManager
|
|
231
311
|
ListSecretVersionIdsResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
|
232
312
|
ListSecretVersionIdsResponse.struct_class = Types::ListSecretVersionIdsResponse
|
233
313
|
|
314
|
+
ListSecretsRequest.add_member(:include_planned_deletion, Shapes::ShapeRef.new(shape: BooleanType, location_name: "IncludePlannedDeletion", metadata: {"box"=>true}))
|
234
315
|
ListSecretsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsType, location_name: "MaxResults", metadata: {"box"=>true}))
|
235
316
|
ListSecretsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
|
317
|
+
ListSecretsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FiltersListType, location_name: "Filters"))
|
318
|
+
ListSecretsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrderType, location_name: "SortOrder"))
|
236
319
|
ListSecretsRequest.struct_class = Types::ListSecretsRequest
|
237
320
|
|
238
321
|
ListSecretsResponse.add_member(:secret_list, Shapes::ShapeRef.new(shape: SecretListType, location_name: "SecretList"))
|
@@ -245,8 +328,12 @@ module Aws::SecretsManager
|
|
245
328
|
PreconditionNotMetException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
246
329
|
PreconditionNotMetException.struct_class = Types::PreconditionNotMetException
|
247
330
|
|
331
|
+
PublicPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
332
|
+
PublicPolicyException.struct_class = Types::PublicPolicyException
|
333
|
+
|
248
334
|
PutResourcePolicyRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
|
249
335
|
PutResourcePolicyRequest.add_member(:resource_policy, Shapes::ShapeRef.new(shape: NonEmptyResourcePolicyType, required: true, location_name: "ResourcePolicy"))
|
336
|
+
PutResourcePolicyRequest.add_member(:block_public_policy, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BlockPublicPolicy", metadata: {"box"=>true}))
|
250
337
|
PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
|
251
338
|
|
252
339
|
PutResourcePolicyResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
@@ -258,6 +345,7 @@ module Aws::SecretsManager
|
|
258
345
|
PutSecretValueRequest.add_member(:secret_binary, Shapes::ShapeRef.new(shape: SecretBinaryType, location_name: "SecretBinary"))
|
259
346
|
PutSecretValueRequest.add_member(:secret_string, Shapes::ShapeRef.new(shape: SecretStringType, location_name: "SecretString"))
|
260
347
|
PutSecretValueRequest.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
|
348
|
+
PutSecretValueRequest.add_member(:rotation_token, Shapes::ShapeRef.new(shape: RotationTokenType, location_name: "RotationToken"))
|
261
349
|
PutSecretValueRequest.struct_class = Types::PutSecretValueRequest
|
262
350
|
|
263
351
|
PutSecretValueResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
@@ -266,6 +354,38 @@ module Aws::SecretsManager
|
|
266
354
|
PutSecretValueResponse.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
|
267
355
|
PutSecretValueResponse.struct_class = Types::PutSecretValueResponse
|
268
356
|
|
357
|
+
RemoveRegionsFromReplicationRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
|
358
|
+
RemoveRegionsFromReplicationRequest.add_member(:remove_replica_regions, Shapes::ShapeRef.new(shape: RemoveReplicaRegionListType, required: true, location_name: "RemoveReplicaRegions"))
|
359
|
+
RemoveRegionsFromReplicationRequest.struct_class = Types::RemoveRegionsFromReplicationRequest
|
360
|
+
|
361
|
+
RemoveRegionsFromReplicationResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
362
|
+
RemoveRegionsFromReplicationResponse.add_member(:replication_status, Shapes::ShapeRef.new(shape: ReplicationStatusListType, location_name: "ReplicationStatus"))
|
363
|
+
RemoveRegionsFromReplicationResponse.struct_class = Types::RemoveRegionsFromReplicationResponse
|
364
|
+
|
365
|
+
RemoveReplicaRegionListType.member = Shapes::ShapeRef.new(shape: RegionType)
|
366
|
+
|
367
|
+
ReplicaRegionType.add_member(:region, Shapes::ShapeRef.new(shape: RegionType, location_name: "Region"))
|
368
|
+
ReplicaRegionType.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyIdType, location_name: "KmsKeyId"))
|
369
|
+
ReplicaRegionType.struct_class = Types::ReplicaRegionType
|
370
|
+
|
371
|
+
ReplicateSecretToRegionsRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
|
372
|
+
ReplicateSecretToRegionsRequest.add_member(:add_replica_regions, Shapes::ShapeRef.new(shape: AddReplicaRegionListType, required: true, location_name: "AddReplicaRegions"))
|
373
|
+
ReplicateSecretToRegionsRequest.add_member(:force_overwrite_replica_secret, Shapes::ShapeRef.new(shape: BooleanType, location_name: "ForceOverwriteReplicaSecret"))
|
374
|
+
ReplicateSecretToRegionsRequest.struct_class = Types::ReplicateSecretToRegionsRequest
|
375
|
+
|
376
|
+
ReplicateSecretToRegionsResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
377
|
+
ReplicateSecretToRegionsResponse.add_member(:replication_status, Shapes::ShapeRef.new(shape: ReplicationStatusListType, location_name: "ReplicationStatus"))
|
378
|
+
ReplicateSecretToRegionsResponse.struct_class = Types::ReplicateSecretToRegionsResponse
|
379
|
+
|
380
|
+
ReplicationStatusListType.member = Shapes::ShapeRef.new(shape: ReplicationStatusType)
|
381
|
+
|
382
|
+
ReplicationStatusType.add_member(:region, Shapes::ShapeRef.new(shape: RegionType, location_name: "Region"))
|
383
|
+
ReplicationStatusType.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyIdType, location_name: "KmsKeyId"))
|
384
|
+
ReplicationStatusType.add_member(:status, Shapes::ShapeRef.new(shape: StatusType, location_name: "Status"))
|
385
|
+
ReplicationStatusType.add_member(:status_message, Shapes::ShapeRef.new(shape: StatusMessageType, location_name: "StatusMessage"))
|
386
|
+
ReplicationStatusType.add_member(:last_accessed_date, Shapes::ShapeRef.new(shape: LastAccessedDateType, location_name: "LastAccessedDate"))
|
387
|
+
ReplicationStatusType.struct_class = Types::ReplicationStatusType
|
388
|
+
|
269
389
|
ResourceExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
270
390
|
ResourceExistsException.struct_class = Types::ResourceExistsException
|
271
391
|
|
@@ -283,6 +403,7 @@ module Aws::SecretsManager
|
|
283
403
|
RotateSecretRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenType, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
284
404
|
RotateSecretRequest.add_member(:rotation_lambda_arn, Shapes::ShapeRef.new(shape: RotationLambdaARNType, location_name: "RotationLambdaARN"))
|
285
405
|
RotateSecretRequest.add_member(:rotation_rules, Shapes::ShapeRef.new(shape: RotationRulesType, location_name: "RotationRules"))
|
406
|
+
RotateSecretRequest.add_member(:rotate_immediately, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RotateImmediately", metadata: {"box"=>true}))
|
286
407
|
RotateSecretRequest.struct_class = Types::RotateSecretRequest
|
287
408
|
|
288
409
|
RotateSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
@@ -291,8 +412,12 @@ module Aws::SecretsManager
|
|
291
412
|
RotateSecretResponse.struct_class = Types::RotateSecretResponse
|
292
413
|
|
293
414
|
RotationRulesType.add_member(:automatically_after_days, Shapes::ShapeRef.new(shape: AutomaticallyRotateAfterDaysType, location_name: "AutomaticallyAfterDays", metadata: {"box"=>true}))
|
415
|
+
RotationRulesType.add_member(:duration, Shapes::ShapeRef.new(shape: DurationType, location_name: "Duration"))
|
416
|
+
RotationRulesType.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpressionType, location_name: "ScheduleExpression"))
|
294
417
|
RotationRulesType.struct_class = Types::RotationRulesType
|
295
418
|
|
419
|
+
SecretIdListType.member = Shapes::ShapeRef.new(shape: SecretIdType)
|
420
|
+
|
296
421
|
SecretListEntry.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
297
422
|
SecretListEntry.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
|
298
423
|
SecretListEntry.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
|
@@ -304,19 +429,34 @@ module Aws::SecretsManager
|
|
304
429
|
SecretListEntry.add_member(:last_changed_date, Shapes::ShapeRef.new(shape: LastChangedDateType, location_name: "LastChangedDate", metadata: {"box"=>true}))
|
305
430
|
SecretListEntry.add_member(:last_accessed_date, Shapes::ShapeRef.new(shape: LastAccessedDateType, location_name: "LastAccessedDate", metadata: {"box"=>true}))
|
306
431
|
SecretListEntry.add_member(:deleted_date, Shapes::ShapeRef.new(shape: DeletedDateType, location_name: "DeletedDate"))
|
432
|
+
SecretListEntry.add_member(:next_rotation_date, Shapes::ShapeRef.new(shape: NextRotationDateType, location_name: "NextRotationDate"))
|
307
433
|
SecretListEntry.add_member(:tags, Shapes::ShapeRef.new(shape: TagListType, location_name: "Tags"))
|
308
434
|
SecretListEntry.add_member(:secret_versions_to_stages, Shapes::ShapeRef.new(shape: SecretVersionsToStagesMapType, location_name: "SecretVersionsToStages"))
|
309
435
|
SecretListEntry.add_member(:owning_service, Shapes::ShapeRef.new(shape: OwningServiceType, location_name: "OwningService"))
|
436
|
+
SecretListEntry.add_member(:created_date, Shapes::ShapeRef.new(shape: TimestampType, location_name: "CreatedDate", metadata: {"box"=>true}))
|
437
|
+
SecretListEntry.add_member(:primary_region, Shapes::ShapeRef.new(shape: RegionType, location_name: "PrimaryRegion"))
|
310
438
|
SecretListEntry.struct_class = Types::SecretListEntry
|
311
439
|
|
312
440
|
SecretListType.member = Shapes::ShapeRef.new(shape: SecretListEntry)
|
313
441
|
|
442
|
+
SecretValueEntry.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
443
|
+
SecretValueEntry.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
|
444
|
+
SecretValueEntry.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
|
445
|
+
SecretValueEntry.add_member(:secret_binary, Shapes::ShapeRef.new(shape: SecretBinaryType, location_name: "SecretBinary"))
|
446
|
+
SecretValueEntry.add_member(:secret_string, Shapes::ShapeRef.new(shape: SecretStringType, location_name: "SecretString"))
|
447
|
+
SecretValueEntry.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
|
448
|
+
SecretValueEntry.add_member(:created_date, Shapes::ShapeRef.new(shape: CreatedDateType, location_name: "CreatedDate", metadata: {"box"=>true}))
|
449
|
+
SecretValueEntry.struct_class = Types::SecretValueEntry
|
450
|
+
|
451
|
+
SecretValuesType.member = Shapes::ShapeRef.new(shape: SecretValueEntry)
|
452
|
+
|
314
453
|
SecretVersionStagesType.member = Shapes::ShapeRef.new(shape: SecretVersionStageType)
|
315
454
|
|
316
455
|
SecretVersionsListEntry.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
|
317
456
|
SecretVersionsListEntry.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
|
318
457
|
SecretVersionsListEntry.add_member(:last_accessed_date, Shapes::ShapeRef.new(shape: LastAccessedDateType, location_name: "LastAccessedDate", metadata: {"box"=>true}))
|
319
458
|
SecretVersionsListEntry.add_member(:created_date, Shapes::ShapeRef.new(shape: CreatedDateType, location_name: "CreatedDate", metadata: {"box"=>true}))
|
459
|
+
SecretVersionsListEntry.add_member(:kms_key_ids, Shapes::ShapeRef.new(shape: KmsKeyIdListType, location_name: "KmsKeyIds"))
|
320
460
|
SecretVersionsListEntry.struct_class = Types::SecretVersionsListEntry
|
321
461
|
|
322
462
|
SecretVersionsListType.member = Shapes::ShapeRef.new(shape: SecretVersionsListEntry)
|
@@ -324,6 +464,12 @@ module Aws::SecretsManager
|
|
324
464
|
SecretVersionsToStagesMapType.key = Shapes::ShapeRef.new(shape: SecretVersionIdType)
|
325
465
|
SecretVersionsToStagesMapType.value = Shapes::ShapeRef.new(shape: SecretVersionStagesType)
|
326
466
|
|
467
|
+
StopReplicationToReplicaRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
|
468
|
+
StopReplicationToReplicaRequest.struct_class = Types::StopReplicationToReplicaRequest
|
469
|
+
|
470
|
+
StopReplicationToReplicaResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
|
471
|
+
StopReplicationToReplicaResponse.struct_class = Types::StopReplicationToReplicaResponse
|
472
|
+
|
327
473
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKeyType, location_name: "Key"))
|
328
474
|
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValueType, location_name: "Value"))
|
329
475
|
Tag.struct_class = Types::Tag
|
@@ -363,6 +509,20 @@ module Aws::SecretsManager
|
|
363
509
|
UpdateSecretVersionStageResponse.add_member(:name, Shapes::ShapeRef.new(shape: SecretNameType, location_name: "Name"))
|
364
510
|
UpdateSecretVersionStageResponse.struct_class = Types::UpdateSecretVersionStageResponse
|
365
511
|
|
512
|
+
ValidateResourcePolicyRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, location_name: "SecretId"))
|
513
|
+
ValidateResourcePolicyRequest.add_member(:resource_policy, Shapes::ShapeRef.new(shape: NonEmptyResourcePolicyType, required: true, location_name: "ResourcePolicy"))
|
514
|
+
ValidateResourcePolicyRequest.struct_class = Types::ValidateResourcePolicyRequest
|
515
|
+
|
516
|
+
ValidateResourcePolicyResponse.add_member(:policy_validation_passed, Shapes::ShapeRef.new(shape: BooleanType, location_name: "PolicyValidationPassed"))
|
517
|
+
ValidateResourcePolicyResponse.add_member(:validation_errors, Shapes::ShapeRef.new(shape: ValidationErrorsType, location_name: "ValidationErrors"))
|
518
|
+
ValidateResourcePolicyResponse.struct_class = Types::ValidateResourcePolicyResponse
|
519
|
+
|
520
|
+
ValidationErrorsEntry.add_member(:check_name, Shapes::ShapeRef.new(shape: NameType, location_name: "CheckName"))
|
521
|
+
ValidationErrorsEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
522
|
+
ValidationErrorsEntry.struct_class = Types::ValidationErrorsEntry
|
523
|
+
|
524
|
+
ValidationErrorsType.member = Shapes::ShapeRef.new(shape: ValidationErrorsEntry)
|
525
|
+
|
366
526
|
|
367
527
|
# @api private
|
368
528
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -371,9 +531,11 @@ module Aws::SecretsManager
|
|
371
531
|
|
372
532
|
api.metadata = {
|
373
533
|
"apiVersion" => "2017-10-17",
|
534
|
+
"auth" => ["aws.auth#sigv4"],
|
374
535
|
"endpointPrefix" => "secretsmanager",
|
375
536
|
"jsonVersion" => "1.1",
|
376
537
|
"protocol" => "json",
|
538
|
+
"protocols" => ["json"],
|
377
539
|
"serviceFullName" => "AWS Secrets Manager",
|
378
540
|
"serviceId" => "Secrets Manager",
|
379
541
|
"signatureVersion" => "v4",
|
@@ -382,6 +544,26 @@ module Aws::SecretsManager
|
|
382
544
|
"uid" => "secretsmanager-2017-10-17",
|
383
545
|
}
|
384
546
|
|
547
|
+
api.add_operation(:batch_get_secret_value, Seahorse::Model::Operation.new.tap do |o|
|
548
|
+
o.name = "BatchGetSecretValue"
|
549
|
+
o.http_method = "POST"
|
550
|
+
o.http_request_uri = "/"
|
551
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetSecretValueRequest)
|
552
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetSecretValueResponse)
|
553
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
554
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
555
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
556
|
+
o.errors << Shapes::ShapeRef.new(shape: DecryptionFailure)
|
557
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
558
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
559
|
+
o[:pager] = Aws::Pager.new(
|
560
|
+
limit_key: "max_results",
|
561
|
+
tokens: {
|
562
|
+
"next_token" => "next_token"
|
563
|
+
}
|
564
|
+
)
|
565
|
+
end)
|
566
|
+
|
385
567
|
api.add_operation(:cancel_rotate_secret, Seahorse::Model::Operation.new.tap do |o|
|
386
568
|
o.name = "CancelRotateSecret"
|
387
569
|
o.http_method = "POST"
|
@@ -409,6 +591,7 @@ module Aws::SecretsManager
|
|
409
591
|
o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
|
410
592
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
411
593
|
o.errors << Shapes::ShapeRef.new(shape: PreconditionNotMetException)
|
594
|
+
o.errors << Shapes::ShapeRef.new(shape: DecryptionFailure)
|
412
595
|
end)
|
413
596
|
|
414
597
|
api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
@@ -420,6 +603,7 @@ module Aws::SecretsManager
|
|
420
603
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
421
604
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
422
605
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
606
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
423
607
|
end)
|
424
608
|
|
425
609
|
api.add_operation(:delete_secret, Seahorse::Model::Operation.new.tap do |o|
|
@@ -442,6 +626,7 @@ module Aws::SecretsManager
|
|
442
626
|
o.output = Shapes::ShapeRef.new(shape: DescribeSecretResponse)
|
443
627
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
444
628
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
629
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
445
630
|
end)
|
446
631
|
|
447
632
|
api.add_operation(:get_random_password, Seahorse::Model::Operation.new.tap do |o|
|
@@ -464,6 +649,7 @@ module Aws::SecretsManager
|
|
464
649
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
465
650
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
466
651
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
652
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
467
653
|
end)
|
468
654
|
|
469
655
|
api.add_operation(:get_secret_value, Seahorse::Model::Operation.new.tap do |o|
|
@@ -488,6 +674,7 @@ module Aws::SecretsManager
|
|
488
674
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
489
675
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
490
676
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
677
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
491
678
|
o[:pager] = Aws::Pager.new(
|
492
679
|
limit_key: "max_results",
|
493
680
|
tokens: {
|
@@ -503,6 +690,7 @@ module Aws::SecretsManager
|
|
503
690
|
o.input = Shapes::ShapeRef.new(shape: ListSecretsRequest)
|
504
691
|
o.output = Shapes::ShapeRef.new(shape: ListSecretsResponse)
|
505
692
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
693
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
506
694
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
507
695
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
508
696
|
o[:pager] = Aws::Pager.new(
|
@@ -524,6 +712,7 @@ module Aws::SecretsManager
|
|
524
712
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
525
713
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
526
714
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
715
|
+
o.errors << Shapes::ShapeRef.new(shape: PublicPolicyException)
|
527
716
|
end)
|
528
717
|
|
529
718
|
api.add_operation(:put_secret_value, Seahorse::Model::Operation.new.tap do |o|
|
@@ -539,6 +728,31 @@ module Aws::SecretsManager
|
|
539
728
|
o.errors << Shapes::ShapeRef.new(shape: ResourceExistsException)
|
540
729
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
541
730
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
731
|
+
o.errors << Shapes::ShapeRef.new(shape: DecryptionFailure)
|
732
|
+
end)
|
733
|
+
|
734
|
+
api.add_operation(:remove_regions_from_replication, Seahorse::Model::Operation.new.tap do |o|
|
735
|
+
o.name = "RemoveRegionsFromReplication"
|
736
|
+
o.http_method = "POST"
|
737
|
+
o.http_request_uri = "/"
|
738
|
+
o.input = Shapes::ShapeRef.new(shape: RemoveRegionsFromReplicationRequest)
|
739
|
+
o.output = Shapes::ShapeRef.new(shape: RemoveRegionsFromReplicationResponse)
|
740
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
741
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
742
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
743
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
744
|
+
end)
|
745
|
+
|
746
|
+
api.add_operation(:replicate_secret_to_regions, Seahorse::Model::Operation.new.tap do |o|
|
747
|
+
o.name = "ReplicateSecretToRegions"
|
748
|
+
o.http_method = "POST"
|
749
|
+
o.http_request_uri = "/"
|
750
|
+
o.input = Shapes::ShapeRef.new(shape: ReplicateSecretToRegionsRequest)
|
751
|
+
o.output = Shapes::ShapeRef.new(shape: ReplicateSecretToRegionsResponse)
|
752
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
753
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
754
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
755
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
542
756
|
end)
|
543
757
|
|
544
758
|
api.add_operation(:restore_secret, Seahorse::Model::Operation.new.tap do |o|
|
@@ -565,6 +779,18 @@ module Aws::SecretsManager
|
|
565
779
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
566
780
|
end)
|
567
781
|
|
782
|
+
api.add_operation(:stop_replication_to_replica, Seahorse::Model::Operation.new.tap do |o|
|
783
|
+
o.name = "StopReplicationToReplica"
|
784
|
+
o.http_method = "POST"
|
785
|
+
o.http_request_uri = "/"
|
786
|
+
o.input = Shapes::ShapeRef.new(shape: StopReplicationToReplicaRequest)
|
787
|
+
o.output = Shapes::ShapeRef.new(shape: StopReplicationToReplicaResponse)
|
788
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
789
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
790
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
791
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
792
|
+
end)
|
793
|
+
|
568
794
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
569
795
|
o.name = "TagResource"
|
570
796
|
o.http_method = "POST"
|
@@ -604,6 +830,7 @@ module Aws::SecretsManager
|
|
604
830
|
o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
|
605
831
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
606
832
|
o.errors << Shapes::ShapeRef.new(shape: PreconditionNotMetException)
|
833
|
+
o.errors << Shapes::ShapeRef.new(shape: DecryptionFailure)
|
607
834
|
end)
|
608
835
|
|
609
836
|
api.add_operation(:update_secret_version_stage, Seahorse::Model::Operation.new.tap do |o|
|
@@ -618,6 +845,19 @@ module Aws::SecretsManager
|
|
618
845
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
619
846
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
620
847
|
end)
|
848
|
+
|
849
|
+
api.add_operation(:validate_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
850
|
+
o.name = "ValidateResourcePolicy"
|
851
|
+
o.http_method = "POST"
|
852
|
+
o.http_request_uri = "/"
|
853
|
+
o.input = Shapes::ShapeRef.new(shape: ValidateResourcePolicyRequest)
|
854
|
+
o.output = Shapes::ShapeRef.new(shape: ValidateResourcePolicyResponse)
|
855
|
+
o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
|
856
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
857
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
858
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
|
859
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
860
|
+
end)
|
621
861
|
end
|
622
862
|
|
623
863
|
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SecretsManager
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
self[:use_fips] = options[:use_fips]
|
56
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
57
|
+
self[:endpoint] = options[:endpoint]
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|