Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 Amazon Elastic Compute Cloud User Guide.
See: AWS API Reference for CreateTags.
- createTags :: CreateTags
- data CreateTags
- cDryRun :: Lens' CreateTags (Maybe Bool)
- cResources :: Lens' CreateTags [Text]
- cTags :: Lens' CreateTags [Tag]
- createTagsResponse :: CreateTagsResponse
- data CreateTagsResponse
Creating a Request
createTags :: CreateTags Source
Creates a value of CreateTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateTags Source
See: createTags
smart constructor.
Request Lenses
cDryRun :: 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
.
cResources :: Lens' CreateTags [Text] Source
The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
cTags :: 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.
Destructuring the Response
createTagsResponse :: CreateTagsResponse Source
Creates a value of CreateTagsResponse
with the minimum fields required to make a request.