lib/aws-sdk-mediaconnect/client.rb in aws-sdk-mediaconnect-1.0.0 vs lib/aws-sdk-mediaconnect/client.rb in aws-sdk-mediaconnect-1.1.0
- old
+ new
@@ -647,10 +647,38 @@
def list_flows(params = {}, options = {})
req = build_request(:list_flows, params)
req.send_request(options)
end
+ # Lists all tags associated with the resource.
+ #
+ # @option params [required, String] :resource_arn
+ #
+ # @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: "__string", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.tags #=> Hash
+ # resp.tags["__string"] #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/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
+
# Removes an output from an existing flow. This request can be made only
# on an output that does not have an entitlement associated with it. If
# the output has an entitlement, you must revoke the entitlement
# instead. When an entitlement is revoked from a flow, the service
# automatically removes the associated output.
@@ -775,10 +803,65 @@
def stop_flow(params = {}, options = {})
req = build_request(:stop_flow, params)
req.send_request(options)
end
+ # Associates the specified tags to a resource. If the request does not
+ # mention an existing tag associated with the resource, that tag is not
+ # changed.
+ #
+ # @option params [required, String] :resource_arn
+ #
+ # @option params [required, Hash<String,String>] :tags
+ # A map from tag keys to values. Tag keys can have a maximum character
+ # length of 128 characters, and tag values can have a maximum length of
+ # 256 characters.
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.tag_resource({
+ # resource_arn: "__string", # required
+ # tags: { # required
+ # "__string" => "__string",
+ # },
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/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
+
+ # Deletes the specified tags from a resource.
+ #
+ # @option params [required, String] :resource_arn
+ #
+ # @option params [required, Array<String>] :tag_keys
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.untag_resource({
+ # resource_arn: "__string", # required
+ # tag_keys: ["__string"], # required
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/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
+
# You can change an entitlement's description, subscribers, and
# encryption. If you change the subscribers, the service will remove the
# outputs that are are used by the subscribers that are removed.
#
# @option params [String] :description
@@ -1033,10 +1116,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-mediaconnect'
- context[:gem_version] = '1.0.0'
+ context[:gem_version] = '1.1.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated