lib/aws-sdk-dlm/client.rb in aws-sdk-dlm-1.19.0 vs lib/aws-sdk-dlm/client.rb in aws-sdk-dlm-1.20.0
- old
+ new
@@ -269,11 +269,12 @@
# The desired activation state of the lifecycle policy after creation.
#
# @option params [required, Types::PolicyDetails] :policy_details
# The configuration details of the lifecycle policy.
#
- # Target tags cannot be re-used across lifecycle policies.
+ # @option params [Hash<String,String>] :tags
+ # The tags to apply to the lifecycle policy during creation.
#
# @return [Types::CreateLifecyclePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateLifecyclePolicyResponse#policy_id #policy_id} => String
#
@@ -320,10 +321,13 @@
# ],
# parameters: {
# exclude_boot_volume: false,
# },
# },
+ # tags: {
+ # "TagKey" => "TagValue",
+ # },
# })
#
# @example Response structure
#
# resp.policy_id #=> String
@@ -405,10 +409,12 @@
#
# resp.policies #=> Array
# resp.policies[0].policy_id #=> String
# resp.policies[0].description #=> String
# resp.policies[0].state #=> String, one of "ENABLED", "DISABLED", "ERROR"
+ # resp.policies[0].tags #=> Hash
+ # resp.policies[0].tags["TagKey"] #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicies AWS API Documentation
#
# @overload get_lifecycle_policies(params = {})
# @param [Hash] params ({})
@@ -435,10 +441,11 @@
# @example Response structure
#
# resp.policy.policy_id #=> String
# resp.policy.description #=> String
# resp.policy.state #=> String, one of "ENABLED", "DISABLED", "ERROR"
+ # resp.policy.status_message #=> String
# resp.policy.execution_role_arn #=> String
# resp.policy.date_created #=> Time
# resp.policy.date_modified #=> Time
# resp.policy.policy_details.policy_type #=> String, one of "EBS_SNAPSHOT_MANAGEMENT"
# resp.policy.policy_details.resource_types #=> Array
@@ -459,20 +466,106 @@
# resp.policy.policy_details.schedules[0].create_rule.interval_unit #=> String, one of "HOURS"
# resp.policy.policy_details.schedules[0].create_rule.times #=> Array
# resp.policy.policy_details.schedules[0].create_rule.times[0] #=> String
# resp.policy.policy_details.schedules[0].retain_rule.count #=> Integer
# resp.policy.policy_details.parameters.exclude_boot_volume #=> Boolean
+ # resp.policy.tags #=> Hash
+ # resp.policy.tags["TagKey"] #=> String
+ # resp.policy.policy_arn #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicy AWS API Documentation
#
# @overload get_lifecycle_policy(params = {})
# @param [Hash] params ({})
def get_lifecycle_policy(params = {}, options = {})
req = build_request(:get_lifecycle_policy, params)
req.send_request(options)
end
+ # Lists the tags for the specified resource.
+ #
+ # @option params [required, String] :resource_arn
+ # The Amazon Resource Name (ARN) of the resource.
+ #
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.list_tags_for_resource({
+ # resource_arn: "PolicyArn", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.tags #=> Hash
+ # resp.tags["TagKey"] #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/ListTagsForResource AWS API Documentation
+ #
+ # @overload list_tags_for_resource(params = {})
+ # @param [Hash] params ({})
+ def list_tags_for_resource(params = {}, options = {})
+ req = build_request(:list_tags_for_resource, params)
+ req.send_request(options)
+ end
+
+ # Adds the specified tags to the specified resource.
+ #
+ # @option params [required, String] :resource_arn
+ # The Amazon Resource Name (ARN) of the resource.
+ #
+ # @option params [required, Hash<String,String>] :tags
+ # One or more tags.
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.tag_resource({
+ # resource_arn: "PolicyArn", # required
+ # tags: { # required
+ # "TagKey" => "TagValue",
+ # },
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/TagResource AWS API Documentation
+ #
+ # @overload tag_resource(params = {})
+ # @param [Hash] params ({})
+ def tag_resource(params = {}, options = {})
+ req = build_request(:tag_resource, params)
+ req.send_request(options)
+ end
+
+ # Removes the specified tags from the specified resource.
+ #
+ # @option params [required, String] :resource_arn
+ # The Amazon Resource Name (ARN) of the resource.
+ #
+ # @option params [required, Array<String>] :tag_keys
+ # The tag keys.
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.untag_resource({
+ # resource_arn: "PolicyArn", # required
+ # tag_keys: ["TagKey"], # required
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UntagResource AWS API Documentation
+ #
+ # @overload untag_resource(params = {})
+ # @param [Hash] params ({})
+ def untag_resource(params = {}, options = {})
+ req = build_request(:untag_resource, params)
+ req.send_request(options)
+ end
+
# Updates the specified lifecycle policy.
#
# @option params [required, String] :policy_id
# The identifier of the lifecycle policy.
#
@@ -485,14 +578,13 @@
#
# @option params [String] :description
# A description of the lifecycle policy.
#
# @option params [Types::PolicyDetails] :policy_details
- # The configuration of the lifecycle policy.
+ # The configuration of the lifecycle policy. You cannot update the
+ # policy type or the resource type.
#
- # Target tags cannot be re-used across policies.
- #
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
# @example Request syntax with placeholder values
#
# resp = client.update_lifecycle_policy({
@@ -561,10 +653,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-dlm'
- context[:gem_version] = '1.19.0'
+ context[:gem_version] = '1.20.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated