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)


3199
3200
3201
3202
3203
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 3199

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>)


3199
3200
3201
3202
3203
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 3199

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