Class: Aws::ServiceDiscovery::Types::TagResourceRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::ServiceDiscovery::Types::TagResourceRequest
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-servicediscovery/types.rb
Overview
Note:
When making an API call, you may pass TagResourceRequest data as a hash:
{
resource_arn: "AmazonResourceName", # required
tags: [ # required
{
key: "TagKey", # required
value: "TagValue", # required
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the resource that you want to retrieve tags for.
-
#tags ⇒ Array<Types::Tag>
The tags to add to the specified resource.
Instance Attribute Details
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the resource that you want to retrieve tags for.
3129 3130 3131 3132 3133 3134 |
# File 'lib/aws-sdk-servicediscovery/types.rb', line 3129 class TagResourceRequest < Struct.new( :resource_arn, :tags) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
The tags to add to the specified resource. Specifying the tag key is required. You can set the value of a tag to an empty string, but you can’t set the value of a tag to null.
3129 3130 3131 3132 3133 3134 |
# File 'lib/aws-sdk-servicediscovery/types.rb', line 3129 class TagResourceRequest < Struct.new( :resource_arn, :tags) SENSITIVE = [] include Aws::Structure end |