aws-sdk-dlm 1.42.0 → 1.43.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dlm/client.rb +28 -5
- data/lib/aws-sdk-dlm/client_api.rb +13 -0
- data/lib/aws-sdk-dlm/types.rb +167 -36
- 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: cf97cc941c6dda0b4a53b456d673380a6510ed352c650a5ed7ef3c3ab6a668c8
|
|
4
|
+
data.tar.gz: 8bdb3d5399f5b133810071b854ef2e4aea61593f3b8ea84929d9beebb9360b81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0dff5dc5056bc029386944c0b3aec17a49a1715af6c859d2bcc93c034cea837fb99b323660a8d604d711b4cc33e390481234f5a502b7572b6c4cc0090613e3f
|
|
7
|
+
data.tar.gz: fa5482d67f988926f86f673912d4e3056e8635083f6fe346cb65a2e4abee44b6ca3261c505a1ae8f85d20ee887d6126cda970d4edbb070a99987cb9711baffb6
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.43.0
|
data/lib/aws-sdk-dlm/client.rb
CHANGED
|
@@ -327,8 +327,8 @@ module Aws::DLM
|
|
|
327
327
|
|
|
328
328
|
# @!group API Operations
|
|
329
329
|
|
|
330
|
-
# Creates a policy to manage the lifecycle of the specified
|
|
331
|
-
# resources. You can create up to 100 lifecycle policies.
|
|
330
|
+
# Creates a policy to manage the lifecycle of the specified Amazon Web
|
|
331
|
+
# Services resources. You can create up to 100 lifecycle policies.
|
|
332
332
|
#
|
|
333
333
|
# @option params [required, String] :execution_role_arn
|
|
334
334
|
# The Amazon Resource Name (ARN) of the IAM role used to run the
|
|
@@ -412,6 +412,10 @@ module Aws::DLM
|
|
|
412
412
|
# interval: 1,
|
|
413
413
|
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
414
414
|
# },
|
|
415
|
+
# deprecate_rule: {
|
|
416
|
+
# interval: 1,
|
|
417
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
418
|
+
# },
|
|
415
419
|
# },
|
|
416
420
|
# ],
|
|
417
421
|
# share_rules: [
|
|
@@ -421,6 +425,11 @@ module Aws::DLM
|
|
|
421
425
|
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
422
426
|
# },
|
|
423
427
|
# ],
|
|
428
|
+
# deprecate_rule: {
|
|
429
|
+
# count: 1,
|
|
430
|
+
# interval: 1,
|
|
431
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
432
|
+
# },
|
|
424
433
|
# },
|
|
425
434
|
# ],
|
|
426
435
|
# parameters: {
|
|
@@ -519,8 +528,8 @@ module Aws::DLM
|
|
|
519
528
|
#
|
|
520
529
|
# Tags are strings in the format `key=value`.
|
|
521
530
|
#
|
|
522
|
-
# These user-defined tags are added in addition to the
|
|
523
|
-
# lifecycle tags.
|
|
531
|
+
# These user-defined tags are added in addition to the Amazon Web
|
|
532
|
+
# Services-added lifecycle tags.
|
|
524
533
|
#
|
|
525
534
|
# @return [Types::GetLifecyclePoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
526
535
|
#
|
|
@@ -618,11 +627,16 @@ module Aws::DLM
|
|
|
618
627
|
# resp.policy.policy_details.schedules[0].cross_region_copy_rules[0].copy_tags #=> Boolean
|
|
619
628
|
# resp.policy.policy_details.schedules[0].cross_region_copy_rules[0].retain_rule.interval #=> Integer
|
|
620
629
|
# resp.policy.policy_details.schedules[0].cross_region_copy_rules[0].retain_rule.interval_unit #=> String, one of "DAYS", "WEEKS", "MONTHS", "YEARS"
|
|
630
|
+
# resp.policy.policy_details.schedules[0].cross_region_copy_rules[0].deprecate_rule.interval #=> Integer
|
|
631
|
+
# resp.policy.policy_details.schedules[0].cross_region_copy_rules[0].deprecate_rule.interval_unit #=> String, one of "DAYS", "WEEKS", "MONTHS", "YEARS"
|
|
621
632
|
# resp.policy.policy_details.schedules[0].share_rules #=> Array
|
|
622
633
|
# resp.policy.policy_details.schedules[0].share_rules[0].target_accounts #=> Array
|
|
623
634
|
# resp.policy.policy_details.schedules[0].share_rules[0].target_accounts[0] #=> String
|
|
624
635
|
# resp.policy.policy_details.schedules[0].share_rules[0].unshare_interval #=> Integer
|
|
625
636
|
# resp.policy.policy_details.schedules[0].share_rules[0].unshare_interval_unit #=> String, one of "DAYS", "WEEKS", "MONTHS", "YEARS"
|
|
637
|
+
# resp.policy.policy_details.schedules[0].deprecate_rule.count #=> Integer
|
|
638
|
+
# resp.policy.policy_details.schedules[0].deprecate_rule.interval #=> Integer
|
|
639
|
+
# resp.policy.policy_details.schedules[0].deprecate_rule.interval_unit #=> String, one of "DAYS", "WEEKS", "MONTHS", "YEARS"
|
|
626
640
|
# resp.policy.policy_details.parameters.exclude_boot_volume #=> Boolean
|
|
627
641
|
# resp.policy.policy_details.parameters.no_reboot #=> Boolean
|
|
628
642
|
# resp.policy.policy_details.event_source.type #=> String, one of "MANAGED_CWE"
|
|
@@ -817,6 +831,10 @@ module Aws::DLM
|
|
|
817
831
|
# interval: 1,
|
|
818
832
|
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
819
833
|
# },
|
|
834
|
+
# deprecate_rule: {
|
|
835
|
+
# interval: 1,
|
|
836
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
837
|
+
# },
|
|
820
838
|
# },
|
|
821
839
|
# ],
|
|
822
840
|
# share_rules: [
|
|
@@ -826,6 +844,11 @@ module Aws::DLM
|
|
|
826
844
|
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
827
845
|
# },
|
|
828
846
|
# ],
|
|
847
|
+
# deprecate_rule: {
|
|
848
|
+
# count: 1,
|
|
849
|
+
# interval: 1,
|
|
850
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
851
|
+
# },
|
|
829
852
|
# },
|
|
830
853
|
# ],
|
|
831
854
|
# parameters: {
|
|
@@ -883,7 +906,7 @@ module Aws::DLM
|
|
|
883
906
|
params: params,
|
|
884
907
|
config: config)
|
|
885
908
|
context[:gem_name] = 'aws-sdk-dlm'
|
|
886
|
-
context[:gem_version] = '1.
|
|
909
|
+
context[:gem_version] = '1.43.0'
|
|
887
910
|
Seahorse::Client::Request.new(handlers, context)
|
|
888
911
|
end
|
|
889
912
|
|
|
@@ -29,11 +29,13 @@ module Aws::DLM
|
|
|
29
29
|
CronExpression = Shapes::StringShape.new(name: 'CronExpression')
|
|
30
30
|
CrossRegionCopyAction = Shapes::StructureShape.new(name: 'CrossRegionCopyAction')
|
|
31
31
|
CrossRegionCopyActionList = Shapes::ListShape.new(name: 'CrossRegionCopyActionList')
|
|
32
|
+
CrossRegionCopyDeprecateRule = Shapes::StructureShape.new(name: 'CrossRegionCopyDeprecateRule')
|
|
32
33
|
CrossRegionCopyRetainRule = Shapes::StructureShape.new(name: 'CrossRegionCopyRetainRule')
|
|
33
34
|
CrossRegionCopyRule = Shapes::StructureShape.new(name: 'CrossRegionCopyRule')
|
|
34
35
|
CrossRegionCopyRules = Shapes::ListShape.new(name: 'CrossRegionCopyRules')
|
|
35
36
|
DeleteLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyRequest')
|
|
36
37
|
DeleteLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyResponse')
|
|
38
|
+
DeprecateRule = Shapes::StructureShape.new(name: 'DeprecateRule')
|
|
37
39
|
DescriptionRegex = Shapes::StringShape.new(name: 'DescriptionRegex')
|
|
38
40
|
Encrypted = Shapes::BooleanShape.new(name: 'Encrypted')
|
|
39
41
|
EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
|
|
@@ -144,6 +146,10 @@ module Aws::DLM
|
|
|
144
146
|
|
|
145
147
|
CrossRegionCopyActionList.member = Shapes::ShapeRef.new(shape: CrossRegionCopyAction)
|
|
146
148
|
|
|
149
|
+
CrossRegionCopyDeprecateRule.add_member(:interval, Shapes::ShapeRef.new(shape: Interval, location_name: "Interval"))
|
|
150
|
+
CrossRegionCopyDeprecateRule.add_member(:interval_unit, Shapes::ShapeRef.new(shape: RetentionIntervalUnitValues, location_name: "IntervalUnit"))
|
|
151
|
+
CrossRegionCopyDeprecateRule.struct_class = Types::CrossRegionCopyDeprecateRule
|
|
152
|
+
|
|
147
153
|
CrossRegionCopyRetainRule.add_member(:interval, Shapes::ShapeRef.new(shape: Interval, location_name: "Interval"))
|
|
148
154
|
CrossRegionCopyRetainRule.add_member(:interval_unit, Shapes::ShapeRef.new(shape: RetentionIntervalUnitValues, location_name: "IntervalUnit"))
|
|
149
155
|
CrossRegionCopyRetainRule.struct_class = Types::CrossRegionCopyRetainRule
|
|
@@ -154,6 +160,7 @@ module Aws::DLM
|
|
|
154
160
|
CrossRegionCopyRule.add_member(:cmk_arn, Shapes::ShapeRef.new(shape: CmkArn, location_name: "CmkArn"))
|
|
155
161
|
CrossRegionCopyRule.add_member(:copy_tags, Shapes::ShapeRef.new(shape: CopyTagsNullable, location_name: "CopyTags"))
|
|
156
162
|
CrossRegionCopyRule.add_member(:retain_rule, Shapes::ShapeRef.new(shape: CrossRegionCopyRetainRule, location_name: "RetainRule"))
|
|
163
|
+
CrossRegionCopyRule.add_member(:deprecate_rule, Shapes::ShapeRef.new(shape: CrossRegionCopyDeprecateRule, location_name: "DeprecateRule"))
|
|
157
164
|
CrossRegionCopyRule.struct_class = Types::CrossRegionCopyRule
|
|
158
165
|
|
|
159
166
|
CrossRegionCopyRules.member = Shapes::ShapeRef.new(shape: CrossRegionCopyRule)
|
|
@@ -163,6 +170,11 @@ module Aws::DLM
|
|
|
163
170
|
|
|
164
171
|
DeleteLifecyclePolicyResponse.struct_class = Types::DeleteLifecyclePolicyResponse
|
|
165
172
|
|
|
173
|
+
DeprecateRule.add_member(:count, Shapes::ShapeRef.new(shape: Count, location_name: "Count"))
|
|
174
|
+
DeprecateRule.add_member(:interval, Shapes::ShapeRef.new(shape: Interval, location_name: "Interval"))
|
|
175
|
+
DeprecateRule.add_member(:interval_unit, Shapes::ShapeRef.new(shape: RetentionIntervalUnitValues, location_name: "IntervalUnit"))
|
|
176
|
+
DeprecateRule.struct_class = Types::DeprecateRule
|
|
177
|
+
|
|
166
178
|
EncryptionConfiguration.add_member(:encrypted, Shapes::ShapeRef.new(shape: Encrypted, required: true, location_name: "Encrypted"))
|
|
167
179
|
EncryptionConfiguration.add_member(:cmk_arn, Shapes::ShapeRef.new(shape: CmkArn, location_name: "CmkArn"))
|
|
168
180
|
EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
|
|
@@ -282,6 +294,7 @@ module Aws::DLM
|
|
|
282
294
|
Schedule.add_member(:fast_restore_rule, Shapes::ShapeRef.new(shape: FastRestoreRule, location_name: "FastRestoreRule"))
|
|
283
295
|
Schedule.add_member(:cross_region_copy_rules, Shapes::ShapeRef.new(shape: CrossRegionCopyRules, location_name: "CrossRegionCopyRules"))
|
|
284
296
|
Schedule.add_member(:share_rules, Shapes::ShapeRef.new(shape: ShareRules, location_name: "ShareRules"))
|
|
297
|
+
Schedule.add_member(:deprecate_rule, Shapes::ShapeRef.new(shape: DeprecateRule, location_name: "DeprecateRule"))
|
|
285
298
|
Schedule.struct_class = Types::Schedule
|
|
286
299
|
|
|
287
300
|
ScheduleList.member = Shapes::ShapeRef.new(shape: Schedule)
|
data/lib/aws-sdk-dlm/types.rb
CHANGED
|
@@ -111,6 +111,10 @@ module Aws::DLM
|
|
|
111
111
|
# interval: 1,
|
|
112
112
|
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
113
113
|
# },
|
|
114
|
+
# deprecate_rule: {
|
|
115
|
+
# interval: 1,
|
|
116
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
117
|
+
# },
|
|
114
118
|
# },
|
|
115
119
|
# ],
|
|
116
120
|
# share_rules: [
|
|
@@ -120,6 +124,11 @@ module Aws::DLM
|
|
|
120
124
|
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
121
125
|
# },
|
|
122
126
|
# ],
|
|
127
|
+
# deprecate_rule: {
|
|
128
|
+
# count: 1,
|
|
129
|
+
# interval: 1,
|
|
130
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
131
|
+
# },
|
|
123
132
|
# },
|
|
124
133
|
# ],
|
|
125
134
|
# parameters: {
|
|
@@ -227,8 +236,9 @@ module Aws::DLM
|
|
|
227
236
|
# resource, specify `OUTPOST_LOCAL`. If you omit this parameter,
|
|
228
237
|
# `CLOUD` is used by default.
|
|
229
238
|
#
|
|
230
|
-
# If the policy targets resources in an
|
|
231
|
-
# create snapshots in the same Region as the source
|
|
239
|
+
# If the policy targets resources in an Amazon Web Services Region,
|
|
240
|
+
# then you must create snapshots in the same Region as the source
|
|
241
|
+
# resource.
|
|
232
242
|
#
|
|
233
243
|
# If the policy targets resources on an Outpost, then you can create
|
|
234
244
|
# snapshots on the same Outpost as the source resource, or in the
|
|
@@ -314,6 +324,37 @@ module Aws::DLM
|
|
|
314
324
|
include Aws::Structure
|
|
315
325
|
end
|
|
316
326
|
|
|
327
|
+
# Specifies an AMI deprecation rule for cross-Region AMI copies created
|
|
328
|
+
# by a cross-Region copy rule.
|
|
329
|
+
#
|
|
330
|
+
# @note When making an API call, you may pass CrossRegionCopyDeprecateRule
|
|
331
|
+
# data as a hash:
|
|
332
|
+
#
|
|
333
|
+
# {
|
|
334
|
+
# interval: 1,
|
|
335
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
336
|
+
# }
|
|
337
|
+
#
|
|
338
|
+
# @!attribute [rw] interval
|
|
339
|
+
# The period after which to deprecate the cross-Region AMI copies. The
|
|
340
|
+
# period must be less than or equal to the cross-Region AMI copy
|
|
341
|
+
# retention period, and it can't be greater than 10 years. This is
|
|
342
|
+
# equivalent to 120 months, 520 weeks, or 3650 days.
|
|
343
|
+
# @return [Integer]
|
|
344
|
+
#
|
|
345
|
+
# @!attribute [rw] interval_unit
|
|
346
|
+
# The unit of time in which to measure the **Interval**.
|
|
347
|
+
# @return [String]
|
|
348
|
+
#
|
|
349
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CrossRegionCopyDeprecateRule AWS API Documentation
|
|
350
|
+
#
|
|
351
|
+
class CrossRegionCopyDeprecateRule < Struct.new(
|
|
352
|
+
:interval,
|
|
353
|
+
:interval_unit)
|
|
354
|
+
SENSITIVE = []
|
|
355
|
+
include Aws::Structure
|
|
356
|
+
end
|
|
357
|
+
|
|
317
358
|
# Specifies the retention rule for cross-Region snapshot copies.
|
|
318
359
|
#
|
|
319
360
|
# @note When making an API call, you may pass CrossRegionCopyRetainRule
|
|
@@ -357,21 +398,26 @@ module Aws::DLM
|
|
|
357
398
|
# interval: 1,
|
|
358
399
|
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
359
400
|
# },
|
|
401
|
+
# deprecate_rule: {
|
|
402
|
+
# interval: 1,
|
|
403
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
404
|
+
# },
|
|
360
405
|
# }
|
|
361
406
|
#
|
|
362
407
|
# @!attribute [rw] target_region
|
|
363
|
-
#
|
|
408
|
+
# Avoid using this parameter when creating new policies. Instead, use
|
|
409
|
+
# **Target** to specify a target Region or a target Outpost for
|
|
410
|
+
# snapshot copies.
|
|
364
411
|
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
412
|
+
# For policies created before the **Target** parameter was introduced,
|
|
413
|
+
# this parameter indicates the target Region for snapshot copies.
|
|
367
414
|
# @return [String]
|
|
368
415
|
#
|
|
369
416
|
# @!attribute [rw] target
|
|
370
|
-
# The Amazon Resource Name (ARN) of the target
|
|
371
|
-
# snapshot copies.
|
|
417
|
+
# The target Region or the Amazon Resource Name (ARN) of the target
|
|
418
|
+
# Outpost for the snapshot copies.
|
|
372
419
|
#
|
|
373
|
-
#
|
|
374
|
-
# specify a target Region and a target Outpost in the same rule.
|
|
420
|
+
# Use this parameter instead of **TargetRegion**. Do not specify both.
|
|
375
421
|
# @return [String]
|
|
376
422
|
#
|
|
377
423
|
# @!attribute [rw] encrypted
|
|
@@ -382,20 +428,26 @@ module Aws::DLM
|
|
|
382
428
|
# @return [Boolean]
|
|
383
429
|
#
|
|
384
430
|
# @!attribute [rw] cmk_arn
|
|
385
|
-
# The Amazon Resource Name (ARN) of the
|
|
386
|
-
#
|
|
387
|
-
#
|
|
431
|
+
# The Amazon Resource Name (ARN) of the KMS key to use for EBS
|
|
432
|
+
# encryption. If this parameter is not specified, the default KMS key
|
|
433
|
+
# for the account is used.
|
|
388
434
|
# @return [String]
|
|
389
435
|
#
|
|
390
436
|
# @!attribute [rw] copy_tags
|
|
391
|
-
#
|
|
392
|
-
# snapshot.
|
|
437
|
+
# Indicates whether to copy all user-defined tags from the source
|
|
438
|
+
# snapshot to the cross-Region snapshot copy.
|
|
393
439
|
# @return [Boolean]
|
|
394
440
|
#
|
|
395
441
|
# @!attribute [rw] retain_rule
|
|
396
|
-
# The retention rule
|
|
442
|
+
# The retention rule that indicates how long snapshot copies are to be
|
|
443
|
+
# retained in the destination Region.
|
|
397
444
|
# @return [Types::CrossRegionCopyRetainRule]
|
|
398
445
|
#
|
|
446
|
+
# @!attribute [rw] deprecate_rule
|
|
447
|
+
# The AMI deprecation rule for cross-Region AMI copies created by the
|
|
448
|
+
# rule.
|
|
449
|
+
# @return [Types::CrossRegionCopyDeprecateRule]
|
|
450
|
+
#
|
|
399
451
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CrossRegionCopyRule AWS API Documentation
|
|
400
452
|
#
|
|
401
453
|
class CrossRegionCopyRule < Struct.new(
|
|
@@ -404,7 +456,8 @@ module Aws::DLM
|
|
|
404
456
|
:encrypted,
|
|
405
457
|
:cmk_arn,
|
|
406
458
|
:copy_tags,
|
|
407
|
-
:retain_rule
|
|
459
|
+
:retain_rule,
|
|
460
|
+
:deprecate_rule)
|
|
408
461
|
SENSITIVE = []
|
|
409
462
|
include Aws::Structure
|
|
410
463
|
end
|
|
@@ -432,6 +485,46 @@ module Aws::DLM
|
|
|
432
485
|
#
|
|
433
486
|
class DeleteLifecyclePolicyResponse < Aws::EmptyStructure; end
|
|
434
487
|
|
|
488
|
+
# Specifies an AMI deprecation rule for a schedule.
|
|
489
|
+
#
|
|
490
|
+
# @note When making an API call, you may pass DeprecateRule
|
|
491
|
+
# data as a hash:
|
|
492
|
+
#
|
|
493
|
+
# {
|
|
494
|
+
# count: 1,
|
|
495
|
+
# interval: 1,
|
|
496
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
497
|
+
# }
|
|
498
|
+
#
|
|
499
|
+
# @!attribute [rw] count
|
|
500
|
+
# If the schedule has a count-based retention rule, this parameter
|
|
501
|
+
# specifies the number of oldest AMIs to deprecate. The count must be
|
|
502
|
+
# less than or equal to the schedule's retention count, and it can't
|
|
503
|
+
# be greater than 1000.
|
|
504
|
+
# @return [Integer]
|
|
505
|
+
#
|
|
506
|
+
# @!attribute [rw] interval
|
|
507
|
+
# If the schedule has an age-based retention rule, this parameter
|
|
508
|
+
# specifies the period after which to deprecate AMIs created by the
|
|
509
|
+
# schedule. The period must be less than or equal to the schedule's
|
|
510
|
+
# retention period, and it can't be greater than 10 years. This is
|
|
511
|
+
# equivalent to 120 months, 520 weeks, or 3650 days.
|
|
512
|
+
# @return [Integer]
|
|
513
|
+
#
|
|
514
|
+
# @!attribute [rw] interval_unit
|
|
515
|
+
# The unit of time in which to measure the **Interval**.
|
|
516
|
+
# @return [String]
|
|
517
|
+
#
|
|
518
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/DeprecateRule AWS API Documentation
|
|
519
|
+
#
|
|
520
|
+
class DeprecateRule < Struct.new(
|
|
521
|
+
:count,
|
|
522
|
+
:interval,
|
|
523
|
+
:interval_unit)
|
|
524
|
+
SENSITIVE = []
|
|
525
|
+
include Aws::Structure
|
|
526
|
+
end
|
|
527
|
+
|
|
435
528
|
# Specifies the encryption settings for shared snapshots that are copied
|
|
436
529
|
# across Regions.
|
|
437
530
|
#
|
|
@@ -451,9 +544,9 @@ module Aws::DLM
|
|
|
451
544
|
# @return [Boolean]
|
|
452
545
|
#
|
|
453
546
|
# @!attribute [rw] cmk_arn
|
|
454
|
-
# The Amazon Resource Name (ARN) of the
|
|
455
|
-
#
|
|
456
|
-
#
|
|
547
|
+
# The Amazon Resource Name (ARN) of the KMS key to use for EBS
|
|
548
|
+
# encryption. If this parameter is not specified, the default KMS key
|
|
549
|
+
# for the account is used.
|
|
457
550
|
# @return [String]
|
|
458
551
|
#
|
|
459
552
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/EncryptionConfiguration AWS API Documentation
|
|
@@ -482,9 +575,10 @@ module Aws::DLM
|
|
|
482
575
|
# @return [String]
|
|
483
576
|
#
|
|
484
577
|
# @!attribute [rw] snapshot_owner
|
|
485
|
-
# The IDs of the
|
|
486
|
-
# snapshots with your account. The policy only runs if one
|
|
487
|
-
# specified
|
|
578
|
+
# The IDs of the Amazon Web Services accounts that can trigger policy
|
|
579
|
+
# by sharing snapshots with your account. The policy only runs if one
|
|
580
|
+
# of the specified Amazon Web Services accounts shares a snapshot with
|
|
581
|
+
# your account.
|
|
488
582
|
# @return [Array<String>]
|
|
489
583
|
#
|
|
490
584
|
# @!attribute [rw] description_regex
|
|
@@ -524,8 +618,8 @@ module Aws::DLM
|
|
|
524
618
|
# }
|
|
525
619
|
#
|
|
526
620
|
# @!attribute [rw] type
|
|
527
|
-
# The source of the event. Currently only managed
|
|
528
|
-
#
|
|
621
|
+
# The source of the event. Currently only managed CloudWatch Events
|
|
622
|
+
# rules are supported.
|
|
529
623
|
# @return [String]
|
|
530
624
|
#
|
|
531
625
|
# @!attribute [rw] parameters
|
|
@@ -617,8 +711,8 @@ module Aws::DLM
|
|
|
617
711
|
#
|
|
618
712
|
# Tags are strings in the format `key=value`.
|
|
619
713
|
#
|
|
620
|
-
# These user-defined tags are added in addition to the
|
|
621
|
-
# lifecycle tags.
|
|
714
|
+
# These user-defined tags are added in addition to the Amazon Web
|
|
715
|
+
# Services-added lifecycle tags.
|
|
622
716
|
# @return [Array<String>]
|
|
623
717
|
#
|
|
624
718
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePoliciesRequest AWS API Documentation
|
|
@@ -970,6 +1064,10 @@ module Aws::DLM
|
|
|
970
1064
|
# interval: 1,
|
|
971
1065
|
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
972
1066
|
# },
|
|
1067
|
+
# deprecate_rule: {
|
|
1068
|
+
# interval: 1,
|
|
1069
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1070
|
+
# },
|
|
973
1071
|
# },
|
|
974
1072
|
# ],
|
|
975
1073
|
# share_rules: [
|
|
@@ -979,6 +1077,11 @@ module Aws::DLM
|
|
|
979
1077
|
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
980
1078
|
# },
|
|
981
1079
|
# ],
|
|
1080
|
+
# deprecate_rule: {
|
|
1081
|
+
# count: 1,
|
|
1082
|
+
# interval: 1,
|
|
1083
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1084
|
+
# },
|
|
982
1085
|
# },
|
|
983
1086
|
# ],
|
|
984
1087
|
# parameters: {
|
|
@@ -1020,7 +1123,7 @@ module Aws::DLM
|
|
|
1020
1123
|
# `IMAGE_MANAGEMENT` to create a lifecycle policy that manages the
|
|
1021
1124
|
# lifecycle of EBS-backed AMIs. Specify `EVENT_BASED_POLICY ` to
|
|
1022
1125
|
# create an event-based policy that performs specific actions when a
|
|
1023
|
-
# defined event occurs in your
|
|
1126
|
+
# defined event occurs in your Amazon Web Services account.
|
|
1024
1127
|
#
|
|
1025
1128
|
# The default is `EBS_SNAPSHOT_MANAGEMENT`.
|
|
1026
1129
|
# @return [String]
|
|
@@ -1037,8 +1140,9 @@ module Aws::DLM
|
|
|
1037
1140
|
#
|
|
1038
1141
|
# @!attribute [rw] resource_locations
|
|
1039
1142
|
# The location of the resources to backup. If the source resources are
|
|
1040
|
-
# located in an
|
|
1041
|
-
# are located on an
|
|
1143
|
+
# located in an Amazon Web Services Region, specify `CLOUD`. If the
|
|
1144
|
+
# source resources are located on an Outpost in your account, specify
|
|
1145
|
+
# `OUTPOST`.
|
|
1042
1146
|
#
|
|
1043
1147
|
# If you specify `OUTPOST`, Amazon Data Lifecycle Manager backs up all
|
|
1044
1148
|
# resources of the specified type with matching target tags across all
|
|
@@ -1211,6 +1315,10 @@ module Aws::DLM
|
|
|
1211
1315
|
# interval: 1,
|
|
1212
1316
|
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1213
1317
|
# },
|
|
1318
|
+
# deprecate_rule: {
|
|
1319
|
+
# interval: 1,
|
|
1320
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1321
|
+
# },
|
|
1214
1322
|
# },
|
|
1215
1323
|
# ],
|
|
1216
1324
|
# share_rules: [
|
|
@@ -1220,6 +1328,11 @@ module Aws::DLM
|
|
|
1220
1328
|
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1221
1329
|
# },
|
|
1222
1330
|
# ],
|
|
1331
|
+
# deprecate_rule: {
|
|
1332
|
+
# count: 1,
|
|
1333
|
+
# interval: 1,
|
|
1334
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1335
|
+
# },
|
|
1223
1336
|
# }
|
|
1224
1337
|
#
|
|
1225
1338
|
# @!attribute [rw] name
|
|
@@ -1233,7 +1346,8 @@ module Aws::DLM
|
|
|
1233
1346
|
#
|
|
1234
1347
|
# @!attribute [rw] tags_to_add
|
|
1235
1348
|
# The tags to apply to policy-created resources. These user-defined
|
|
1236
|
-
# tags are in addition to the
|
|
1349
|
+
# tags are in addition to the Amazon Web Services-added lifecycle
|
|
1350
|
+
# tags.
|
|
1237
1351
|
# @return [Array<Types::Tag>]
|
|
1238
1352
|
#
|
|
1239
1353
|
# @!attribute [rw] variable_tags
|
|
@@ -1267,9 +1381,14 @@ module Aws::DLM
|
|
|
1267
1381
|
# @return [Array<Types::CrossRegionCopyRule>]
|
|
1268
1382
|
#
|
|
1269
1383
|
# @!attribute [rw] share_rules
|
|
1270
|
-
# The rule for sharing snapshots with other
|
|
1384
|
+
# The rule for sharing snapshots with other Amazon Web Services
|
|
1385
|
+
# accounts.
|
|
1271
1386
|
# @return [Array<Types::ShareRule>]
|
|
1272
1387
|
#
|
|
1388
|
+
# @!attribute [rw] deprecate_rule
|
|
1389
|
+
# The AMI deprecation rule for the schedule.
|
|
1390
|
+
# @return [Types::DeprecateRule]
|
|
1391
|
+
#
|
|
1273
1392
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/Schedule AWS API Documentation
|
|
1274
1393
|
#
|
|
1275
1394
|
class Schedule < Struct.new(
|
|
@@ -1281,12 +1400,14 @@ module Aws::DLM
|
|
|
1281
1400
|
:retain_rule,
|
|
1282
1401
|
:fast_restore_rule,
|
|
1283
1402
|
:cross_region_copy_rules,
|
|
1284
|
-
:share_rules
|
|
1403
|
+
:share_rules,
|
|
1404
|
+
:deprecate_rule)
|
|
1285
1405
|
SENSITIVE = []
|
|
1286
1406
|
include Aws::Structure
|
|
1287
1407
|
end
|
|
1288
1408
|
|
|
1289
|
-
# Specifies a rule for sharing snapshots across
|
|
1409
|
+
# Specifies a rule for sharing snapshots across Amazon Web Services
|
|
1410
|
+
# accounts.
|
|
1290
1411
|
#
|
|
1291
1412
|
# @note When making an API call, you may pass ShareRule
|
|
1292
1413
|
# data as a hash:
|
|
@@ -1298,12 +1419,13 @@ module Aws::DLM
|
|
|
1298
1419
|
# }
|
|
1299
1420
|
#
|
|
1300
1421
|
# @!attribute [rw] target_accounts
|
|
1301
|
-
# The IDs of the
|
|
1422
|
+
# The IDs of the Amazon Web Services accounts with which to share the
|
|
1423
|
+
# snapshots.
|
|
1302
1424
|
# @return [Array<String>]
|
|
1303
1425
|
#
|
|
1304
1426
|
# @!attribute [rw] unshare_interval
|
|
1305
|
-
# The period after which snapshots that are shared with other
|
|
1306
|
-
# accounts are automatically unshared.
|
|
1427
|
+
# The period after which snapshots that are shared with other Amazon
|
|
1428
|
+
# Web Services accounts are automatically unshared.
|
|
1307
1429
|
# @return [Integer]
|
|
1308
1430
|
#
|
|
1309
1431
|
# @!attribute [rw] unshare_interval_unit
|
|
@@ -1470,6 +1592,10 @@ module Aws::DLM
|
|
|
1470
1592
|
# interval: 1,
|
|
1471
1593
|
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1472
1594
|
# },
|
|
1595
|
+
# deprecate_rule: {
|
|
1596
|
+
# interval: 1,
|
|
1597
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1598
|
+
# },
|
|
1473
1599
|
# },
|
|
1474
1600
|
# ],
|
|
1475
1601
|
# share_rules: [
|
|
@@ -1479,6 +1605,11 @@ module Aws::DLM
|
|
|
1479
1605
|
# unshare_interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1480
1606
|
# },
|
|
1481
1607
|
# ],
|
|
1608
|
+
# deprecate_rule: {
|
|
1609
|
+
# count: 1,
|
|
1610
|
+
# interval: 1,
|
|
1611
|
+
# interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
|
|
1612
|
+
# },
|
|
1482
1613
|
# },
|
|
1483
1614
|
# ],
|
|
1484
1615
|
# parameters: {
|
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.43.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: 2021-
|
|
11
|
+
date: 2021-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|