aws-sdk-dlm 1.19.0 → 1.20.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d2f58578f92792e801ed394add7ce621af59e0b
4
- data.tar.gz: 493ac126f3fbb6705fec4cea29fec308c0225b4b
3
+ metadata.gz: e250125e2f68fb37be7adabd23262d0ad850f0a9
4
+ data.tar.gz: 1fdcca0f8df5c945176d8e5695051542b379a81e
5
5
  SHA512:
6
- metadata.gz: c79bb5e30651786f10c3b18ed2917ea8a96b1aac4286f3b8d0a8b087c7966f1878d3b0db45d39bd55bfa1e2cf3728fe4bf75011cf9a13d551692519baaca6b0c
7
- data.tar.gz: 552123c95ac3090d7483d910989e7274e9a4105194ac5e91b0cd7db4be0c372c47920348bb41b1d5e809aba2491068eac5a44fb87a850af0c8fcf385a6639a43
6
+ metadata.gz: fa4e6176bb1c793adbed1d766f014df36406afa862774bf6d533c0fbf2dd588fa1686557dae2bae7df428384a233a9e47b5d55ff740b6050c540a5f98c71e740
7
+ data.tar.gz: 56179a650117e15ed27a18940a1a4b67f8c50b6219244ae882a7a145042c66d5230b0f2d7dd34fcac607c7205b6c358694382bfd891b74ed3bf40ef052ca5341
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-dlm/customizations'
42
42
  # @service
43
43
  module Aws::DLM
44
44
 
45
- GEM_VERSION = '1.19.0'
45
+ GEM_VERSION = '1.20.0'
46
46
 
47
47
  end
@@ -271,7 +271,8 @@ module Aws::DLM
271
271
  # @option params [required, Types::PolicyDetails] :policy_details
272
272
  # The configuration details of the lifecycle policy.
273
273
  #
274
- # Target tags cannot be re-used across lifecycle policies.
274
+ # @option params [Hash<String,String>] :tags
275
+ # The tags to apply to the lifecycle policy during creation.
275
276
  #
276
277
  # @return [Types::CreateLifecyclePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
277
278
  #
@@ -322,6 +323,9 @@ module Aws::DLM
322
323
  # exclude_boot_volume: false,
323
324
  # },
324
325
  # },
326
+ # tags: {
327
+ # "TagKey" => "TagValue",
328
+ # },
325
329
  # })
326
330
  #
327
331
  # @example Response structure
@@ -407,6 +411,8 @@ module Aws::DLM
407
411
  # resp.policies[0].policy_id #=> String
408
412
  # resp.policies[0].description #=> String
409
413
  # resp.policies[0].state #=> String, one of "ENABLED", "DISABLED", "ERROR"
414
+ # resp.policies[0].tags #=> Hash
415
+ # resp.policies[0].tags["TagKey"] #=> String
410
416
  #
411
417
  # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicies AWS API Documentation
412
418
  #
@@ -437,6 +443,7 @@ module Aws::DLM
437
443
  # resp.policy.policy_id #=> String
438
444
  # resp.policy.description #=> String
439
445
  # resp.policy.state #=> String, one of "ENABLED", "DISABLED", "ERROR"
446
+ # resp.policy.status_message #=> String
440
447
  # resp.policy.execution_role_arn #=> String
441
448
  # resp.policy.date_created #=> Time
442
449
  # resp.policy.date_modified #=> Time
@@ -461,6 +468,9 @@ module Aws::DLM
461
468
  # resp.policy.policy_details.schedules[0].create_rule.times[0] #=> String
462
469
  # resp.policy.policy_details.schedules[0].retain_rule.count #=> Integer
463
470
  # resp.policy.policy_details.parameters.exclude_boot_volume #=> Boolean
471
+ # resp.policy.tags #=> Hash
472
+ # resp.policy.tags["TagKey"] #=> String
473
+ # resp.policy.policy_arn #=> String
464
474
  #
465
475
  # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicy AWS API Documentation
466
476
  #
@@ -471,6 +481,89 @@ module Aws::DLM
471
481
  req.send_request(options)
472
482
  end
473
483
 
484
+ # Lists the tags for the specified resource.
485
+ #
486
+ # @option params [required, String] :resource_arn
487
+ # The Amazon Resource Name (ARN) of the resource.
488
+ #
489
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
490
+ #
491
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
492
+ #
493
+ # @example Request syntax with placeholder values
494
+ #
495
+ # resp = client.list_tags_for_resource({
496
+ # resource_arn: "PolicyArn", # required
497
+ # })
498
+ #
499
+ # @example Response structure
500
+ #
501
+ # resp.tags #=> Hash
502
+ # resp.tags["TagKey"] #=> String
503
+ #
504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/ListTagsForResource AWS API Documentation
505
+ #
506
+ # @overload list_tags_for_resource(params = {})
507
+ # @param [Hash] params ({})
508
+ def list_tags_for_resource(params = {}, options = {})
509
+ req = build_request(:list_tags_for_resource, params)
510
+ req.send_request(options)
511
+ end
512
+
513
+ # Adds the specified tags to the specified resource.
514
+ #
515
+ # @option params [required, String] :resource_arn
516
+ # The Amazon Resource Name (ARN) of the resource.
517
+ #
518
+ # @option params [required, Hash<String,String>] :tags
519
+ # One or more tags.
520
+ #
521
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
522
+ #
523
+ # @example Request syntax with placeholder values
524
+ #
525
+ # resp = client.tag_resource({
526
+ # resource_arn: "PolicyArn", # required
527
+ # tags: { # required
528
+ # "TagKey" => "TagValue",
529
+ # },
530
+ # })
531
+ #
532
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/TagResource AWS API Documentation
533
+ #
534
+ # @overload tag_resource(params = {})
535
+ # @param [Hash] params ({})
536
+ def tag_resource(params = {}, options = {})
537
+ req = build_request(:tag_resource, params)
538
+ req.send_request(options)
539
+ end
540
+
541
+ # Removes the specified tags from the specified resource.
542
+ #
543
+ # @option params [required, String] :resource_arn
544
+ # The Amazon Resource Name (ARN) of the resource.
545
+ #
546
+ # @option params [required, Array<String>] :tag_keys
547
+ # The tag keys.
548
+ #
549
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
550
+ #
551
+ # @example Request syntax with placeholder values
552
+ #
553
+ # resp = client.untag_resource({
554
+ # resource_arn: "PolicyArn", # required
555
+ # tag_keys: ["TagKey"], # required
556
+ # })
557
+ #
558
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UntagResource AWS API Documentation
559
+ #
560
+ # @overload untag_resource(params = {})
561
+ # @param [Hash] params ({})
562
+ def untag_resource(params = {}, options = {})
563
+ req = build_request(:untag_resource, params)
564
+ req.send_request(options)
565
+ end
566
+
474
567
  # Updates the specified lifecycle policy.
475
568
  #
476
569
  # @option params [required, String] :policy_id
@@ -487,9 +580,8 @@ module Aws::DLM
487
580
  # A description of the lifecycle policy.
488
581
  #
489
582
  # @option params [Types::PolicyDetails] :policy_details
490
- # The configuration of the lifecycle policy.
491
- #
492
- # Target tags cannot be re-used across policies.
583
+ # The configuration of the lifecycle policy. You cannot update the
584
+ # policy type or the resource type.
493
585
  #
494
586
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
495
587
  #
@@ -563,7 +655,7 @@ module Aws::DLM
563
655
  params: params,
564
656
  config: config)
565
657
  context[:gem_name] = 'aws-sdk-dlm'
566
- context[:gem_version] = '1.19.0'
658
+ context[:gem_version] = '1.20.0'
567
659
  Seahorse::Client::Request.new(handlers, context)
568
660
  end
569
661
 
@@ -35,9 +35,12 @@ module Aws::DLM
35
35
  LifecyclePolicySummary = Shapes::StructureShape.new(name: 'LifecyclePolicySummary')
36
36
  LifecyclePolicySummaryList = Shapes::ListShape.new(name: 'LifecyclePolicySummaryList')
37
37
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
38
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
39
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
38
40
  Parameter = Shapes::StringShape.new(name: 'Parameter')
39
41
  ParameterList = Shapes::ListShape.new(name: 'ParameterList')
40
42
  Parameters = Shapes::StructureShape.new(name: 'Parameters')
43
+ PolicyArn = Shapes::StringShape.new(name: 'PolicyArn')
41
44
  PolicyDescription = Shapes::StringShape.new(name: 'PolicyDescription')
42
45
  PolicyDetails = Shapes::StructureShape.new(name: 'PolicyDetails')
43
46
  PolicyId = Shapes::StringShape.new(name: 'PolicyId')
@@ -51,9 +54,16 @@ module Aws::DLM
51
54
  ScheduleList = Shapes::ListShape.new(name: 'ScheduleList')
52
55
  ScheduleName = Shapes::StringShape.new(name: 'ScheduleName')
53
56
  SettablePolicyStateValues = Shapes::StringShape.new(name: 'SettablePolicyStateValues')
57
+ StatusMessage = Shapes::StringShape.new(name: 'StatusMessage')
54
58
  String = Shapes::StringShape.new(name: 'String')
55
59
  Tag = Shapes::StructureShape.new(name: 'Tag')
56
60
  TagFilter = Shapes::StringShape.new(name: 'TagFilter')
61
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
62
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
63
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
64
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
65
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
66
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
57
67
  TagsToAddFilterList = Shapes::ListShape.new(name: 'TagsToAddFilterList')
58
68
  TagsToAddList = Shapes::ListShape.new(name: 'TagsToAddList')
59
69
  TargetTagList = Shapes::ListShape.new(name: 'TargetTagList')
@@ -61,6 +71,8 @@ module Aws::DLM
61
71
  Time = Shapes::StringShape.new(name: 'Time')
62
72
  TimesList = Shapes::ListShape.new(name: 'TimesList')
63
73
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
74
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
75
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
64
76
  UpdateLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'UpdateLifecyclePolicyRequest')
65
77
  UpdateLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'UpdateLifecyclePolicyResponse')
66
78
  VariableTagsList = Shapes::ListShape.new(name: 'VariableTagsList')
@@ -69,6 +81,7 @@ module Aws::DLM
69
81
  CreateLifecyclePolicyRequest.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, required: true, location_name: "Description"))
70
82
  CreateLifecyclePolicyRequest.add_member(:state, Shapes::ShapeRef.new(shape: SettablePolicyStateValues, required: true, location_name: "State"))
71
83
  CreateLifecyclePolicyRequest.add_member(:policy_details, Shapes::ShapeRef.new(shape: PolicyDetails, required: true, location_name: "PolicyDetails"))
84
+ CreateLifecyclePolicyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
72
85
  CreateLifecyclePolicyRequest.struct_class = Types::CreateLifecyclePolicyRequest
73
86
 
74
87
  CreateLifecyclePolicyResponse.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "PolicyId"))
@@ -113,15 +126,19 @@ module Aws::DLM
113
126
  LifecyclePolicy.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "PolicyId"))
114
127
  LifecyclePolicy.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, location_name: "Description"))
115
128
  LifecyclePolicy.add_member(:state, Shapes::ShapeRef.new(shape: GettablePolicyStateValues, location_name: "State"))
129
+ LifecyclePolicy.add_member(:status_message, Shapes::ShapeRef.new(shape: StatusMessage, location_name: "StatusMessage"))
116
130
  LifecyclePolicy.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: ExecutionRoleArn, location_name: "ExecutionRoleArn"))
