aws-sdk-dlm 1.14.0 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfdcc2c3e3faf4f2b42f582e635251416003aa4b
4
- data.tar.gz: 20b0e123a1763cc365801add26084be364f65d02
3
+ metadata.gz: acf8bb6eba9f0fe529b5c108411e5960d0a4e58d
4
+ data.tar.gz: 2e611740ce97dbd1b91f465425735e1008b9fd36
5
5
  SHA512:
6
- metadata.gz: 231d491d1f48c8f1f94548eb3b06333f91bf8da8825e0b929a7f1ed03acf03b33bf2155ac09e2a213e31aa2fc100190b18b00f24395c5700ecb0fb2f63605570
7
- data.tar.gz: 76023153b0ea8a52f143a40eedbd40ea3d53d8db0d5c2846b3f491a3cae3023033f95c11d4eb62e1ff1e7056915621d6b66eb038095bde352d8650ea420cb26a
6
+ metadata.gz: aaec2d6beb8f658d67b1d77a996149354bed6230370057551193ce801e9a4d251a43d788b7d2ee5896ecc54b13a91ea66abd451204eee0ec639e50884ceba7d6
7
+ data.tar.gz: d0ff987f44380f7f5bed286cf3c5a98bf20ead05758dde871ec448b793a1204f2e9299e62ee494f3da05351307e31f340252504aee90fc24556341e43e185e02
data/lib/aws-sdk-dlm.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-dlm/customizations'
42
42
  # @service
43
43
  module Aws::DLM
44
44
 
45
- GEM_VERSION = '1.14.0'
45
+ GEM_VERSION = '1.15.0'
46
46
 
47
47
  end
@@ -280,7 +280,8 @@ module Aws::DLM
280
280
  # description: "PolicyDescription", # required
281
281
  # state: "ENABLED", # required, accepts ENABLED, DISABLED
282
282
  # policy_details: { # required
283
- # resource_types: ["VOLUME"], # accepts VOLUME
283
+ # policy_type: "EBS_SNAPSHOT_MANAGEMENT", # accepts EBS_SNAPSHOT_MANAGEMENT
284
+ # resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
284
285
  # target_tags: [
285
286
  # {
286
287
  # key: "String", # required
@@ -297,6 +298,12 @@ module Aws::DLM
297
298
  # value: "String", # required
298
299
  # },
299
300
  # ],
301
+ # variable_tags: [
302
+ # {
303
+ # key: "String", # required
304
+ # value: "String", # required
305
+ # },
306
+ # ],
300
307
  # create_rule: {
301
308
  # interval: 1, # required
302
309
  # interval_unit: "HOURS", # required, accepts HOURS
@@ -307,6 +314,9 @@ module Aws::DLM
307
314
  # },
308
315
  # },
309
316
  # ],
317
+ # parameters: {
318
+ # exclude_boot_volume: false,
319
+ # },
310
320
  # },
311
321
  # })
312
322
  #
@@ -382,7 +392,7 @@ module Aws::DLM
382
392
  # resp = client.get_lifecycle_policies({
383
393
  # policy_ids: ["PolicyId"],
384
394
  # state: "ENABLED", # accepts ENABLED, DISABLED, ERROR
385
- # resource_types: ["VOLUME"], # accepts VOLUME
395
+ # resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
386
396
  # target_tags: ["TagFilter"],
387
397
  # tags_to_add: ["TagFilter"],
388
398
  # })
@@ -426,8 +436,9 @@ module Aws::DLM
426
436
  # resp.policy.execution_role_arn #=> String
427
437
  # resp.policy.date_created #=> Time
428
438
  # resp.policy.date_modified #=> Time
439
+ # resp.policy.policy_details.policy_type #=> String, one of "EBS_SNAPSHOT_MANAGEMENT"
429
440
  # resp.policy.policy_details.resource_types #=> Array
430
- # resp.policy.policy_details.resource_types[0] #=> String, one of "VOLUME"
441
+ # resp.policy.policy_details.resource_types[0] #=> String, one of "VOLUME", "INSTANCE"
431
442
  # resp.policy.policy_details.target_tags #=> Array
432
443
  # resp.policy.policy_details.target_tags[0].key #=> String
433
444
  # resp.policy.policy_details.target_tags[0].value #=> String
