You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::GuardDuty::Types::TagResourceRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb

Overview

Note:

When making an API call, you may pass TagResourceRequest data as a hash:

{
  resource_arn: "GuardDutyArn", # required
  tags: { # required
    "TagKey" => "TagValue",
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

The Amazon Resource Name (ARN) for the GuardDuty resource to apply a tag to.

Returns:

  • (String)


3166
3167
3168
3169
3170
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 3166

class TagResourceRequest < Struct.new(
  :resource_arn,
  :tags)
  include Aws::Structure
end

#tagsHash<String,String>

The tags to be added to a resource.

Returns:

  • (Hash<String,String>)


3166
3167
3168
3169
3170
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 3166

class TagResourceRequest < Struct.new(
  :resource_arn,
  :tags)
  include Aws::Structure
end