amazonka-cloudtrail-1.3.4: Amazon CloudTrail SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudTrail.AddTags

Contents

Description

Adds one or more tags to a trail, up to a limit of 10. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null.

See: AWS API Reference for AddTags.

Synopsis

Creating a Request

addTags Source

Arguments

:: Text

atResourceId

-> AddTags 

Creates a value of AddTags with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

atTagsList :: Lens' AddTags [Tag] Source

Contains a list of CloudTrail tags, up to a limit of 10.

atResourceId :: Lens' AddTags Text Source

Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is 'arn:aws:cloudtrail:us-east-1:123456789012:trail\/MyTrail'.

Destructuring the Response

addTagsResponse Source

Creates a value of AddTagsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AddTagsResponse Source

Returns the objects or data listed below if successful. Otherwise, returns an error.

See: addTagsResponse smart constructor.

Response Lenses

atrsResponseStatus :: Lens' AddTagsResponse Int Source

The response status code.