@@ -437,11 +448,15 @@ module Aws::DLM
437
448
  # resp.policy.policy_details.schedules[0].tags_to_add #=> Array
438
449
  # resp.policy.policy_details.schedules[0].tags_to_add[0].key #=> String
439
450
  # resp.policy.policy_details.schedules[0].tags_to_add[0].value #=> String
451
+ # resp.policy.policy_details.schedules[0].variable_tags #=> Array
452
+ # resp.policy.policy_details.schedules[0].variable_tags[0].key #=> String
453
+ # resp.policy.policy_details.schedules[0].variable_tags[0].value #=> String
440
454
  # resp.policy.policy_details.schedules[0].create_rule.interval #=> Integer
441
455
  # resp.policy.policy_details.schedules[0].create_rule.interval_unit #=> String, one of "HOURS"
442
456
  # resp.policy.policy_details.schedules[0].create_rule.times #=> Array
443
457
  # resp.policy.policy_details.schedules[0].create_rule.times[0] #=> String
444
458
  # resp.policy.policy_details.schedules[0].retain_rule.count #=> Integer
459
+ # resp.policy.policy_details.parameters.exclude_boot_volume #=> Boolean
445
460
  #
446
461
  # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicy AWS API Documentation
447
462
  #
@@ -482,7 +497,8 @@ module Aws::DLM
482
497
  # state: "ENABLED", # accepts ENABLED, DISABLED
483
498
  # description: "PolicyDescription",
484
499
  # policy_details: {
485
- # resource_types: ["VOLUME"], # accepts VOLUME
500
+ # policy_type: "EBS_SNAPSHOT_MANAGEMENT", # accepts EBS_SNAPSHOT_MANAGEMENT
501
+ # resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
486
502
  # target_tags: [
487
503
  # {
488
504
  # key: "String", # required
@@ -499,6 +515,12 @@ module Aws::DLM
499
515
  # value: "String", # required
500
516
  # },
501
517
  # ],
518
+ # variable_tags: [
519
+ # {
520
+ # key: "String", # required
521
+ # value: "String", # required
522
+ # },
523
+ # ],
502
524
  # create_rule: {
503
525
  # interval: 1, # required
504
526
  # interval_unit: "HOURS", # required, accepts HOURS
@@ -509,6 +531,9 @@ module Aws::DLM
509
531
  # },
510
532
  # },
511
533
  # ],
534
+ # parameters: {
535
+ # exclude_boot_volume: false,
536
+ # },
512
537
  # },
513
538
  # })
514
539
  #
@@ -534,7 +559,7 @@ module Aws::DLM
534
559
  params: params,
535
560
  config: config)
536
561
  context[:gem_name] = 'aws-sdk-dlm'
537
- context[:gem_version] = '1.14.0'
562
+ context[:gem_version] = '1.15.0'
538
563
  Seahorse::Client::Request.new(handlers, context)
539
564
  end
540
565
 
@@ -20,6 +20,7 @@ module Aws::DLM
20
20
  DeleteLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyResponse')
21
21
  ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
22
22
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
23
+ ExcludeBootVolume = Shapes::BooleanShape.new(name: 'ExcludeBootVolume')
23
24
  ExecutionRoleArn = Shapes::StringShape.new(name: 'ExecutionRoleArn')
24
25
  GetLifecyclePoliciesRequest = Shapes::StructureShape.new(name: 'GetLifecyclePoliciesRequest')
25
26
  GetLifecyclePoliciesResponse = Shapes::StructureShape.new(name: 'GetLifecyclePoliciesResponse')
@@ -36,10 +37,12 @@ module Aws::DLM
36
37
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
37
38
  Parameter = Shapes::StringShape.new(name: 'Parameter')
38
39
  ParameterList = Shapes::ListShape.new(name: 'ParameterList')
40
+ Parameters = Shapes::StructureShape.new(name: 'Parameters')
39
41
  PolicyDescription = Shapes::StringShape.new(name: 'PolicyDescription')
40
42
  PolicyDetails = Shapes::StructureShape.new(name: 'PolicyDetails')
41
43
  PolicyId = Shapes::StringShape.new(name: 'PolicyId')
42
44
  PolicyIdList = Shapes::ListShape.new(name: 'PolicyIdList')
