libZSservicesZSamazonka-transferZSamazonka-transfer
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.Transfer.TagResource

Description

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.

There is no response returned from this call.

Synopsis

Creating a Request

data TagResource Source #

See: newTagResource smart constructor.

Constructors

TagResource' 

Fields

  • arn :: Text

    An Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a server, user, or role.

  • tags :: NonEmpty Tag

    Key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to user accounts for any purpose.

Instances

Instances details
Eq TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Read TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Show TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Generic TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Associated Types

type Rep TagResource :: Type -> Type #

NFData TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Methods

rnf :: TagResource -> () #

Hashable TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

ToJSON TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

AWSRequest TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Associated Types

type AWSResponse TagResource #

ToHeaders TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

ToQuery TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

type Rep TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

type Rep TagResource = D1 ('MetaData "TagResource" "Amazonka.Transfer.TagResource" "libZSservicesZSamazonka-transferZSamazonka-transfer" 'False) (C1 ('MetaCons "TagResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Tag))))
type AWSResponse TagResource Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

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:arn:TagResource', tagResource_arn - An Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a server, user, or role.

$sel:tags:TagResource', tagResource_tags - Key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to user accounts for any purpose.

Request Lenses

tagResource_arn :: Lens' TagResource Text Source #

An Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a server, user, or role.

tagResource_tags :: Lens' TagResource (NonEmpty Tag) Source #

Key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to user accounts for any purpose.

Destructuring the Response

data TagResourceResponse Source #

See: newTagResourceResponse smart constructor.

Constructors

TagResourceResponse' 

Instances

Instances details
Eq TagResourceResponse Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Read TagResourceResponse Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Show TagResourceResponse Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Generic TagResourceResponse Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Associated Types

type Rep TagResourceResponse :: Type -> Type #

NFData TagResourceResponse Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

Methods

rnf :: TagResourceResponse -> () #

type Rep TagResourceResponse Source # 
Instance details

Defined in Amazonka.Transfer.TagResource

type Rep TagResourceResponse = D1 ('MetaData "TagResourceResponse" "Amazonka.Transfer.TagResource" "libZSservicesZSamazonka-transferZSamazonka-transfer" 'False) (C1 ('MetaCons "TagResourceResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newTagResourceResponse :: TagResourceResponse Source #

Create a value of TagResourceResponse with all optional fields omitted.

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