lib/aws-sdk-fms/client.rb in aws-sdk-fms-1.20.0 vs lib/aws-sdk-fms/client.rb in aws-sdk-fms-1.21.0

- old
+ new

@@ -763,10 +763,42 @@ def list_policies(params = {}, options = {}) req = build_request(:list_policies, params) req.send_request(options) end + # Retrieves the list of tags for the specified AWS resource. + # + # @option params [required, String] :resource_arn + # The Amazon Resource Name (ARN) of the resource to return tags for. The + # Firewall Manager policy is the only AWS resource that supports + # tagging, so this ARN is a policy ARN.. + # + # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListTagsForResourceResponse#tag_list #tag_list} => Array&lt;Types::Tag&gt; + # + # @example Request syntax with placeholder values + # + # resp = client.list_tags_for_resource({ + # resource_arn: "ResourceArn", # required + # }) + # + # @example Response structure + # + # resp.tag_list #=> Array + # resp.tag_list[0].key #=> String + # resp.tag_list[0].value #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/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 + # Designates the IAM role and Amazon Simple Notification Service (SNS) # topic that AWS Firewall Manager uses to record SNS logs. # # @option params [required, String] :sns_topic_arn # The Amazon Resource Name (ARN) of the SNS topic that collects @@ -820,10 +852,13 @@ # [1]: https://docs.aws.amazon.com/waf/latest/DDOSAPIReference/API_CreateSubscription.html # # @option params [required, Types::Policy] :policy # The details of the AWS Firewall Manager policy to be created. # + # @option params [Array<Types::Tag>] :tag_list + # The tags to add to the AWS resource. + # # @return [Types::PutPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::PutPolicyResponse#policy #policy} => Types::Policy # * {Types::PutPolicyResponse#policy_arn #policy_arn} => String # @@ -840,12 +875,12 @@ # }, # resource_type: "ResourceType", # required # resource_type_list: ["ResourceType"], # resource_tags: [ # { - # key: "TagKey", # required - # value: "TagValue", + # key: "ResourceTagKey", # required + # value: "ResourceTagValue", # }, # ], # exclude_resource_tags: false, # required # remediation_enabled: false, # required # include_map: { @@ -853,10 +888,16 @@ # }, # exclude_map: { # "ACCOUNT" => ["CustomerPolicyScopeId"], # }, # }, + # tag_list: [ + # { + # key: "TagKey", # required + # value: "TagValue", # required + # }, + # ], # }) # # @example Response structure # # resp.policy.policy_id #=> String @@ -887,10 +928,71 @@ def put_policy(params = {}, options = {}) req = build_request(:put_policy, params) req.send_request(options) end + # Adds one or more tags to an AWS resource. + # + # @option params [required, String] :resource_arn + # The Amazon Resource Name (ARN) of the resource. The Firewall Manager + # policy is the only AWS resource that supports tagging, so this ARN is + # a policy ARN. + # + # @option params [required, Array<Types::Tag>] :tag_list + # The tags to add to the resource. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.tag_resource({ + # resource_arn: "ResourceArn", # required + # tag_list: [ # required + # { + # key: "TagKey", # required + # value: "TagValue", # required + # }, + # ], + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/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 one or more tags from an AWS resource. + # + # @option params [required, String] :resource_arn + # The Amazon Resource Name (ARN) of the resource. The Firewall Manager + # policy is the only AWS resource that supports tagging, so this ARN is + # a policy ARN. + # + # @option params [required, Array<String>] :tag_keys + # The keys of the tags to remove from the resource. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.untag_resource({ + # resource_arn: "ResourceArn", # required + # tag_keys: ["TagKey"], # required + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/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 + # @!endgroup # @param params ({}) # @api private def build_request(operation_name, params = {}) @@ -900,10 +1002,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-fms' - context[:gem_version] = '1.20.0' + context[:gem_version] = '1.21.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated