amazonka-dynamodb-2.0: Amazon DynamoDB 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.DynamoDB.TagResource

Description

Associate a set of tags with an Amazon DynamoDB resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking. You can call TagResource up to five times per second, per account.

For an overview on tagging DynamoDB resources, see Tagging for DynamoDB in the Amazon DynamoDB Developer Guide.

Synopsis

Creating a Request

data TagResource Source #

See: newTagResource smart constructor.

Constructors

TagResource' 

Fields

  • resourceArn :: Text

    Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).

  • tags :: [Tag]

    The tags to be assigned to the Amazon DynamoDB resource.

Instances

Instances details
ToJSON TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

ToHeaders TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

ToQuery TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

AWSRequest TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

Associated Types

type AWSResponse TagResource #

Generic TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

Associated Types

type Rep TagResource :: Type -> Type #

Read TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

Show TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

NFData TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

Methods

rnf :: TagResource -> () #

Eq TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

Hashable TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

type AWSResponse TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

type Rep TagResource Source # 
Instance details

Defined in Amazonka.DynamoDB.TagResource

type Rep TagResource = D1 ('MetaData "TagResource" "Amazonka.DynamoDB.TagResource" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "TagResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])))

newTagResource Source #

Create a value of TagResource 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:resourceArn:TagResource', tagResource_resourceArn - Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).

$sel:tags:TagResource', tagResource_tags - The tags to be assigned to the Amazon DynamoDB resource.

Request Lenses

tagResource_resourceArn :: Lens' TagResource Text Source #

Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).

tagResource_tags :: Lens' TagResource [Tag] Source #

The tags to be assigned to the Amazon DynamoDB resource.

Destructuring the Response

data TagResourceResponse Source #

See: newTagResourceResponse smart constructor.

Constructors

TagResourceResponse' 

newTagResourceResponse :: TagResourceResponse Source #

Create a value of TagResourceResponse with all optional fields omitted.

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