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,19 +1,17 @@
|
|
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
|
require 'aws-sdk-core'
|
9
12
|
require 'aws-sigv4'
|
10
13
|
|
11
|
-
|
12
|
-
require_relative 'aws-sdk-secretsmanager/client_api'
|
13
|
-
require_relative 'aws-sdk-secretsmanager/client'
|
14
|
-
require_relative 'aws-sdk-secretsmanager/errors'
|
15
|
-
require_relative 'aws-sdk-secretsmanager/resource'
|
16
|
-
require_relative 'aws-sdk-secretsmanager/customizations'
|
14
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:secretsmanager)
|
17
15
|
|
18
16
|
# This module provides support for AWS Secrets Manager. This module is available in the
|
19
17
|
# `aws-sdk-secretsmanager` gem.
|
@@ -24,24 +22,40 @@ require_relative 'aws-sdk-secretsmanager/customizations'
|
|
24
22
|
# methods each accept a hash of request parameters and return a response
|
25
23
|
# structure.
|
26
24
|
#
|
25
|
+
# secrets_manager = Aws::SecretsManager::Client.new
|
26
|
+
# resp = secrets_manager.batch_get_secret_value(params)
|
27
|
+
#
|
27
28
|
# See {Client} for more information.
|
28
29
|
#
|
29
30
|
# # Errors
|
30
31
|
#
|
31
|
-
# Errors returned from AWS Secrets Manager
|
32
|
-
# extend {Errors::ServiceError}.
|
32
|
+
# Errors returned from AWS Secrets Manager are defined in the
|
33
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
34
|
#
|
34
35
|
# begin
|
35
36
|
# # do stuff
|
36
37
|
# rescue Aws::SecretsManager::Errors::ServiceError
|
37
|
-
# # rescues all
|
38
|
+
# # rescues all AWS Secrets Manager API errors
|
38
39
|
# end
|
39
40
|
#
|
40
41
|
# See {Errors} for more information.
|
41
42
|
#
|
42
|
-
#
|
43
|
+
# @!group service
|
43
44
|
module Aws::SecretsManager
|
45
|
+
autoload :Types, 'aws-sdk-secretsmanager/types'
|
46
|
+
autoload :ClientApi, 'aws-sdk-secretsmanager/client_api'
|
47
|
+
module Plugins
|
48
|
+
autoload :Endpoints, 'aws-sdk-secretsmanager/plugins/endpoints.rb'
|
49
|
+
end
|
50
|
+
autoload :Client, 'aws-sdk-secretsmanager/client'
|
51
|
+
autoload :Errors, 'aws-sdk-secretsmanager/errors'
|
52
|
+
autoload :Resource, 'aws-sdk-secretsmanager/resource'
|
53
|
+
autoload :EndpointParameters, 'aws-sdk-secretsmanager/endpoint_parameters'
|
54
|
+
autoload :EndpointProvider, 'aws-sdk-secretsmanager/endpoint_provider'
|
55
|
+
autoload :Endpoints, 'aws-sdk-secretsmanager/endpoints'
|
44
56
|
|
45
|
-
GEM_VERSION = '1.
|
57
|
+
GEM_VERSION = '1.113.0'
|
46
58
|
|
47
59
|
end
|
60
|
+
|
61
|
+
require_relative 'aws-sdk-secretsmanager/customizations'
|
data/sig/client.rbs
ADDED
@@ -0,0 +1,445 @@
|
|
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/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module SecretsManager
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?account_id: String,
|
19
|
+
?active_endpoint_cache: bool,
|
20
|
+
?adaptive_retry_wait_to_fill: bool,
|
21
|
+
?client_side_monitoring: bool,
|
22
|
+
?client_side_monitoring_client_id: String,
|
23
|
+
?client_side_monitoring_host: String,
|
24
|
+
?client_side_monitoring_port: Integer,
|
25
|
+
?client_side_monitoring_publisher: untyped,
|
26
|
+
?convert_params: bool,
|
27
|
+
?correct_clock_skew: bool,
|
28
|
+
?defaults_mode: String,
|
29
|
+
?disable_host_prefix_injection: bool,
|
30
|
+
?disable_request_compression: bool,
|
31
|
+
?endpoint: String,
|
32
|
+
?endpoint_cache_max_entries: Integer,
|
33
|
+
?endpoint_cache_max_threads: Integer,
|
34
|
+
?endpoint_cache_poll_interval: Integer,
|
35
|
+
?endpoint_discovery: bool,
|
36
|
+
?ignore_configured_endpoint_urls: bool,
|
37
|
+
?log_formatter: untyped,
|
38
|
+
?log_level: Symbol,
|
39
|
+
?logger: untyped,
|
40
|
+
?max_attempts: Integer,
|
41
|
+
?profile: String,
|
42
|
+
?request_checksum_calculation: String,
|
43
|
+
?request_min_compression_size_bytes: Integer,
|
44
|
+
?response_checksum_validation: String,
|
45
|
+
?retry_backoff: Proc,
|
46
|
+
?retry_base_delay: Float,
|
47
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
48
|
+
?retry_limit: Integer,
|
49
|
+
?retry_max_delay: Integer,
|
50
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
51
|
+
?sdk_ua_app_id: String,
|
52
|
+
?secret_access_key: String,
|
53
|
+
?session_token: String,
|
54
|
+
?sigv4a_signing_region_set: Array[String],
|
55
|
+
?simple_json: bool,
|
56
|
+
?stub_responses: untyped,
|
57
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
58
|
+
?token_provider: untyped,
|
59
|
+
?use_dualstack_endpoint: bool,
|
60
|
+
?use_fips_endpoint: bool,
|
61
|
+
?validate_params: bool,
|
62
|
+
?endpoint_provider: untyped,
|
63
|
+
?http_proxy: String,
|
64
|
+
?http_open_timeout: (Float | Integer),
|
65
|
+
?http_read_timeout: (Float | Integer),
|
66
|
+
?http_idle_timeout: (Float | Integer),
|
67
|
+
?http_continue_timeout: (Float | Integer),
|
68
|
+
?ssl_timeout: (Float | Integer | nil),
|
69
|
+
?http_wire_trace: bool,
|
70
|
+
?ssl_verify_peer: bool,
|
71
|
+
?ssl_ca_bundle: String,
|
72
|
+
?ssl_ca_directory: String,
|
73
|
+
?ssl_ca_store: String,
|
74
|
+
?on_chunk_received: Proc,
|
75
|
+
?on_chunk_sent: Proc,
|
76
|
+
?raise_response_errors: bool
|
77
|
+
) -> instance
|
78
|
+
| (?Hash[Symbol, untyped]) -> instance
|
79
|
+
|
80
|
+
|
81
|
+
interface _BatchGetSecretValueResponseSuccess
|
82
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetSecretValueResponse]
|
83
|
+
def secret_values: () -> ::Array[Types::SecretValueEntry]
|
84
|
+
def next_token: () -> ::String
|
85
|
+
def errors: () -> ::Array[Types::APIErrorType]
|
86
|
+
end
|
87
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#batch_get_secret_value-instance_method
|
88
|
+
def batch_get_secret_value: (
|
89
|
+
?secret_id_list: Array[::String],
|
90
|
+
?filters: Array[
|
91
|
+
{
|
92
|
+
key: ("description" | "name" | "tag-key" | "tag-value" | "primary-region" | "owning-service" | "all")?,
|
93
|
+
values: Array[::String]?
|
94
|
+
},
|
95
|
+
],
|
96
|
+
?max_results: ::Integer,
|
97
|
+
?next_token: ::String
|
98
|
+
) -> _BatchGetSecretValueResponseSuccess
|
99
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetSecretValueResponseSuccess
|
100
|
+
|
101
|
+
interface _CancelRotateSecretResponseSuccess
|
102
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CancelRotateSecretResponse]
|
103
|
+
def arn: () -> ::String
|
104
|
+
def name: () -> ::String
|
105
|
+
def version_id: () -> ::String
|
106
|
+
end
|
107
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#cancel_rotate_secret-instance_method
|
108
|
+
def cancel_rotate_secret: (
|
109
|
+
secret_id: ::String
|
110
|
+
) -> _CancelRotateSecretResponseSuccess
|
111
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelRotateSecretResponseSuccess
|
112
|
+
|
113
|
+
interface _CreateSecretResponseSuccess
|
114
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateSecretResponse]
|
115
|
+
def arn: () -> ::String
|
116
|
+
def name: () -> ::String
|
117
|
+
def version_id: () -> ::String
|
118
|
+
def replication_status: () -> ::Array[Types::ReplicationStatusType]
|
119
|
+
end
|
120
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#create_secret-instance_method
|
121
|
+
def create_secret: (
|
122
|
+
name: ::String,
|
123
|
+
?client_request_token: ::String,
|
124
|
+
?description: ::String,
|
125
|
+
?kms_key_id: ::String,
|
126
|
+
?secret_binary: ::String,
|
127
|
+
?secret_string: ::String,
|
128
|
+
?tags: Array[
|
129
|
+
{
|
130
|
+
key: ::String?,
|
131
|
+
value: ::String?
|
132
|
+
},
|
133
|
+
],
|
134
|
+
?add_replica_regions: Array[
|
135
|
+
{
|
136
|
+
region: ::String?,
|
137
|
+
kms_key_id: ::String?
|
138
|
+
},
|
139
|
+
],
|
140
|
+
?force_overwrite_replica_secret: bool
|
141
|
+
) -> _CreateSecretResponseSuccess
|
142
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSecretResponseSuccess
|
143
|
+
|
144
|
+
interface _DeleteResourcePolicyResponseSuccess
|
145
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteResourcePolicyResponse]
|
146
|
+
def arn: () -> ::String
|
147
|
+
def name: () -> ::String
|
148
|
+
end
|
149
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#delete_resource_policy-instance_method
|
150
|
+
def delete_resource_policy: (
|
151
|
+
secret_id: ::String
|
152
|
+
) -> _DeleteResourcePolicyResponseSuccess
|
153
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteResourcePolicyResponseSuccess
|
154
|
+
|
155
|
+
interface _DeleteSecretResponseSuccess
|
156
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSecretResponse]
|
157
|
+
def arn: () -> ::String
|
158
|
+
def name: () -> ::String
|
159
|
+
def deletion_date: () -> ::Time
|
160
|
+
end
|
161
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#delete_secret-instance_method
|
162
|
+
def delete_secret: (
|
163
|
+
secret_id: ::String,
|
164
|
+
?recovery_window_in_days: ::Integer,
|
165
|
+
?force_delete_without_recovery: bool
|
166
|
+
) -> _DeleteSecretResponseSuccess
|
167
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSecretResponseSuccess
|
168
|
+
|
169
|
+
interface _DescribeSecretResponseSuccess
|
170
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeSecretResponse]
|
171
|
+
def arn: () -> ::String
|
172
|
+
def name: () -> ::String
|
173
|
+
def description: () -> ::String
|
174
|
+
def kms_key_id: () -> ::String
|
175
|
+
def rotation_enabled: () -> bool
|
176
|
+
def rotation_lambda_arn: () -> ::String
|
177
|
+
def rotation_rules: () -> Types::RotationRulesType
|
178
|
+
def last_rotated_date: () -> ::Time
|
179
|
+
def last_changed_date: () -> ::Time
|
180
|
+
def last_accessed_date: () -> ::Time
|
181
|
+
def deleted_date: () -> ::Time
|
182
|
+
def next_rotation_date: () -> ::Time
|
183
|
+
def tags: () -> ::Array[Types::Tag]
|
184
|
+
def version_ids_to_stages: () -> ::Hash[::String, ::Array[::String]]
|
185
|
+
def owning_service: () -> ::String
|
186
|
+
def created_date: () -> ::Time
|
187
|
+
def primary_region: () -> ::String
|
188
|
+
def replication_status: () -> ::Array[Types::ReplicationStatusType]
|
189
|
+
end
|
190
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#describe_secret-instance_method
|
191
|
+
def describe_secret: (
|
192
|
+
secret_id: ::String
|
193
|
+
) -> _DescribeSecretResponseSuccess
|
194
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSecretResponseSuccess
|
195
|
+
|
196
|
+
interface _GetRandomPasswordResponseSuccess
|
197
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetRandomPasswordResponse]
|
198
|
+
def random_password: () -> ::String
|
199
|
+
end
|
200
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#get_random_password-instance_method
|
201
|
+
def get_random_password: (
|
202
|
+
?password_length: ::Integer,
|
203
|
+
?exclude_characters: ::String,
|
204
|
+
?exclude_numbers: bool,
|
205
|
+
?exclude_punctuation: bool,
|
206
|
+
?exclude_uppercase: bool,
|
207
|
+
?exclude_lowercase: bool,
|
208
|
+
?include_space: bool,
|
209
|
+
?require_each_included_type: bool
|
210
|
+
) -> _GetRandomPasswordResponseSuccess
|
211
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRandomPasswordResponseSuccess
|
212
|
+
|
213
|
+
interface _GetResourcePolicyResponseSuccess
|
214
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
|
215
|
+
def arn: () -> ::String
|
216
|
+
def name: () -> ::String
|
217
|
+
def resource_policy: () -> ::String
|
218
|
+
end
|
219
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#get_resource_policy-instance_method
|
220
|
+
def get_resource_policy: (
|
221
|
+
secret_id: ::String
|
222
|
+
) -> _GetResourcePolicyResponseSuccess
|
223
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
|
224
|
+
|
225
|
+
interface _GetSecretValueResponseSuccess
|
226
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetSecretValueResponse]
|
227
|
+
def arn: () -> ::String
|
228
|
+
def name: () -> ::String
|
229
|
+
def version_id: () -> ::String
|
230
|
+
def secret_binary: () -> ::String
|
231
|
+
def secret_string: () -> ::String
|
232
|
+
def version_stages: () -> ::Array[::String]
|
233
|
+
def created_date: () -> ::Time
|
234
|
+
end
|
235
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#get_secret_value-instance_method
|
236
|
+
def get_secret_value: (
|
237
|
+
secret_id: ::String,
|
238
|
+
?version_id: ::String,
|
239
|
+
?version_stage: ::String
|
240
|
+
) -> _GetSecretValueResponseSuccess
|
241
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSecretValueResponseSuccess
|
242
|
+
|
243
|
+
interface _ListSecretVersionIdsResponseSuccess
|
244
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListSecretVersionIdsResponse]
|
245
|
+
def versions: () -> ::Array[Types::SecretVersionsListEntry]
|
246
|
+
def next_token: () -> ::String
|
247
|
+
def arn: () -> ::String
|
248
|
+
def name: () -> ::String
|
249
|
+
end
|
250
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#list_secret_version_ids-instance_method
|
251
|
+
def list_secret_version_ids: (
|
252
|
+
secret_id: ::String,
|
253
|
+
?max_results: ::Integer,
|
254
|
+
?next_token: ::String,
|
255
|
+
?include_deprecated: bool
|
256
|
+
) -> _ListSecretVersionIdsResponseSuccess
|
257
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSecretVersionIdsResponseSuccess
|
258
|
+
|
259
|
+
interface _ListSecretsResponseSuccess
|
260
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListSecretsResponse]
|
261
|
+
def secret_list: () -> ::Array[Types::SecretListEntry]
|
262
|
+
def next_token: () -> ::String
|
263
|
+
end
|
264
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#list_secrets-instance_method
|
265
|
+
def list_secrets: (
|
266
|
+
?include_planned_deletion: bool,
|
267
|
+
?max_results: ::Integer,
|
268
|
+
?next_token: ::String,
|
269
|
+
?filters: Array[
|
270
|
+
{
|
271
|
+
key: ("description" | "name" | "tag-key" | "tag-value" | "primary-region" | "owning-service" | "all")?,
|
272
|
+
values: Array[::String]?
|
273
|
+
},
|
274
|
+
],
|
275
|
+
?sort_order: ("asc" | "desc")
|
276
|
+
) -> _ListSecretsResponseSuccess
|
277
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSecretsResponseSuccess
|
278
|
+
|
279
|
+
interface _PutResourcePolicyResponseSuccess
|
280
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
|
281
|
+
def arn: () -> ::String
|
282
|
+
def name: () -> ::String
|
283
|
+
end
|
284
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#put_resource_policy-instance_method
|
285
|
+
def put_resource_policy: (
|
286
|
+
secret_id: ::String,
|
287
|
+
resource_policy: ::String,
|
288
|
+
?block_public_policy: bool
|
289
|
+
) -> _PutResourcePolicyResponseSuccess
|
290
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
|
291
|
+
|
292
|
+
interface _PutSecretValueResponseSuccess
|
293
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutSecretValueResponse]
|
294
|
+
def arn: () -> ::String
|
295
|
+
def name: () -> ::String
|
296
|
+
def version_id: () -> ::String
|
297
|
+
def version_stages: () -> ::Array[::String]
|
298
|
+
end
|
299
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#put_secret_value-instance_method
|
300
|
+
def put_secret_value: (
|
301
|
+
secret_id: ::String,
|
302
|
+
?client_request_token: ::String,
|
303
|
+
?secret_binary: ::String,
|
304
|
+
?secret_string: ::String,
|
305
|
+
?version_stages: Array[::String],
|
306
|
+
?rotation_token: ::String
|
307
|
+
) -> _PutSecretValueResponseSuccess
|
308
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutSecretValueResponseSuccess
|
309
|
+
|
310
|
+
interface _RemoveRegionsFromReplicationResponseSuccess
|
311
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::RemoveRegionsFromReplicationResponse]
|
312
|
+
def arn: () -> ::String
|
313
|
+
def replication_status: () -> ::Array[Types::ReplicationStatusType]
|
314
|
+
end
|
315
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#remove_regions_from_replication-instance_method
|
316
|
+
def remove_regions_from_replication: (
|
317
|
+
secret_id: ::String,
|
318
|
+
remove_replica_regions: Array[::String]
|
319
|
+
) -> _RemoveRegionsFromReplicationResponseSuccess
|
320
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RemoveRegionsFromReplicationResponseSuccess
|
321
|
+
|
322
|
+
interface _ReplicateSecretToRegionsResponseSuccess
|
323
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ReplicateSecretToRegionsResponse]
|
324
|
+
def arn: () -> ::String
|
325
|
+
def replication_status: () -> ::Array[Types::ReplicationStatusType]
|
326
|
+
end
|
327
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#replicate_secret_to_regions-instance_method
|
328
|
+
def replicate_secret_to_regions: (
|
329
|
+
secret_id: ::String,
|
330
|
+
add_replica_regions: Array[
|
331
|
+
{
|
332
|
+
region: ::String?,
|
333
|
+
kms_key_id: ::String?
|
334
|
+
},
|
335
|
+
],
|
336
|
+
?force_overwrite_replica_secret: bool
|
337
|
+
) -> _ReplicateSecretToRegionsResponseSuccess
|
338
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReplicateSecretToRegionsResponseSuccess
|
339
|
+
|
340
|
+
interface _RestoreSecretResponseSuccess
|
341
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::RestoreSecretResponse]
|
342
|
+
def arn: () -> ::String
|
343
|
+
def name: () -> ::String
|
344
|
+
end
|
345
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#restore_secret-instance_method
|
346
|
+
def restore_secret: (
|
347
|
+
secret_id: ::String
|
348
|
+
) -> _RestoreSecretResponseSuccess
|
349
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RestoreSecretResponseSuccess
|
350
|
+
|
351
|
+
interface _RotateSecretResponseSuccess
|
352
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::RotateSecretResponse]
|
353
|
+
def arn: () -> ::String
|
354
|
+
def name: () -> ::String
|
355
|
+
def version_id: () -> ::String
|
356
|
+
end
|
357
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#rotate_secret-instance_method
|
358
|
+
def rotate_secret: (
|
359
|
+
secret_id: ::String,
|
360
|
+
?client_request_token: ::String,
|
361
|
+
?rotation_lambda_arn: ::String,
|
362
|
+
?rotation_rules: {
|
363
|
+
automatically_after_days: ::Integer?,
|
364
|
+
duration: ::String?,
|
365
|
+
schedule_expression: ::String?
|
366
|
+
},
|
367
|
+
?rotate_immediately: bool
|
368
|
+
) -> _RotateSecretResponseSuccess
|
369
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RotateSecretResponseSuccess
|
370
|
+
|
371
|
+
interface _StopReplicationToReplicaResponseSuccess
|
372
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StopReplicationToReplicaResponse]
|
373
|
+
def arn: () -> ::String
|
374
|
+
end
|
375
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#stop_replication_to_replica-instance_method
|
376
|
+
def stop_replication_to_replica: (
|
377
|
+
secret_id: ::String
|
378
|
+
) -> _StopReplicationToReplicaResponseSuccess
|
379
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopReplicationToReplicaResponseSuccess
|
380
|
+
|
381
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#tag_resource-instance_method
|
382
|
+
def tag_resource: (
|
383
|
+
secret_id: ::String,
|
384
|
+
tags: Array[
|
385
|
+
{
|
386
|
+
key: ::String?,
|
387
|
+
value: ::String?
|
388
|
+
},
|
389
|
+
]
|
390
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
391
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
392
|
+
|
393
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#untag_resource-instance_method
|
394
|
+
def untag_resource: (
|
395
|
+
secret_id: ::String,
|
396
|
+
tag_keys: Array[::String]
|
397
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
398
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
399
|
+
|
400
|
+
interface _UpdateSecretResponseSuccess
|
401
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSecretResponse]
|
402
|
+
def arn: () -> ::String
|
403
|
+
def name: () -> ::String
|
404
|
+
def version_id: () -> ::String
|
405
|
+
end
|
406
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#update_secret-instance_method
|
407
|
+
def update_secret: (
|
408
|
+
secret_id: ::String,
|
409
|
+
?client_request_token: ::String,
|
410
|
+
?description: ::String,
|
411
|
+
?kms_key_id: ::String,
|
412
|
+
?secret_binary: ::String,
|
413
|
+
?secret_string: ::String
|
414
|
+
) -> _UpdateSecretResponseSuccess
|
415
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSecretResponseSuccess
|
416
|
+
|
417
|
+
interface _UpdateSecretVersionStageResponseSuccess
|
418
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSecretVersionStageResponse]
|
419
|
+
def arn: () -> ::String
|
420
|
+
def name: () -> ::String
|
421
|
+
end
|
422
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#update_secret_version_stage-instance_method
|
423
|
+
def update_secret_version_stage: (
|
424
|
+
secret_id: ::String,
|
425
|
+
version_stage: ::String,
|
426
|
+
?remove_from_version_id: ::String,
|
427
|
+
?move_to_version_id: ::String
|
428
|
+
) -> _UpdateSecretVersionStageResponseSuccess
|
429
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSecretVersionStageResponseSuccess
|
430
|
+
|
431
|
+
interface _ValidateResourcePolicyResponseSuccess
|
432
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ValidateResourcePolicyResponse]
|
433
|
+
def policy_validation_passed: () -> bool
|
434
|
+
def validation_errors: () -> ::Array[Types::ValidationErrorsEntry]
|
435
|
+
end
|
436
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Client.html#validate_resource_policy-instance_method
|
437
|
+
def validate_resource_policy: (
|
438
|
+
?secret_id: ::String,
|
439
|
+
resource_policy: ::String
|
440
|
+
) -> _ValidateResourcePolicyResponseSuccess
|
441
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ValidateResourcePolicyResponseSuccess
|
442
|
+
end
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
data/sig/errors.rbs
ADDED
@@ -0,0 +1,52 @@
|
|
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/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module SecretsManager
|
10
|
+
module Errors
|
11
|
+
class ServiceError < ::Aws::Errors::ServiceError
|
12
|
+
end
|
13
|
+
|
14
|
+
class DecryptionFailure < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
end
|
17
|
+
class EncryptionFailure < ::Aws::Errors::ServiceError
|
18
|
+
def message: () -> ::String
|
19
|
+
end
|
20
|
+
class InternalServiceError < ::Aws::Errors::ServiceError
|
21
|
+
def message: () -> ::String
|
22
|
+
end
|
23
|
+
class InvalidNextTokenException < ::Aws::Errors::ServiceError
|
24
|
+
def message: () -> ::String
|
25
|
+
end
|
26
|
+
class InvalidParameterException < ::Aws::Errors::ServiceError
|
27
|
+
def message: () -> ::String
|
28
|
+
end
|
29
|
+
class InvalidRequestException < ::Aws::Errors::ServiceError
|
30
|
+
def message: () -> ::String
|
31
|
+
end
|
32
|
+
class LimitExceededException < ::Aws::Errors::ServiceError
|
33
|
+
def message: () -> ::String
|
34
|
+
end
|
35
|
+
class MalformedPolicyDocumentException < ::Aws::Errors::ServiceError
|
36
|
+
def message: () -> ::String
|
37
|
+
end
|
38
|
+
class PreconditionNotMetException < ::Aws::Errors::ServiceError
|
39
|
+
def message: () -> ::String
|
40
|
+
end
|
41
|
+
class PublicPolicyException < ::Aws::Errors::ServiceError
|
42
|
+
def message: () -> ::String
|
43
|
+
end
|
44
|
+
class ResourceExistsException < ::Aws::Errors::ServiceError
|
45
|
+
def message: () -> ::String
|
46
|
+
end
|
47
|
+
class ResourceNotFoundException < ::Aws::Errors::ServiceError
|
48
|
+
def message: () -> ::String
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/sig/resource.rbs
ADDED
@@ -0,0 +1,85 @@
|
|
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/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module SecretsManager
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Resource.html
|
11
|
+
class Resource
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecretsManager/Resource.html#initialize-instance_method
|
13
|
+
def initialize: (
|
14
|
+
?client: Client,
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?account_id: String,
|
19
|
+
?active_endpoint_cache: bool,
|
20
|
+
?adaptive_retry_wait_to_fill: bool,
|
21
|
+
?client_side_monitoring: bool,
|
22
|
+
?client_side_monitoring_client_id: String,
|
23
|
+
?client_side_monitoring_host: String,
|
24
|
+
?client_side_monitoring_port: Integer,
|
25
|
+
?client_side_monitoring_publisher: untyped,
|
26
|
+
?convert_params: bool,
|
27
|
+
?correct_clock_skew: bool,
|
28
|
+
?defaults_mode: String,
|
29
|
+
?disable_host_prefix_injection: bool,
|
30
|
+
?disable_request_compression: bool,
|
31
|
+
?endpoint: String,
|
32
|
+
?endpoint_cache_max_entries: Integer,
|
33
|
+
?endpoint_cache_max_threads: Integer,
|
34
|
+
?endpoint_cache_poll_interval: Integer,
|
35
|
+
?endpoint_discovery: bool,
|
36
|
+
?ignore_configured_endpoint_urls: bool,
|
37
|
+
?log_formatter: untyped,
|
38
|
+
?log_level: Symbol,
|
39
|
+
?logger: untyped,
|
40
|
+
?max_attempts: Integer,
|
41
|
+
?profile: String,
|
42
|
+
?request_checksum_calculation: String,
|
43
|
+
?request_min_compression_size_bytes: Integer,
|
44
|
+
?response_checksum_validation: String,
|
45
|
+
?retry_backoff: Proc,
|
46
|
+
?retry_base_delay: Float,
|
47
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
48
|
+
?retry_limit: Integer,
|
49
|
+
?retry_max_delay: Integer,
|
50
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
51
|
+
?sdk_ua_app_id: String,
|
52
|
+
?secret_access_key: String,
|
53
|
+
?session_token: String,
|
54
|
+
?sigv4a_signing_region_set: Array[String],
|
55
|
+
?simple_json: bool,
|
56
|
+
?stub_responses: untyped,
|
57
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
58
|
+
?token_provider: untyped,
|
59
|
+
?use_dualstack_endpoint: bool,
|
60
|
+
?use_fips_endpoint: bool,
|
61
|
+
?validate_params: bool,
|
62
|
+
?endpoint_provider: untyped,
|
63
|
+
?http_proxy: String,
|
64
|
+
?http_open_timeout: (Float | Integer),
|
65
|
+
?http_read_timeout: (Float | Integer),
|
66
|
+
?http_idle_timeout: (Float | Integer),
|
67
|
+
?http_continue_timeout: (Float | Integer),
|
68
|
+
?ssl_timeout: (Float | Integer | nil),
|
69
|
+
?http_wire_trace: bool,
|
70
|
+
?ssl_verify_peer: bool,
|
71
|
+
?ssl_ca_bundle: String,
|
72
|
+
?ssl_ca_directory: String,
|
73
|
+
?ssl_ca_store: String,
|
74
|
+
?on_chunk_received: Proc,
|
75
|
+
?on_chunk_sent: Proc,
|
76
|
+
?raise_response_errors: bool
|
77
|
+
) -> void
|
78
|
+
| (?Hash[Symbol, untyped]) -> void
|
79
|
+
|
80
|
+
def client: () -> Client
|
81
|
+
|
82
|
+
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|