aws-sdk-dlm 1.53.0 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-dlm/client.rb +1 -1
- data/lib/aws-sdk-dlm/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-dlm/endpoint_provider.rb +38 -95
- data/lib/aws-sdk-dlm/types.rb +0 -717
- data/lib/aws-sdk-dlm.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2630b82c7a420b63be597ca85a4dab2c5a47721cb86f8fd20b371f0d53111dde
|
4
|
+
data.tar.gz: 3a122947c26b219bce164357516936799e31c783a299fd7c1eba2008cb4676f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6013c610f1c612d3b9a051abf7003ee1c617cd5c397b5a9d4eba8b65f85928e2c36f5c37106aa81ec7596ada6b7726540fcd30a0000babf324ebb1a92504ebb3
|
7
|
+
data.tar.gz: 305676e9e3908cde7193c6c88298ad7606792456690251f5093c3b56576e1b6a5076fa117484f57f2a5b4b512caaec04a8848dddf4e6189e325589f6dd04a840
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.55.0 (2023-01-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
|
8
|
+
|
9
|
+
1.54.0 (2023-01-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
15
|
+
|
4
16
|
1.53.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
@@ -280,4 +292,4 @@ Unreleased Changes
|
|
280
292
|
1.0.0 (2018-07-12)
|
281
293
|
------------------
|
282
294
|
|
283
|
-
* Feature - Initial release of `aws-sdk-dlm`.
|
295
|
+
* Feature - Initial release of `aws-sdk-dlm`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.55.0
|
data/lib/aws-sdk-dlm/client.rb
CHANGED
@@ -50,6 +50,9 @@ module Aws::DLM
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -9,103 +9,46 @@
|
|
9
9
|
|
10
10
|
module Aws::DLM
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dlm-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dlm.#{region}.amazonaws.com", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dlm-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
39
|
+
end
|
40
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
41
|
+
end
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
44
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dlm.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
45
|
+
end
|
46
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
47
|
+
end
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dlm.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
49
|
end
|
22
|
-
|
23
|
-
end
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
51
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
52
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
-
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
-
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
-
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
-
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
-
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
-
ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
|
39
|
-
aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
|
40
|
-
OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
|
41
|
-
UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
|
42
|
-
dGlvbiI6IldoZW4gdHJ1Z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CBEdWFsU3RhY2si
|
104
|
-
LCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50
|
105
|
-
Ijp7InVybCI6Imh0dHBzOi8vZGxtLntSZWdpb259LntQYXJ0aXRpb25SZXN1
|
106
|
-
bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0s
|
107
|
-
InR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
|
108
|
-
|
109
|
-
JSON
|
110
53
|
end
|
111
54
|
end
|
data/lib/aws-sdk-dlm/types.rb
CHANGED
@@ -13,26 +13,6 @@ module Aws::DLM
|
|
13
13
|
# **\[Event-based policies only\]** Specifies an action for an
|
14
14
|
# event-based policy.
|
15
15
|
#
|
16
|
-
# @note When making an API call, you may pass Action
|
17
|
-
# data as a hash:
|
18
|
-
#
|
19
|
-
# {
|
20
|
-
# name: "ActionName", # required
|
21
|
-
# cross_region_copy: [ # required
|
22
|
-
# {
|
23
|
-
# target: "Target", # required
|
24
|
-
# encryption_configuration: { # required
|
25
|
-
# encrypted: false, # required
|
26
|
-
# cmk_arn: "CmkArn",
|
27
|
-
# },
|
28
|
-
# retain_rule: {
|
29
|
-
# interval: 1,
|
30
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
31
|
-
# },
|
32
|
-
# },
|
33
|
-
# ],
|
34
|
-
# }
|
35
|
-
#
|
36
16
|
# @!attribute [rw] name
|
37
17
|
# A descriptive name for the action.
|
38
18
|
# @return [String]
|
@@ -53,17 +33,6 @@ module Aws::DLM
|
|
53
33
|
# **\[Snapshot policies only\]** Specifies information about the archive
|
54
34
|
# storage tier retention period.
|
55
35
|
#
|
56
|
-
# @note When making an API call, you may pass ArchiveRetainRule
|
57
|
-
# data as a hash:
|
58
|
-
#
|
59
|
-
# {
|
60
|
-
# retention_archive_tier: { # required
|
61
|
-
# count: 1,
|
62
|
-
# interval: 1,
|
63
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
64
|
-
# },
|
65
|
-
# }
|
66
|
-
#
|
67
36
|
# @!attribute [rw] retention_archive_tier
|
68
37
|
# Information about retention period in the Amazon EBS Snapshots
|
69
38
|
# Archive. For more information, see [Archive Amazon EBS
|
@@ -85,19 +54,6 @@ module Aws::DLM
|
|
85
54
|
# **\[Snapshot policies only\]** Specifies a snapshot archiving rule for
|
86
55
|
# a schedule.
|
87
56
|
#
|
88
|
-
# @note When making an API call, you may pass ArchiveRule
|
89
|
-
# data as a hash:
|
90
|
-
#
|
91
|
-
# {
|
92
|
-
# retain_rule: { # required
|
93
|
-
# retention_archive_tier: { # required
|
94
|
-
# count: 1,
|
95
|
-
# interval: 1,
|
96
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
97
|
-
# },
|
98
|
-
# },
|
99
|
-
# }
|
100
|
-
#
|
101
57
|
# @!attribute [rw] retain_rule
|
102
58
|
# Information about the retention period for the snapshot archiving
|
103
59
|
# rule.
|
@@ -111,139 +67,6 @@ module Aws::DLM
|
|
111
67
|
include Aws::Structure
|
112
68
|
end
|
113
69
|
|
114
|
-
# @note When making an API call, you may pass CreateLifecyclePolicyRequest
|
115
|
-
# data as a hash:
|
116
|
-
#
|
117
|
-
# {
|
118
|
-
# execution_role_arn: "ExecutionRoleArn", # required
|
119
|
-
# description: "PolicyDescription", # required
|
120
|
-
# state: "ENABLED", # required, accepts ENABLED, DISABLED
|
121
|
-
# policy_details: { # required
|
122
|
-
# policy_type: "EBS_SNAPSHOT_MANAGEMENT", # accepts EBS_SNAPSHOT_MANAGEMENT, IMAGE_MANAGEMENT, EVENT_BASED_POLICY
|
123
|
-
# resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
|
124
|
-
# resource_locations: ["CLOUD"], # accepts CLOUD, OUTPOST
|
125
|
-
# target_tags: [
|
126
|
-
# {
|
127
|
-
# key: "String", # required
|
128
|
-
# value: "String", # required
|
129
|
-
# },
|
130
|
-
# ],
|
131
|
-
# schedules: [
|
132
|
-
# {
|
133
|
-
# name: "ScheduleName",
|
134
|
-
# copy_tags: false,
|
135
|
-
# tags_to_add: [
|
136
|
-
# {
|
137
|
-
# key: "String", # required
|
138
|
-
# value: "String", # required
|
139
|
-
# },
|
140
|
-
# ],
|
141
|
-
# variable_tags: [
|
142
|
-
# {
|
143
|
-
# key: "String", # required
|
144
|
-
# value: "String", # required
|
145
|
-
# },
|
146
|
-
# ],
|
147
|
-
# create_rule: {
|
148
|
-
# location: "CLOUD", # accepts CLOUD, OUTPOST_LOCAL
|
149
|
-
# interval: 1,
|
150
|
-
# interval_unit: "HOURS", # accepts HOURS
|
151
|
-
# times: ["Time"],
|
152
|
-
# cron_expression: "CronExpression",
|
153
|
-
# },
|
154
|
-
# retain_rule: {
|
155
|
-
# count: 1,
|
156
|
-
# interval: 1,
|
157
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
158
|
-
# },
|
159
|
-
# fast_restore_rule: {
|
160
|
-
# count: 1,
|
161
|
-
# interval: 1,
|
162
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
163
|
-
# availability_zones: ["AvailabilityZone"], # required
|
164
|
-
# },
|
165
|
-
# cross_region_copy_rules: [
|
166
|
-
# {
|
167
|
-
# target_region: "TargetRegion",
|
168
|
-
# target: "Target",
|
169
|
-
# encrypted: false, # required
|
170
|
-
# cmk_arn: "CmkArn",
|
171
|
-
# copy_tags: false,
|
172
|
-
# retain_rule: {
|
173
|
-
# interval: 1,
|
174
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
175
|
-
# },
|
176
|
-
# deprecate_rule: {
|
177
|
-
# interval: 1,
|
178
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
179
|
-
# },
|
180
|
-
# },
|
181
|
-
# ],
|
182
|
-
# share_rules: [
|
183
|
-
# {
|
184
|
-
# target_accounts: ["AwsAccountId"], # required
|
185
|
-
# unshare_interval: 1,
|
186
|
-
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
187
|
-
# },
|
188
|
-
# ],
|
189
|
-
# deprecate_rule: {
|
190
|
-
# count: 1,
|
191
|
-
# interval: 1,
|
192
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
193
|
-
# },
|
194
|
-
# archive_rule: {
|
195
|
-
# retain_rule: { # required
|
196
|
-
# retention_archive_tier: { # required
|
197
|
-
# count: 1,
|
198
|
-
# interval: 1,
|
199
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
200
|
-
# },
|
201
|
-
# },
|
202
|
-
# },
|
203
|
-
# },
|
204
|
-
# ],
|
205
|
-
# parameters: {
|
206
|
-
# exclude_boot_volume: false,
|
207
|
-
# no_reboot: false,
|
208
|
-
# exclude_data_volume_tags: [
|
209
|
-
# {
|
210
|
-
# key: "String", # required
|
211
|
-
# value: "String", # required
|
212
|
-
# },
|
213
|
-
# ],
|
214
|
-
# },
|
215
|
-
# event_source: {
|
216
|
-
# type: "MANAGED_CWE", # required, accepts MANAGED_CWE
|
217
|
-
# parameters: {
|
218
|
-
# event_type: "shareSnapshot", # required, accepts shareSnapshot
|
219
|
-
# snapshot_owner: ["AwsAccountId"], # required
|
220
|
-
# description_regex: "DescriptionRegex", # required
|
221
|
-
# },
|
222
|
-
# },
|
223
|
-
# actions: [
|
224
|
-
# {
|
225
|
-
# name: "ActionName", # required
|
226
|
-
# cross_region_copy: [ # required
|
227
|
-
# {
|
228
|
-
# target: "Target", # required
|
229
|
-
# encryption_configuration: { # required
|
230
|
-
# encrypted: false, # required
|
231
|
-
# cmk_arn: "CmkArn",
|
232
|
-
# },
|
233
|
-
# retain_rule: {
|
234
|
-
# interval: 1,
|
235
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
236
|
-
# },
|
237
|
-
# },
|
238
|
-
# ],
|
239
|
-
# },
|
240
|
-
# ],
|
241
|
-
# },
|
242
|
-
# tags: {
|
243
|
-
# "TagKey" => "TagValue",
|
244
|
-
# },
|
245
|
-
# }
|
246
|
-
#
|
247
70
|
# @!attribute [rw] execution_role_arn
|
248
71
|
# The Amazon Resource Name (ARN) of the IAM role used to run the
|
249
72
|
# operations specified by the lifecycle policy.
|
@@ -301,17 +124,6 @@ module Aws::DLM
|
|
301
124
|
#
|
302
125
|
# </note>
|
303
126
|
#
|
304
|
-
# @note When making an API call, you may pass CreateRule
|
305
|
-
# data as a hash:
|
306
|
-
#
|
307
|
-
# {
|
308
|
-
# location: "CLOUD", # accepts CLOUD, OUTPOST_LOCAL
|
309
|
-
# interval: 1,
|
310
|
-
# interval_unit: "HOURS", # accepts HOURS
|
311
|
-
# times: ["Time"],
|
312
|
-
# cron_expression: "CronExpression",
|
313
|
-
# }
|
314
|
-
#
|
315
127
|
# @!attribute [rw] location
|
316
128
|
# **\[Snapshot policies only\]** Specifies the destination for
|
317
129
|
# snapshots created by the policy. To create snapshots in the same
|
@@ -374,21 +186,6 @@ module Aws::DLM
|
|
374
186
|
#
|
375
187
|
# </note>
|
376
188
|
#
|
377
|
-
# @note When making an API call, you may pass CrossRegionCopyAction
|
378
|
-
# data as a hash:
|
379
|
-
#
|
380
|
-
# {
|
381
|
-
# target: "Target", # required
|
382
|
-
# encryption_configuration: { # required
|
383
|
-
# encrypted: false, # required
|
384
|
-
# cmk_arn: "CmkArn",
|
385
|
-
# },
|
386
|
-
# retain_rule: {
|
387
|
-
# interval: 1,
|
388
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
389
|
-
# },
|
390
|
-
# }
|
391
|
-
#
|
392
189
|
# @!attribute [rw] target
|
393
190
|
# The target Region.
|
394
191
|
# @return [String]
|
@@ -417,14 +214,6 @@ module Aws::DLM
|
|
417
214
|
# **\[AMI policies only\]** Specifies an AMI deprecation rule for
|
418
215
|
# cross-Region AMI copies created by an AMI policy.
|
419
216
|
#
|
420
|
-
# @note When making an API call, you may pass CrossRegionCopyDeprecateRule
|
421
|
-
# data as a hash:
|
422
|
-
#
|
423
|
-
# {
|
424
|
-
# interval: 1,
|
425
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
426
|
-
# }
|
427
|
-
#
|
428
217
|
# @!attribute [rw] interval
|
429
218
|
# The period after which to deprecate the cross-Region AMI copies. The
|
430
219
|
# period must be less than or equal to the cross-Region AMI copy
|
@@ -452,14 +241,6 @@ module Aws::DLM
|
|
452
241
|
# by AMI policies. After the retention period expires, the cross-Region
|
453
242
|
# copy is deleted.
|
454
243
|
#
|
455
|
-
# @note When making an API call, you may pass CrossRegionCopyRetainRule
|
456
|
-
# data as a hash:
|
457
|
-
#
|
458
|
-
# {
|
459
|
-
# interval: 1,
|
460
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
461
|
-
# }
|
462
|
-
#
|
463
244
|
# @!attribute [rw] interval
|
464
245
|
# The amount of time to retain a cross-Region snapshot or AMI copy.
|
465
246
|
# The maximum is 100 years. This is equivalent to 1200 months, 5200
|
@@ -489,25 +270,6 @@ module Aws::DLM
|
|
489
270
|
#
|
490
271
|
# </note>
|
491
272
|
#
|
492
|
-
# @note When making an API call, you may pass CrossRegionCopyRule
|
493
|
-
# data as a hash:
|
494
|
-
#
|
495
|
-
# {
|
496
|
-
# target_region: "TargetRegion",
|
497
|
-
# target: "Target",
|
498
|
-
# encrypted: false, # required
|
499
|
-
# cmk_arn: "CmkArn",
|
500
|
-
# copy_tags: false,
|
501
|
-
# retain_rule: {
|
502
|
-
# interval: 1,
|
503
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
504
|
-
# },
|
505
|
-
# deprecate_rule: {
|
506
|
-
# interval: 1,
|
507
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
508
|
-
# },
|
509
|
-
# }
|
510
|
-
#
|
511
273
|
# @!attribute [rw] target_region
|
512
274
|
# <note markdown="1"> Avoid using this parameter when creating new policies. Instead, use
|
513
275
|
# **Target** to specify a target Region or a target Outpost for
|
@@ -568,13 +330,6 @@ module Aws::DLM
|
|
568
330
|
include Aws::Structure
|
569
331
|
end
|
570
332
|
|
571
|
-
# @note When making an API call, you may pass DeleteLifecyclePolicyRequest
|
572
|
-
# data as a hash:
|
573
|
-
#
|
574
|
-
# {
|
575
|
-
# policy_id: "PolicyId", # required
|
576
|
-
# }
|
577
|
-
#
|
578
333
|
# @!attribute [rw] policy_id
|
579
334
|
# The identifier of the lifecycle policy.
|
580
335
|
# @return [String]
|
@@ -598,15 +353,6 @@ module Aws::DLM
|
|
598
353
|
# **IntervalUnit**. For count-based schedules, you must specify
|
599
354
|
# **Count**.
|
600
355
|
#
|
601
|
-
# @note When making an API call, you may pass DeprecateRule
|
602
|
-
# data as a hash:
|
603
|
-
#
|
604
|
-
# {
|
605
|
-
# count: 1,
|
606
|
-
# interval: 1,
|
607
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
608
|
-
# }
|
609
|
-
#
|
610
356
|
# @!attribute [rw] count
|
611
357
|
# If the schedule has a count-based retention rule, this parameter
|
612
358
|
# specifies the number of oldest AMIs to deprecate. The count must be
|
@@ -639,14 +385,6 @@ module Aws::DLM
|
|
639
385
|
# **\[Event-based policies only\]** Specifies the encryption settings
|
640
386
|
# for cross-Region snapshot copies created by event-based policies.
|
641
387
|
#
|
642
|
-
# @note When making an API call, you may pass EncryptionConfiguration
|
643
|
-
# data as a hash:
|
644
|
-
#
|
645
|
-
# {
|
646
|
-
# encrypted: false, # required
|
647
|
-
# cmk_arn: "CmkArn",
|
648
|
-
# }
|
649
|
-
#
|
650
388
|
# @!attribute [rw] encrypted
|
651
389
|
# To encrypt a copy of an unencrypted snapshot when encryption by
|
652
390
|
# default is not enabled, enable encryption using this parameter.
|
@@ -672,15 +410,6 @@ module Aws::DLM
|
|
672
410
|
# **\[Event-based policies only\]** Specifies an event that activates an
|
673
411
|
# event-based policy.
|
674
412
|
#
|
675
|
-
# @note When making an API call, you may pass EventParameters
|
676
|
-
# data as a hash:
|
677
|
-
#
|
678
|
-
# {
|
679
|
-
# event_type: "shareSnapshot", # required, accepts shareSnapshot
|
680
|
-
# snapshot_owner: ["AwsAccountId"], # required
|
681
|
-
# description_regex: "DescriptionRegex", # required
|
682
|
-
# }
|
683
|
-
#
|
684
413
|
# @!attribute [rw] event_type
|
685
414
|
# The type of event. Currently, only snapshot sharing events are
|
686
415
|
# supported.
|
@@ -718,18 +447,6 @@ module Aws::DLM
|
|
718
447
|
# **\[Event-based policies only\]** Specifies an event that activates an
|
719
448
|
# event-based policy.
|
720
449
|
#
|
721
|
-
# @note When making an API call, you may pass EventSource
|
722
|
-
# data as a hash:
|
723
|
-
#
|
724
|
-
# {
|
725
|
-
# type: "MANAGED_CWE", # required, accepts MANAGED_CWE
|
726
|
-
# parameters: {
|
727
|
-
# event_type: "shareSnapshot", # required, accepts shareSnapshot
|
728
|
-
# snapshot_owner: ["AwsAccountId"], # required
|
729
|
-
# description_regex: "DescriptionRegex", # required
|
730
|
-
# },
|
731
|
-
# }
|
732
|
-
#
|
733
450
|
# @!attribute [rw] type
|
734
451
|
# The source of the event. Currently only managed CloudWatch Events
|
735
452
|
# rules are supported.
|
@@ -753,16 +470,6 @@ module Aws::DLM
|
|
753
470
|
# enable fast snapshot restore based on either a count or a time
|
754
471
|
# interval.
|
755
472
|
#
|
756
|
-
# @note When making an API call, you may pass FastRestoreRule
|
757
|
-
# data as a hash:
|
758
|
-
#
|
759
|
-
# {
|
760
|
-
# count: 1,
|
761
|
-
# interval: 1,
|
762
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
763
|
-
# availability_zones: ["AvailabilityZone"], # required
|
764
|
-
# }
|
765
|
-
#
|
766
473
|
# @!attribute [rw] count
|
767
474
|
# The number of snapshots to be enabled with fast snapshot restore.
|
768
475
|
# @return [Integer]
|
@@ -792,17 +499,6 @@ module Aws::DLM
|
|
792
499
|
include Aws::Structure
|
793
500
|
end
|
794
501
|
|
795
|
-
# @note When making an API call, you may pass GetLifecyclePoliciesRequest
|
796
|
-
# data as a hash:
|
797
|
-
#
|
798
|
-
# {
|
799
|
-
# policy_ids: ["PolicyId"],
|
800
|
-
# state: "ENABLED", # accepts ENABLED, DISABLED, ERROR
|
801
|
-
# resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
|
802
|
-
# target_tags: ["TagFilter"],
|
803
|
-
# tags_to_add: ["TagFilter"],
|
804
|
-
# }
|
805
|
-
#
|
806
502
|
# @!attribute [rw] policy_ids
|
807
503
|
# The identifiers of the data lifecycle policies.
|
808
504
|
# @return [Array<String>]
|
@@ -854,13 +550,6 @@ module Aws::DLM
|
|
854
550
|
include Aws::Structure
|
855
551
|
end
|
856
552
|
|
857
|
-
# @note When making an API call, you may pass GetLifecyclePolicyRequest
|
858
|
-
# data as a hash:
|
859
|
-
#
|
860
|
-
# {
|
861
|
-
# policy_id: "PolicyId", # required
|
862
|
-
# }
|
863
|
-
#
|
864
553
|
# @!attribute [rw] policy_id
|
865
554
|
# The identifier of the lifecycle policy.
|
866
555
|
# @return [String]
|
@@ -1052,13 +741,6 @@ module Aws::DLM
|
|
1052
741
|
include Aws::Structure
|
1053
742
|
end
|
1054
743
|
|
1055
|
-
# @note When making an API call, you may pass ListTagsForResourceRequest
|
1056
|
-
# data as a hash:
|
1057
|
-
#
|
1058
|
-
# {
|
1059
|
-
# resource_arn: "PolicyArn", # required
|
1060
|
-
# }
|
1061
|
-
#
|
1062
744
|
# @!attribute [rw] resource_arn
|
1063
745
|
# The Amazon Resource Name (ARN) of the resource.
|
1064
746
|
# @return [String]
|
@@ -1098,20 +780,6 @@ module Aws::DLM
|
|
1098
780
|
#
|
1099
781
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-dlm-cw-metrics.html
|
1100
782
|
#
|
1101
|
-
# @note When making an API call, you may pass Parameters
|
1102
|
-
# data as a hash:
|
1103
|
-
#
|
1104
|
-
# {
|
1105
|
-
# exclude_boot_volume: false,
|
1106
|
-
# no_reboot: false,
|
1107
|
-
# exclude_data_volume_tags: [
|
1108
|
-
# {
|
1109
|
-
# key: "String", # required
|
1110
|
-
# value: "String", # required
|
1111
|
-
# },
|
1112
|
-
# ],
|
1113
|
-
# }
|
1114
|
-
#
|
1115
783
|
# @!attribute [rw] exclude_boot_volume
|
1116
784
|
# **\[Snapshot policies that target instances only\]** Indicates
|
1117
785
|
# whether to exclude the root volume from multi-volume snapshot sets.
|
@@ -1152,131 +820,6 @@ module Aws::DLM
|
|
1152
820
|
# **\[All policy types\]** Specifies the configuration of a lifecycle
|
1153
821
|
# policy.
|
1154
822
|
#
|
1155
|
-
# @note When making an API call, you may pass PolicyDetails
|
1156
|
-
# data as a hash:
|
1157
|
-
#
|
1158
|
-
# {
|
1159
|
-
# policy_type: "EBS_SNAPSHOT_MANAGEMENT", # accepts EBS_SNAPSHOT_MANAGEMENT, IMAGE_MANAGEMENT, EVENT_BASED_POLICY
|
1160
|
-
# resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
|
1161
|
-
# resource_locations: ["CLOUD"], # accepts CLOUD, OUTPOST
|
1162
|
-
# target_tags: [
|
1163
|
-
# {
|
1164
|
-
# key: "String", # required
|
1165
|
-
# value: "String", # required
|
1166
|
-
# },
|
1167
|
-
# ],
|
1168
|
-
# schedules: [
|
1169
|
-
# {
|
1170
|
-
# name: "ScheduleName",
|
1171
|
-
# copy_tags: false,
|
1172
|
-
# tags_to_add: [
|
1173
|
-
# {
|
1174
|
-
# key: "String", # required
|
1175
|
-
# value: "String", # required
|
1176
|
-
# },
|
1177
|
-
# ],
|
1178
|
-
# variable_tags: [
|
1179
|
-
# {
|
1180
|
-
# key: "String", # required
|
1181
|
-
# value: "String", # required
|
1182
|
-
# },
|
1183
|
-
# ],
|
1184
|
-
# create_rule: {
|
1185
|
-
# location: "CLOUD", # accepts CLOUD, OUTPOST_LOCAL
|
1186
|
-
# interval: 1,
|
1187
|
-
# interval_unit: "HOURS", # accepts HOURS
|
1188
|
-
# times: ["Time"],
|
1189
|
-
# cron_expression: "CronExpression",
|
1190
|
-
# },
|
1191
|
-
# retain_rule: {
|
1192
|
-
# count: 1,
|
1193
|
-
# interval: 1,
|
1194
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1195
|
-
# },
|
1196
|
-
# fast_restore_rule: {
|
1197
|
-
# count: 1,
|
1198
|
-
# interval: 1,
|
1199
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1200
|
-
# availability_zones: ["AvailabilityZone"], # required
|
1201
|
-
# },
|
1202
|
-
# cross_region_copy_rules: [
|
1203
|
-
# {
|
1204
|
-
# target_region: "TargetRegion",
|
1205
|
-
# target: "Target",
|
1206
|
-
# encrypted: false, # required
|
1207
|
-
# cmk_arn: "CmkArn",
|
1208
|
-
# copy_tags: false,
|
1209
|
-
# retain_rule: {
|
1210
|
-
# interval: 1,
|
1211
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1212
|
-
# },
|
1213
|
-
# deprecate_rule: {
|
1214
|
-
# interval: 1,
|
1215
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1216
|
-
# },
|
1217
|
-
# },
|
1218
|
-
# ],
|
1219
|
-
# share_rules: [
|
1220
|
-
# {
|
1221
|
-
# target_accounts: ["AwsAccountId"], # required
|
1222
|
-
# unshare_interval: 1,
|
1223
|
-
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1224
|
-
# },
|
1225
|
-
# ],
|
1226
|
-
# deprecate_rule: {
|
1227
|
-
# count: 1,
|
1228
|
-
# interval: 1,
|
1229
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1230
|
-
# },
|
1231
|
-
# archive_rule: {
|
1232
|
-
# retain_rule: { # required
|
1233
|
-
# retention_archive_tier: { # required
|
1234
|
-
# count: 1,
|
1235
|
-
# interval: 1,
|
1236
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1237
|
-
# },
|
1238
|
-
# },
|
1239
|
-
# },
|
1240
|
-
# },
|
1241
|
-
# ],
|
1242
|
-
# parameters: {
|
1243
|
-
# exclude_boot_volume: false,
|
1244
|
-
# no_reboot: false,
|
1245
|
-
# exclude_data_volume_tags: [
|
1246
|
-
# {
|
1247
|
-
# key: "String", # required
|
1248
|
-
# value: "String", # required
|
1249
|
-
# },
|
1250
|
-
# ],
|
1251
|
-
# },
|
1252
|
-
# event_source: {
|
1253
|
-
# type: "MANAGED_CWE", # required, accepts MANAGED_CWE
|
1254
|
-
# parameters: {
|
1255
|
-
# event_type: "shareSnapshot", # required, accepts shareSnapshot
|
1256
|
-
# snapshot_owner: ["AwsAccountId"], # required
|
1257
|
-
# description_regex: "DescriptionRegex", # required
|
1258
|
-
# },
|
1259
|
-
# },
|
1260
|
-
# actions: [
|
1261
|
-
# {
|
1262
|
-
# name: "ActionName", # required
|
1263
|
-
# cross_region_copy: [ # required
|
1264
|
-
# {
|
1265
|
-
# target: "Target", # required
|
1266
|
-
# encryption_configuration: { # required
|
1267
|
-
# encrypted: false, # required
|
1268
|
-
# cmk_arn: "CmkArn",
|
1269
|
-
# },
|
1270
|
-
# retain_rule: {
|
1271
|
-
# interval: 1,
|
1272
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1273
|
-
# },
|
1274
|
-
# },
|
1275
|
-
# ],
|
1276
|
-
# },
|
1277
|
-
# ],
|
1278
|
-
# }
|
1279
|
-
#
|
1280
823
|
# @!attribute [rw] policy_type
|
1281
824
|
# **\[All policy types\]** The valid target resource types and actions
|
1282
825
|
# a policy can manage. Specify `EBS_SNAPSHOT_MANAGEMENT` to create a
|
@@ -1417,15 +960,6 @@ module Aws::DLM
|
|
1417
960
|
# CrossRegionCopyRule, then you must specify a retention interval of
|
1418
961
|
# `1` day or more.
|
1419
962
|
#
|
1420
|
-
# @note When making an API call, you may pass RetainRule
|
1421
|
-
# data as a hash:
|
1422
|
-
#
|
1423
|
-
# {
|
1424
|
-
# count: 1,
|
1425
|
-
# interval: 1,
|
1426
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1427
|
-
# }
|
1428
|
-
#
|
1429
963
|
# @!attribute [rw] count
|
1430
964
|
# The number of snapshots to retain for each volume, up to a maximum
|
1431
965
|
# of 1000. For example if you want to retain a maximum of three
|
@@ -1477,15 +1011,6 @@ module Aws::DLM
|
|
1477
1011
|
#
|
1478
1012
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-ami-policy.html#dlm-archive
|
1479
1013
|
#
|
1480
|
-
# @note When making an API call, you may pass RetentionArchiveTier
|
1481
|
-
# data as a hash:
|
1482
|
-
#
|
1483
|
-
# {
|
1484
|
-
# count: 1,
|
1485
|
-
# interval: 1,
|
1486
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1487
|
-
# }
|
1488
|
-
#
|
1489
1014
|
# @!attribute [rw] count
|
1490
1015
|
# The maximum number of snapshots to retain in the archive storage
|
1491
1016
|
# tier for each volume. The count must ensure that each snapshot
|
@@ -1520,82 +1045,6 @@ module Aws::DLM
|
|
1520
1045
|
# **\[Snapshot and AMI policies only\]** Specifies a schedule for a
|
1521
1046
|
# snapshot or AMI lifecycle policy.
|
1522
1047
|
#
|
1523
|
-
# @note When making an API call, you may pass Schedule
|
1524
|
-
# data as a hash:
|
1525
|
-
#
|
1526
|
-
# {
|
1527
|
-
# name: "ScheduleName",
|
1528
|
-
# copy_tags: false,
|
1529
|
-
# tags_to_add: [
|
1530
|
-
# {
|
1531
|
-
# key: "String", # required
|
1532
|
-
# value: "String", # required
|
1533
|
-
# },
|
1534
|
-
# ],
|
1535
|
-
# variable_tags: [
|
1536
|
-
# {
|
1537
|
-
# key: "String", # required
|
1538
|
-
# value: "String", # required
|
1539
|
-
# },
|
1540
|
-
# ],
|
1541
|
-
# create_rule: {
|
1542
|
-
# location: "CLOUD", # accepts CLOUD, OUTPOST_LOCAL
|
1543
|
-
# interval: 1,
|
1544
|
-
# interval_unit: "HOURS", # accepts HOURS
|
1545
|
-
# times: ["Time"],
|
1546
|
-
# cron_expression: "CronExpression",
|
1547
|
-
# },
|
1548
|
-
# retain_rule: {
|
1549
|
-
# count: 1,
|
1550
|
-
# interval: 1,
|
1551
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1552
|
-
# },
|
1553
|
-
# fast_restore_rule: {
|
1554
|
-
# count: 1,
|
1555
|
-
# interval: 1,
|
1556
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1557
|
-
# availability_zones: ["AvailabilityZone"], # required
|
1558
|
-
# },
|
1559
|
-
# cross_region_copy_rules: [
|
1560
|
-
# {
|
1561
|
-
# target_region: "TargetRegion",
|
1562
|
-
# target: "Target",
|
1563
|
-
# encrypted: false, # required
|
1564
|
-
# cmk_arn: "CmkArn",
|
1565
|
-
# copy_tags: false,
|
1566
|
-
# retain_rule: {
|
1567
|
-
# interval: 1,
|
1568
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1569
|
-
# },
|
1570
|
-
# deprecate_rule: {
|
1571
|
-
# interval: 1,
|
1572
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1573
|
-
# },
|
1574
|
-
# },
|
1575
|
-
# ],
|
1576
|
-
# share_rules: [
|
1577
|
-
# {
|
1578
|
-
# target_accounts: ["AwsAccountId"], # required
|
1579
|
-
# unshare_interval: 1,
|
1580
|
-
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1581
|
-
# },
|
1582
|
-
# ],
|
1583
|
-
# deprecate_rule: {
|
1584
|
-
# count: 1,
|
1585
|
-
# interval: 1,
|
1586
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1587
|
-
# },
|
1588
|
-
# archive_rule: {
|
1589
|
-
# retain_rule: { # required
|
1590
|
-
# retention_archive_tier: { # required
|
1591
|
-
# count: 1,
|
1592
|
-
# interval: 1,
|
1593
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1594
|
-
# },
|
1595
|
-
# },
|
1596
|
-
# },
|
1597
|
-
# }
|
1598
|
-
#
|
1599
1048
|
# @!attribute [rw] name
|
1600
1049
|
# The name of the schedule.
|
1601
1050
|
# @return [String]
|
@@ -1690,15 +1139,6 @@ module Aws::DLM
|
|
1690
1139
|
# **\[Snapshot policies only\]** Specifies a rule for sharing snapshots
|
1691
1140
|
# across Amazon Web Services accounts.
|
1692
1141
|
#
|
1693
|
-
# @note When making an API call, you may pass ShareRule
|
1694
|
-
# data as a hash:
|
1695
|
-
#
|
1696
|
-
# {
|
1697
|
-
# target_accounts: ["AwsAccountId"], # required
|
1698
|
-
# unshare_interval: 1,
|
1699
|
-
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1700
|
-
# }
|
1701
|
-
#
|
1702
1142
|
# @!attribute [rw] target_accounts
|
1703
1143
|
# The IDs of the Amazon Web Services accounts with which to share the
|
1704
1144
|
# snapshots.
|
@@ -1725,14 +1165,6 @@ module Aws::DLM
|
|
1725
1165
|
|
1726
1166
|
# Specifies a tag for a resource.
|
1727
1167
|
#
|
1728
|
-
# @note When making an API call, you may pass Tag
|
1729
|
-
# data as a hash:
|
1730
|
-
#
|
1731
|
-
# {
|
1732
|
-
# key: "String", # required
|
1733
|
-
# value: "String", # required
|
1734
|
-
# }
|
1735
|
-
#
|
1736
1168
|
# @!attribute [rw] key
|
1737
1169
|
# The tag key.
|
1738
1170
|
# @return [String]
|
@@ -1750,16 +1182,6 @@ module Aws::DLM
|
|
1750
1182
|
include Aws::Structure
|
1751
1183
|
end
|
1752
1184
|
|
1753
|
-
# @note When making an API call, you may pass TagResourceRequest
|
1754
|
-
# data as a hash:
|
1755
|
-
#
|
1756
|
-
# {
|
1757
|
-
# resource_arn: "PolicyArn", # required
|
1758
|
-
# tags: { # required
|
1759
|
-
# "TagKey" => "TagValue",
|
1760
|
-
# },
|
1761
|
-
# }
|
1762
|
-
#
|
1763
1185
|
# @!attribute [rw] resource_arn
|
1764
1186
|
# The Amazon Resource Name (ARN) of the resource.
|
1765
1187
|
# @return [String]
|
@@ -1781,14 +1203,6 @@ module Aws::DLM
|
|
1781
1203
|
#
|
1782
1204
|
class TagResourceResponse < Aws::EmptyStructure; end
|
1783
1205
|
|
1784
|
-
# @note When making an API call, you may pass UntagResourceRequest
|
1785
|
-
# data as a hash:
|
1786
|
-
#
|
1787
|
-
# {
|
1788
|
-
# resource_arn: "PolicyArn", # required
|
1789
|
-
# tag_keys: ["TagKey"], # required
|
1790
|
-
# }
|
1791
|
-
#
|
1792
1206
|
# @!attribute [rw] resource_arn
|
1793
1207
|
# The Amazon Resource Name (ARN) of the resource.
|
1794
1208
|
# @return [String]
|
@@ -1810,137 +1224,6 @@ module Aws::DLM
|
|
1810
1224
|
#
|
1811
1225
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
1812
1226
|
|
1813
|
-
# @note When making an API call, you may pass UpdateLifecyclePolicyRequest
|
1814
|
-
# data as a hash:
|
1815
|
-
#
|
1816
|
-
# {
|
1817
|
-
# policy_id: "PolicyId", # required
|
1818
|
-
# execution_role_arn: "ExecutionRoleArn",
|
1819
|
-
# state: "ENABLED", # accepts ENABLED, DISABLED
|
1820
|
-
# description: "PolicyDescription",
|
1821
|
-
# policy_details: {
|
1822
|
-
# policy_type: "EBS_SNAPSHOT_MANAGEMENT", # accepts EBS_SNAPSHOT_MANAGEMENT, IMAGE_MANAGEMENT, EVENT_BASED_POLICY
|
1823
|
-
# resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
|
1824
|
-
# resource_locations: ["CLOUD"], # accepts CLOUD, OUTPOST
|
1825
|
-
# target_tags: [
|
1826
|
-
# {
|
1827
|
-
# key: "String", # required
|
1828
|
-
# value: "String", # required
|
1829
|
-
# },
|
1830
|
-
# ],
|
1831
|
-
# schedules: [
|
1832
|
-
# {
|
1833
|
-
# name: "ScheduleName",
|
1834
|
-
# copy_tags: false,
|
1835
|
-
# tags_to_add: [
|
1836
|
-
# {
|
1837
|
-
# key: "String", # required
|
1838
|
-
# value: "String", # required
|
1839
|
-
# },
|
1840
|
-
# ],
|
1841
|
-
# variable_tags: [
|
1842
|
-
# {
|
1843
|
-
# key: "String", # required
|
1844
|
-
# value: "String", # required
|
1845
|
-
# },
|
1846
|
-
# ],
|
1847
|
-
# create_rule: {
|
1848
|
-
# location: "CLOUD", # accepts CLOUD, OUTPOST_LOCAL
|
1849
|
-
# interval: 1,
|
1850
|
-
# interval_unit: "HOURS", # accepts HOURS
|
1851
|
-
# times: ["Time"],
|
1852
|
-
# cron_expression: "CronExpression",
|
1853
|
-
# },
|
1854
|
-
# retain_rule: {
|
1855
|
-
# count: 1,
|
1856
|
-
# interval: 1,
|
1857
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1858
|
-
# },
|
1859
|
-
# fast_restore_rule: {
|
1860
|
-
# count: 1,
|
1861
|
-
# interval: 1,
|
1862
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1863
|
-
# availability_zones: ["AvailabilityZone"], # required
|
1864
|
-
# },
|
1865
|
-
# cross_region_copy_rules: [
|
1866
|
-
# {
|
1867
|
-
# target_region: "TargetRegion",
|
1868
|
-
# target: "Target",
|
1869
|
-
# encrypted: false, # required
|
1870
|
-
# cmk_arn: "CmkArn",
|
1871
|
-
# copy_tags: false,
|
1872
|
-
# retain_rule: {
|
1873
|
-
# interval: 1,
|
1874
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1875
|
-
# },
|
1876
|
-
# deprecate_rule: {
|
1877
|
-
# interval: 1,
|
1878
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1879
|
-
# },
|
1880
|
-
# },
|
1881
|
-
# ],
|
1882
|
-
# share_rules: [
|
1883
|
-
# {
|
1884
|
-
# target_accounts: ["AwsAccountId"], # required
|
1885
|
-
# unshare_interval: 1,
|
1886
|
-
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1887
|
-
# },
|
1888
|
-
# ],
|
1889
|
-
# deprecate_rule: {
|
1890
|
-
# count: 1,
|
1891
|
-
# interval: 1,
|
1892
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1893
|
-
# },
|
1894
|
-
# archive_rule: {
|
1895
|
-
# retain_rule: { # required
|
1896
|
-
# retention_archive_tier: { # required
|
1897
|
-
# count: 1,
|
1898
|
-
# interval: 1,
|
1899
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1900
|
-
# },
|
1901
|
-
# },
|
1902
|
-
# },
|
1903
|
-
# },
|
1904
|
-
# ],
|
1905
|
-
# parameters: {
|
1906
|
-
# exclude_boot_volume: false,
|
1907
|
-
# no_reboot: false,
|
1908
|
-
# exclude_data_volume_tags: [
|
1909
|
-
# {
|
1910
|
-
# key: "String", # required
|
1911
|
-
# value: "String", # required
|
1912
|
-
# },
|
1913
|
-
# ],
|
1914
|
-
# },
|
1915
|
-
# event_source: {
|
1916
|
-
# type: "MANAGED_CWE", # required, accepts MANAGED_CWE
|
1917
|
-
# parameters: {
|
1918
|
-
# event_type: "shareSnapshot", # required, accepts shareSnapshot
|
1919
|
-
# snapshot_owner: ["AwsAccountId"], # required
|
1920
|
-
# description_regex: "DescriptionRegex", # required
|
1921
|
-
# },
|
1922
|
-
# },
|
1923
|
-
# actions: [
|
1924
|
-
# {
|
1925
|
-
# name: "ActionName", # required
|
1926
|
-
# cross_region_copy: [ # required
|
1927
|
-
# {
|
1928
|
-
# target: "Target", # required
|
1929
|
-
# encryption_configuration: { # required
|
1930
|
-
# encrypted: false, # required
|
1931
|
-
# cmk_arn: "CmkArn",
|
1932
|
-
# },
|
1933
|
-
# retain_rule: {
|
1934
|
-
# interval: 1,
|
1935
|
-
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
1936
|
-
# },
|
1937
|
-
# },
|
1938
|
-
# ],
|
1939
|
-
# },
|
1940
|
-
# ],
|
1941
|
-
# },
|
1942
|
-
# }
|
1943
|
-
#
|
1944
1227
|
# @!attribute [rw] policy_id
|
1945
1228
|
# The identifier of the lifecycle policy.
|
1946
1229
|
# @return [String]
|
data/lib/aws-sdk-dlm.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-dlm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.55.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|