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

Amazonka.CloudTrail.AddTags

Description

Adds one or more tags to a trail, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key. Tag key names must be unique for a trail; you cannot have two keys with the same name but different values. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail that applies to all Amazon Web Services Regions only from the Region in which the trail was created (also known as its home region).

Synopsis

Creating a Request

data AddTags Source #

Specifies the tags to add to a trail.

See: newAddTags smart constructor.

Constructors

AddTags' 

Fields

  • tagsList :: Maybe [Tag]

    Contains a list of tags, up to a limit of 50

  • resourceId :: Text

    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-2:123456789012:trail/MyTrail

Instances

Instances details
Eq AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

(==) :: AddTags -> AddTags -> Bool #

(/=) :: AddTags -> AddTags -> Bool #

Read AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Show AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Generic AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Associated Types

type Rep AddTags :: Type -> Type #

Methods

from :: AddTags -> Rep AddTags x #

to :: Rep AddTags x -> AddTags #

NFData AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

rnf :: AddTags -> () #

Hashable AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

hashWithSalt :: Int -> AddTags -> Int #

hash :: AddTags -> Int #

ToJSON AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

AWSRequest AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Associated Types

type AWSResponse AddTags #

ToHeaders AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

toHeaders :: AddTags -> [Header] #

ToPath AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

toPath :: AddTags -> ByteString #

ToQuery AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

type Rep AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

type Rep AddTags = D1 ('MetaData "AddTags" "Amazonka.CloudTrail.AddTags" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "AddTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tagsList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

newAddTags Source #

Create a value of AddTags with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:tagsList:AddTags', addTags_tagsList - Contains a list of tags, up to a limit of 50

$sel:resourceId:AddTags', addTags_resourceId - 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-2:123456789012:trail/MyTrail

Request Lenses

addTags_tagsList :: Lens' AddTags (Maybe [Tag]) Source #

Contains a list of tags, up to a limit of 50

addTags_resourceId :: 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-2:123456789012:trail/MyTrail

Destructuring the Response

data AddTagsResponse Source #

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

See: newAddTagsResponse smart constructor.

Constructors

AddTagsResponse' 

Fields

Instances

Instances details
Eq AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Read AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Show AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Generic AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Associated Types

type Rep AddTagsResponse :: Type -> Type #

NFData AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

rnf :: AddTagsResponse -> () #

type Rep AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

type Rep AddTagsResponse = D1 ('MetaData "AddTagsResponse" "Amazonka.CloudTrail.AddTags" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "AddTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddTagsResponse Source #

Create a value of AddTagsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:AddTagsResponse', addTagsResponse_httpStatus - The response's http status code.

Response Lenses

addTagsResponse_httpStatus :: Lens' AddTagsResponse Int Source #

The response's http status code.