117
131
  LifecyclePolicy.add_member(:date_created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DateCreated"))
118
132
  LifecyclePolicy.add_member(:date_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DateModified"))
119
133
  LifecyclePolicy.add_member(:policy_details, Shapes::ShapeRef.new(shape: PolicyDetails, location_name: "PolicyDetails"))
134
+ LifecyclePolicy.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
135
+ LifecyclePolicy.add_member(:policy_arn, Shapes::ShapeRef.new(shape: PolicyArn, location_name: "PolicyArn"))
120
136
  LifecyclePolicy.struct_class = Types::LifecyclePolicy
121
137
 
122
138
  LifecyclePolicySummary.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "PolicyId"))
123
139
  LifecyclePolicySummary.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, location_name: "Description"))
124
140
  LifecyclePolicySummary.add_member(:state, Shapes::ShapeRef.new(shape: GettablePolicyStateValues, location_name: "State"))
141
+ LifecyclePolicySummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
125
142
  LifecyclePolicySummary.struct_class = Types::LifecyclePolicySummary
126
143
 
127
144
  LifecyclePolicySummaryList.member = Shapes::ShapeRef.new(shape: LifecyclePolicySummary)
@@ -131,6 +148,12 @@ module Aws::DLM
131
148
  LimitExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "ResourceType"))
132
149
  LimitExceededException.struct_class = Types::LimitExceededException
133
150
 
151
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyArn, required: true, location: "uri", location_name: "resourceArn"))
152
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
153
+
154
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
155
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
156
+
134
157
  ParameterList.member = Shapes::ShapeRef.new(shape: Parameter)
135
158
 
136
159
  Parameters.add_member(:exclude_boot_volume, Shapes::ShapeRef.new(shape: ExcludeBootVolume, location_name: "ExcludeBootVolume"))
@@ -170,6 +193,17 @@ module Aws::DLM
170
193
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Value"))
171
194
  Tag.struct_class = Types::Tag
172
195
 
196
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
197
+
198
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
199
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
200
+
201
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyArn, required: true, location: "uri", location_name: "resourceArn"))
202
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
203
+ TagResourceRequest.struct_class = Types::TagResourceRequest
204
+
205
+ TagResourceResponse.struct_class = Types::TagResourceResponse
206
+
173
207
  TagsToAddFilterList.member = Shapes::ShapeRef.new(shape: TagFilter)
174
208
 
175
209
  TagsToAddList.member = Shapes::ShapeRef.new(shape: Tag)
@@ -180,6 +214,12 @@ module Aws::DLM
180
214
 
181
215
  TimesList.member = Shapes::ShapeRef.new(shape: Time)
182
216
 
217
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: PolicyArn, required: true, location: "uri", location_name: "resourceArn"))
218
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
219
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
220
+
221
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
222
+
183
223
  UpdateLifecyclePolicyRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location: "uri", location_name: "policyId"))
184
224
  UpdateLifecyclePolicyRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: ExecutionRoleArn, location_name: "ExecutionRoleArn"))
185
225
  UpdateLifecyclePolicyRequest.add_member(:state, Shapes::ShapeRef.new(shape: SettablePolicyStateValues, location_name: "State"))
@@ -255,6 +295,39 @@ module Aws::DLM
255
295
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
256
296
  end)
257
297
 
