v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Adds one or more tags to the specified Amazon Lightsail resource. Each resource can have a maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see the Amazon Lightsail Developer Guide.

The tag resource operation supports tag-based access control via request tags and resource tags applied to the resource identified by resource name. For more information, see the Amazon Lightsail Developer Guide.

post/#X-Amz-Target=Lightsail_20161128.TagResource

Headers

X-Amz-Target'Lightsail_20161128.TagResource' required

Request body

resourceNamestring required

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

resourceArnstring

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

Response

Success