amazonka-cloudtrail-2.0: Amazon CloudTrail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudTrail.AddTags

Description

Adds one or more tags to a trail or event data store, 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 or event data store that applies to all Amazon Web Services Regions only from the Region in which the trail or event data store was created (also known as its home region).

Synopsis

Creating a Request

data AddTags Source #

Specifies the tags to add to a trail or event data store.

See: newAddTags smart constructor.

Constructors

AddTags' 

Fields

  • resourceId :: Text

    Specifies the ARN of the trail or event data store 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
  • tagsList :: [Tag]

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

Instances

Instances details
ToJSON AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.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

AWSRequest AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Associated Types

type AWSResponse 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 #

Read AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Show AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

NFData AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

rnf :: AddTags -> () #

Eq AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

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

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

Hashable AddTags Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

hashWithSalt :: Int -> AddTags -> Int #

hash :: AddTags -> Int #

type AWSResponse 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" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "AddTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tagsList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])))

newAddTags Source #

Arguments

:: Text

AddTags

-> AddTags 

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:

AddTags, addTags_resourceId - Specifies the ARN of the trail or event data store 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

AddTags, addTags_tagsList - Contains a list of tags, up to a limit of 50

Request Lenses

addTags_resourceId :: Lens' AddTags Text Source #

Specifies the ARN of the trail or event data store 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

addTags_tagsList :: Lens' AddTags [Tag] Source #

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

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
Generic AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Associated Types

type Rep AddTagsResponse :: Type -> Type #

Read AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Show AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

NFData AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

Methods

rnf :: AddTagsResponse -> () #

Eq AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

type Rep AddTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.AddTags

type Rep AddTagsResponse = D1 ('MetaData "AddTagsResponse" "Amazonka.CloudTrail.AddTags" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" '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.