298
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
299
+ o.name = "ListTagsForResource"
300
+ o.http_method = "GET"
301
+ o.http_request_uri = "/tags/{resourceArn}"
302
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
303
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
304
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
305
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
306
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
307
+ end)
308
+
309
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
310
+ o.name = "TagResource"
311
+ o.http_method = "POST"
312
+ o.http_request_uri = "/tags/{resourceArn}"
313
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
314
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
315
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
316
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
317
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
318
+ end)
319
+
320
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
321
+ o.name = "UntagResource"
322
+ o.http_method = "DELETE"
323
+ o.http_request_uri = "/tags/{resourceArn}"
324
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
325
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
326
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
327
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
328
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
329
+ end)
330
+
258
331
  api.add_operation(:update_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
259
332
  o.name = "UpdateLifecyclePolicy"
260
333
  o.http_method = "PATCH"
@@ -54,6 +54,9 @@ module Aws::DLM
54
54
  # exclude_boot_volume: false,
55
55
  # },
56
56
  # },
57
+ # tags: {
58
+ # "TagKey" => "TagValue",
59
+ # },
57
60
  # }
58
61
  #
59
62
  # @!attribute [rw] execution_role_arn
@@ -72,17 +75,20 @@ module Aws::DLM
72
75
  #
73
76
  # @!attribute [rw] policy_details
74
77
  # The configuration details of the lifecycle policy.
75
- #
76
- # Target tags cannot be re-used across lifecycle policies.
77
78
  # @return [Types::PolicyDetails]
78
79
  #
80
+ # @!attribute [rw] tags
81
+ # The tags to apply to the lifecycle policy during creation.
82
+ # @return [Hash<String,String>]
83
+ #
79
84
  # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateLifecyclePolicyRequest AWS API Documentation
80
85
  #
81
86
  class CreateLifecyclePolicyRequest < Struct.new(
82
87
  :execution_role_arn,
83
88
  :description,
84
89
  :state,
85
- :policy_details)
90
+ :policy_details,
91
+ :tags)
86
92
  include Aws::Structure
87
93
  end
88
94
 
@@ -302,6 +308,10 @@ module Aws::DLM
302
308
  # The activation state of the lifecycle policy.
303
309
  # @return [String]
304
310
  #
311
+ # @!attribute [rw] status_message
312
+ # The description of the status.
313
+ # @return [String]
314
+ #
305
315
  # @!attribute [rw] execution_role_arn
306
316
  # The Amazon Resource Name (ARN) of the IAM role used to run the
307
317
  # operations specified by the lifecycle policy.
@@ -319,16 +329,27 @@ module Aws::DLM
319
329
  # The configuration of the lifecycle policy
320
330
  # @return [Types::PolicyDetails]
321
331
  #
332
+ # @!attribute [rw] tags
333
+ # The tags.
334
+ # @return [Hash<String,String>]
335
+ #
336
+ # @!attribute [rw] policy_arn
337
+ # The Amazon Resource Name (ARN) of the policy.
338
+ # @return [String]
339
+ #
322
340
  # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/LifecyclePolicy AWS API Documentation
323
341
  #
324
342
  class LifecyclePolicy < Struct.new(
325
343
  :policy_id,
326
344
  :description,
327
345
  :state,
346
+ :status_message,
328
347
  :execution_role_arn,
329
348
  :date_created,
330
349
  :date_modified,
331
- :policy_details)
350
+ :policy_details,
351
+ :tags,
352
+ :policy_arn)
332
353
  include Aws::Structure
333
354
  end
334
355
 
@@ -346,12 +367,17 @@ module Aws::DLM
346
367
  # The activation state of the lifecycle policy.
347
368
  # @return [String]
348
369
  #
370
+ # @!attribute [rw] tags
371
+ # The tags.
372
+ # @return [Hash<String,String>]
373
+ #
349
374
  # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/LifecyclePolicySummary AWS API Documentation
350
375
  #
351
376
  class LifecyclePolicySummary < Struct.new(
352
377
  :policy_id,
353
378
  :description,
354
- :state)
379
+ :state,
380
+ :tags)
355
381
  include Aws::Structure
356
382
  end
357
383
 
@@ -376,6 +402,35 @@ module Aws::DLM
376
402
  include Aws::Structure
377
403
  end
378
404
 