45
+ PolicyTypeValues = Shapes::StringShape.new(name: 'PolicyTypeValues')
43
46
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
44
47
  ResourceTypeValues = Shapes::StringShape.new(name: 'ResourceTypeValues')
45
48
  ResourceTypeValuesList = Shapes::ListShape.new(name: 'ResourceTypeValuesList')
@@ -60,6 +63,7 @@ module Aws::DLM
60
63
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
61
64
  UpdateLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'UpdateLifecyclePolicyRequest')
62
65
  UpdateLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'UpdateLifecyclePolicyResponse')
66
+ VariableTagsList = Shapes::ListShape.new(name: 'VariableTagsList')
63
67
 
64
68
  CreateLifecyclePolicyRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: ExecutionRoleArn, required: true, location_name: "ExecutionRoleArn"))
65
69
  CreateLifecyclePolicyRequest.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, required: true, location_name: "Description"))
@@ -129,9 +133,14 @@ module Aws::DLM
129
133
 
130
134
  ParameterList.member = Shapes::ShapeRef.new(shape: Parameter)
131
135
 
136
+ Parameters.add_member(:exclude_boot_volume, Shapes::ShapeRef.new(shape: ExcludeBootVolume, location_name: "ExcludeBootVolume"))
137
+ Parameters.struct_class = Types::Parameters
138
+
139
+ PolicyDetails.add_member(:policy_type, Shapes::ShapeRef.new(shape: PolicyTypeValues, location_name: "PolicyType"))
132
140
  PolicyDetails.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypeValuesList, location_name: "ResourceTypes"))
133
141
  PolicyDetails.add_member(:target_tags, Shapes::ShapeRef.new(shape: TargetTagList, location_name: "TargetTags"))
134
142
  PolicyDetails.add_member(:schedules, Shapes::ShapeRef.new(shape: ScheduleList, location_name: "Schedules"))
143
+ PolicyDetails.add_member(:parameters, Shapes::ShapeRef.new(shape: Parameters, location_name: "Parameters"))
135
144
  PolicyDetails.struct_class = Types::PolicyDetails
136
145
 
137
146
  PolicyIdList.member = Shapes::ShapeRef.new(shape: PolicyId)
@@ -150,6 +159,7 @@ module Aws::DLM
150
159
  Schedule.add_member(:name, Shapes::ShapeRef.new(shape: ScheduleName, location_name: "Name"))
151
160
  Schedule.add_member(:copy_tags, Shapes::ShapeRef.new(shape: CopyTags, location_name: "CopyTags"))
152
161
  Schedule.add_member(:tags_to_add, Shapes::ShapeRef.new(shape: TagsToAddList, location_name: "TagsToAdd"))
162
+ Schedule.add_member(:variable_tags, Shapes::ShapeRef.new(shape: VariableTagsList, location_name: "VariableTags"))
153
163
  Schedule.add_member(:create_rule, Shapes::ShapeRef.new(shape: CreateRule, location_name: "CreateRule"))
154
164
  Schedule.add_member(:retain_rule, Shapes::ShapeRef.new(shape: RetainRule, location_name: "RetainRule"))
155
165
  Schedule.struct_class = Types::Schedule
@@ -179,6 +189,8 @@ module Aws::DLM
179
189
 
180
190
  UpdateLifecyclePolicyResponse.struct_class = Types::UpdateLifecyclePolicyResponse
181
191
 
192
+ VariableTagsList.member = Shapes::ShapeRef.new(shape: Tag)
193
+
182
194
 
183
195
  # @api private
184
196
  API = Seahorse::Model::Api.new.tap do |api|
@@ -16,7 +16,8 @@ module Aws::DLM
16
16
  # description: "PolicyDescription", # required
17
17
  # state: "ENABLED", # required, accepts ENABLED, DISABLED
18
18
  # policy_details: { # required
19
- # resource_types: ["VOLUME"], # accepts VOLUME
19
+ # policy_type: "EBS_SNAPSHOT_MANAGEMENT", # accepts EBS_SNAPSHOT_MANAGEMENT
20
+ # resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
20
21
  # target_tags: [
21
22
  # {
22
23
  # key: "String", # required
@@ -33,6 +34,12 @@ module Aws::DLM
33
34
  # value: "String", # required
34
35
  # },
35
36
  # ],
