amazonka-dms-2.0: Amazon Database Migration Service 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.DMS.AddTagsToResource

Description

Adds metadata tags to an DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS. For more information, see Tag data type description.

Synopsis

Creating a Request

data AddTagsToResource Source #

Associates a set of tags with an DMS resource.

See: newAddTagsToResource smart constructor.

Constructors

AddTagsToResource' 

Fields

  • resourceArn :: Text

    Identifies the DMS resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN).

    For DMS, you can tag a replication instance, an endpoint, or a replication task.

  • tags :: [Tag]

    One or more tags to be assigned to the resource.

Instances

Instances details
ToJSON AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

ToHeaders AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

ToPath AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

ToQuery AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

AWSRequest AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

Associated Types

type AWSResponse AddTagsToResource #

Generic AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

Associated Types

type Rep AddTagsToResource :: Type -> Type #

Read AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

Show AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

NFData AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

Methods

rnf :: AddTagsToResource -> () #

Eq AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

Hashable AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

type AWSResponse AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

type Rep AddTagsToResource Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

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

newAddTagsToResource Source #

Create a value of AddTagsToResource 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:

AddTagsToResource, addTagsToResource_resourceArn - Identifies the DMS resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN).

For DMS, you can tag a replication instance, an endpoint, or a replication task.

$sel:tags:AddTagsToResource', addTagsToResource_tags - One or more tags to be assigned to the resource.

Request Lenses

addTagsToResource_resourceArn :: Lens' AddTagsToResource Text Source #

Identifies the DMS resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN).

For DMS, you can tag a replication instance, an endpoint, or a replication task.

addTagsToResource_tags :: Lens' AddTagsToResource [Tag] Source #

One or more tags to be assigned to the resource.

Destructuring the Response

data AddTagsToResourceResponse Source #

See: newAddTagsToResourceResponse smart constructor.

Constructors

AddTagsToResourceResponse' 

Fields

Instances

Instances details
Generic AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

Associated Types

type Rep AddTagsToResourceResponse :: Type -> Type #

Read AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

Show AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

NFData AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

Eq AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

type Rep AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DMS.AddTagsToResource

type Rep AddTagsToResourceResponse = D1 ('MetaData "AddTagsToResourceResponse" "Amazonka.DMS.AddTagsToResource" "amazonka-dms-2.0-LVCLJv4CY4nJuf0WXCDs3O" 'False) (C1 ('MetaCons "AddTagsToResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddTagsToResourceResponse Source #

Create a value of AddTagsToResourceResponse 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:AddTagsToResourceResponse', addTagsToResourceResponse_httpStatus - The response's http status code.

Response Lenses