amazonka-ec2-0.3.6.1: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateTags

Contents

Description

Adds or overwrites one or more tags for the specified Amazon EC2 resource or resources. Each resource can have a maximum of 10 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.

For more information about tags, see Tagging Your Resources in the AmazonElastic Compute Cloud User Guide.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateTags.html

Synopsis

Request

Request constructor

createTags :: CreateTags Source

CreateTags constructor.

The fields accessible through corresponding lenses are:

Request lenses

ct1DryRun :: Lens' CreateTags (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

ct1Resources :: Lens' CreateTags [Text] Source

The IDs of one or more resources to tag. For example, ami-1a2b3c4d.

ct1Tags :: Lens' CreateTags [Tag] Source

One or more tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.

Response

Response constructor