37
+ # variable_tags: [
38
+ # {
39
+ # key: "String", # required
40
+ # value: "String", # required
41
+ # },
42
+ # ],
36
43
  # create_rule: {
37
44
  # interval: 1, # required
38
45
  # interval_unit: "HOURS", # required, accepts HOURS
@@ -43,6 +50,9 @@ module Aws::DLM
43
50
  # },
44
51
  # },
45
52
  # ],
53
+ # parameters: {
54
+ # exclude_boot_volume: false,
55
+ # },
46
56
  # },
47
57
  # }
48
58
  #
@@ -99,7 +109,8 @@ module Aws::DLM
99
109
  # }
100
110
  #
101
111
  # @!attribute [rw] interval
102
- # The interval. The supported values are 12 and 24.
112
+ # The interval between snapshots. The supported values are 2, 3, 4, 6,
113
+ # 8, 12, and 24.
103
114
  # @return [Integer]
104
115
  #
105
116
  # @!attribute [rw] interval_unit
@@ -107,7 +118,8 @@ module Aws::DLM
107
118
  # @return [String]
108
119
  #
109
120
  # @!attribute [rw] times
110
- # The time, in UTC, to start the operation.
121
+ # The time, in UTC, to start the operation. The supported format is
122
+ # hh:mm.
111
123
  #
112
124
  # The operation occurs within a one-hour window following the
113
125
  # specified time.
@@ -150,7 +162,7 @@ module Aws::DLM
150
162
  # {
151
163
  # policy_ids: ["PolicyId"],
152
164
  # state: "ENABLED", # accepts ENABLED, DISABLED, ERROR
153
- # resource_types: ["VOLUME"], # accepts VOLUME
165
+ # resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
154
166
  # target_tags: ["TagFilter"],
155
167
  # tags_to_add: ["TagFilter"],
156
168
  # }
@@ -364,13 +376,39 @@ module Aws::DLM
364
376
  include Aws::Structure
365
377
  end
366
378
 
379
+ # Optional parameters that can be added to the policy. The set of valid
380
+ # parameters depends on the combination of `policyType` and
381
+ # `resourceType` values.
382
+ #
383
+ # @note When making an API call, you may pass Parameters
384
+ # data as a hash:
385
+ #
386
+ # {
387
+ # exclude_boot_volume: false,
388
+ # }
389
+ #
390
+ # @!attribute [rw] exclude_boot_volume
391
+ # When executing an EBS Snapshot Management – Instance policy, execute
392
+ # all CreateSnapshots calls with the `excludeBootVolume` set to the
393
+ # supplied field. Defaults to false. Only valid for EBS Snapshot
394
+ # Management – Instance policies.
395
+ # @return [Boolean]
396
+ #
397
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/Parameters AWS API Documentation
398
+ #
399
+ class Parameters < Struct.new(
400
+ :exclude_boot_volume)
401
+ include Aws::Structure
402
+ end
403
+
367
404
  # Specifies the configuration of a lifecycle policy.
368
405
  #
369
406
  # @note When making an API call, you may pass PolicyDetails
370
407
  # data as a hash:
371
408
  #
372
409
  # {
373
- # resource_types: ["VOLUME"], # accepts VOLUME
410
+ # policy_type: "EBS_SNAPSHOT_MANAGEMENT", # accepts EBS_SNAPSHOT_MANAGEMENT
411
+ # resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
374
412
  # target_tags: [
375
413
  # {
376
414
  # key: "String", # required
@@ -387,6 +425,12 @@ module Aws::DLM
387
425
  # value: "String", # required
388
426
  # },
389
427
  # ],
428
+ # variable_tags: [
429
+ # {
430
+ # key: "String", # required
431
+ # value: "String", # required
432
+ # },
433
+ # ],
390
434
  # create_rule: {
391
435
  # interval: 1, # required
392
436
  # interval_unit: "HOURS", # required, accepts HOURS
@@ -397,8 +441,17 @@ module Aws::DLM
397
441
  # },
398
442
  # },
399
443
  # ],
444
+ # parameters: {
445
+ # exclude_boot_volume: false,
446
+ # },
400
447
  # }
401
448
  #
449
+ # @!attribute [rw] policy_type
450
+ # This field determines the valid target resource types and actions a
451
+ # policy can manage. This field defaults to EBS\_SNAPSHOT\_MANAGEMENT
452
+ # if not present.
453
+ # @return [String]
454
+ #
402
455
  # @!attribute [rw] resource_types
