Class: Aws::Lightsail::Types::TagResourceRequest

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

Overview

Note:

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

{
  resource_name: "ResourceName", # required
  resource_arn: "ResourceArn",
  tags: [ # required
    {
      key: "TagKey",
      value: "TagValue",
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

The Amazon Resource Name (ARN) of the resource to which you want to add a tag.

Returns:

  • (String)


11644
11645
11646
11647
11648
11649
11650
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 11644

class TagResourceRequest < Struct.new(
  :resource_name,
  :resource_arn,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#resource_nameString

The name of the resource to which you are adding tags.

Returns:

  • (String)


11644
11645
11646
11647
11648
11649
11650
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 11644

class TagResourceRequest < Struct.new(
  :resource_name,
  :resource_arn,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

The tag key and optional value.

Returns:



11644
11645
11646
11647
11648
11649
11650
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 11644

class TagResourceRequest < Struct.new(
  :resource_name,
  :resource_arn,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end