405
+ # @note When making an API call, you may pass ListTagsForResourceRequest
406
+ # data as a hash:
407
+ #
408
+ # {
409
+ # resource_arn: "PolicyArn", # required
410
+ # }
411
+ #
412
+ # @!attribute [rw] resource_arn
413
+ # The Amazon Resource Name (ARN) of the resource.
414
+ # @return [String]
415
+ #
416
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/ListTagsForResourceRequest AWS API Documentation
417
+ #
418
+ class ListTagsForResourceRequest < Struct.new(
419
+ :resource_arn)
420
+ include Aws::Structure
421
+ end
422
+
423
+ # @!attribute [rw] tags
424
+ # Information about the tags.
425
+ # @return [Hash<String,String>]
426
+ #
427
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/ListTagsForResourceResponse AWS API Documentation
428
+ #
429
+ class ListTagsForResourceResponse < Struct.new(
430
+ :tags)
431
+ include Aws::Structure
432
+ end
433
+
379
434
  # Optional parameters that can be added to the policy. The set of valid
380
435
  # parameters depends on the combination of `policyType` and
381
436
  # `resourceType` values.
@@ -624,6 +679,64 @@ module Aws::DLM
624
679
  include Aws::Structure
625
680
  end
626
681
 
682
+ # @note When making an API call, you may pass TagResourceRequest
683
+ # data as a hash:
684
+ #
685
+ # {
686
+ # resource_arn: "PolicyArn", # required
687
+ # tags: { # required
688
+ # "TagKey" => "TagValue",
689
+ # },
690
+ # }
691
+ #
692
+ # @!attribute [rw] resource_arn
693
+ # The Amazon Resource Name (ARN) of the resource.
694
+ # @return [String]
695
+ #
696
+ # @!attribute [rw] tags
697
+ # One or more tags.
698
+ # @return [Hash<String,String>]
699
+ #
700
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/TagResourceRequest AWS API Documentation
701
+ #
702
+ class TagResourceRequest < Struct.new(
703
+ :resource_arn,
704
+ :tags)
705
+ include Aws::Structure
706
+ end
707
+
708
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/TagResourceResponse AWS API Documentation
709
+ #
710
+ class TagResourceResponse < Aws::EmptyStructure; end
711
+
712
+ # @note When making an API call, you may pass UntagResourceRequest
713
+ # data as a hash:
714
+ #
715
+ # {
716
+ # resource_arn: "PolicyArn", # required
717
+ # tag_keys: ["TagKey"], # required
718
+ # }
719
+ #
720
+ # @!attribute [rw] resource_arn
721
+ # The Amazon Resource Name (ARN) of the resource.
722
+ # @return [String]
723
+ #
724
+ # @!attribute [rw] tag_keys
725
+ # The tag keys.
726
+ # @return [Array<String>]
727
+ #
728
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UntagResourceRequest AWS API Documentation
729
+ #
730
+ class UntagResourceRequest < Struct.new(
731
+ :resource_arn,
732
+ :tag_keys)
733
+ include Aws::Structure
734
+ end
735
+
736
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UntagResourceResponse AWS API Documentation
737
+ #
738
+ class UntagResourceResponse < Aws::EmptyStructure; end
739
+
627
740
  # @note When making an API call, you may pass UpdateLifecyclePolicyRequest
628
741
  # data as a hash:
629
742
  #
@@ -691,9 +804,8 @@ module Aws::DLM
691
804
  # @return [String]
692
805
  #
693
806
  # @!attribute [rw] policy_details
694
- # The configuration of the lifecycle policy.
695
- #
696
- # Target tags cannot be re-used across policies.
807
+ # The configuration of the lifecycle policy. You cannot update the
808
+ # policy type or the resource type.
697
809
  # @return [Types::PolicyDetails]
698
810
  #
699
811
  # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UpdateLifecyclePolicyRequest AWS API Documentation
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.19.0
4
+ version: 1.20.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-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core