403
456
  # The resource type.
404
457
  # @return [Array<String>]
@@ -411,12 +464,18 @@ module Aws::DLM
411
464
  # The schedule of policy-defined actions.
412
465
  # @return [Array<Types::Schedule>]
413
466
  #
467
+ # @!attribute [rw] parameters
468
+ # A set of optional parameters that can be provided by the policy.
469
+ # @return [Types::Parameters]
470
+ #
414
471
  # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/PolicyDetails AWS API Documentation
415
472
  #
416
473
  class PolicyDetails < Struct.new(
474
+ :policy_type,
417
475
  :resource_types,
418
476
  :target_tags,
419
- :schedules)
477
+ :schedules,
478
+ :parameters)
420
479
  include Aws::Structure
421
480
  end
422
481
 
@@ -481,6 +540,12 @@ module Aws::DLM
481
540
  # value: "String", # required
482
541
  # },
483
542
  # ],
543
+ # variable_tags: [
544
+ # {
545
+ # key: "String", # required
546
+ # value: "String", # required
547
+ # },
548
+ # ],
484
549
  # create_rule: {
485
550
  # interval: 1, # required
486
551
  # interval_unit: "HOURS", # required, accepts HOURS
@@ -496,6 +561,8 @@ module Aws::DLM
496
561
  # @return [String]
497
562
  #
498
563
  # @!attribute [rw] copy_tags
564
+ # Copy all user-defined tags on a source volume to snapshots of the
565
+ # volume created by this policy.
499
566
  # @return [Boolean]
500
567
  #
501
568
  # @!attribute [rw] tags_to_add
@@ -503,6 +570,14 @@ module Aws::DLM
503
570
  # tags are in addition to the AWS-added lifecycle tags.
504
571
  # @return [Array<Types::Tag>]
505
572
  #
573
+ # @!attribute [rw] variable_tags
574
+ # A collection of key/value pairs with values determined dynamically
575
+ # when the policy is executed. Keys may be any valid Amazon EC2 tag
576
+ # key. Values must be in one of the two following formats:
577
+ # `$(instance-id)` or `$(timestamp)`. Variable tags are only valid for
578
+ # EBS Snapshot Management – Instance policies.
579
+ # @return [Array<Types::Tag>]
580
+ #
506
581
  # @!attribute [rw] create_rule
507
582
  # The create rule.
508
583
  # @return [Types::CreateRule]
@@ -517,6 +592,7 @@ module Aws::DLM
517
592
  :name,
518
593
  :copy_tags,
519
594
  :tags_to_add,
595
+ :variable_tags,
520
596
  :create_rule,
521
597
  :retain_rule)
522
598
  include Aws::Structure
@@ -557,7 +633,8 @@ module Aws::DLM
557
633
  # state: "ENABLED", # accepts ENABLED, DISABLED
558
634
  # description: "PolicyDescription",
559
635
  # policy_details: {
560
- # resource_types: ["VOLUME"], # accepts VOLUME
636
+ # policy_type: "EBS_SNAPSHOT_MANAGEMENT", # accepts EBS_SNAPSHOT_MANAGEMENT
637
+ # resource_types: ["VOLUME"], # accepts VOLUME, INSTANCE
561
638
  # target_tags: [
562
639
  # {
563
640
  # key: "String", # required
@@ -574,6 +651,12 @@ module Aws::DLM
574
651
  # value: "String", # required
575
652
  # },
576
653
  # ],
654
+ # variable_tags: [
655
+ # {
656
+ # key: "String", # required
657
+ # value: "String", # required
658
+ # },
659
+ # ],
577
660
  # create_rule: {
578
661
  # interval: 1, # required
579
662
  # interval_unit: "HOURS", # required, accepts HOURS
@@ -584,6 +667,9 @@ module Aws::DLM
584
667
  # },
585
668
  # },
586
669
  # ],
670
+ # parameters: {
671
+ # exclude_boot_volume: false,
672
+ # },
587
673
  # },
588
674
  # }
589
675
  #
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.14.0
4
+ version: 1.15.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: 2019-05-21 00:00:00.000000000 Z
11
+ date: 2019-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core