libZSservicesZSamazonka-efsZSamazonka-efs
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.EFS.TagResource

Description

Creates a tag for an EFS resource. You can create tags for EFS file systems and access points using this API operation.

This operation requires permissions for the elasticfilesystem:TagResource action.

Synopsis

Creating a Request

data TagResource Source #

See: newTagResource smart constructor.

Constructors

TagResource' 

Fields

  • resourceId :: Text

    The ID specifying the EFS resource that you want to create a tag for.

  • tags :: [Tag]

    An array of Tag objects to add. Each Tag object is a key-value pair.

Instances

Instances details
Eq TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

Read TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

Show TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

Generic TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

Associated Types

type Rep TagResource :: Type -> Type #

NFData TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

Methods

rnf :: TagResource -> () #

Hashable TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

ToJSON TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

AWSRequest TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

Associated Types

type AWSResponse TagResource #

ToHeaders TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

ToQuery TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

type Rep TagResource Source # 
Instance details

Defined in Amazonka.EFS.TagResource

type Rep TagResource = D1 ('MetaData "TagResource" "Amazonka.EFS.TagResource" "libZSservicesZSamazonka-efsZSamazonka-efs" 'False) (C1 ('MetaCons "TagResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])))
type AWSResponse TagResource Source # 
Instance details

Defined in Amazonka.EFS.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:resourceId:TagResource', tagResource_resourceId - The ID specifying the EFS resource that you want to create a tag for.

$sel:tags:TagResource', tagResource_tags - An array of Tag objects to add. Each Tag object is a key-value pair.

Request Lenses

tagResource_resourceId :: Lens' TagResource Text Source #

The ID specifying the EFS resource that you want to create a tag for.

tagResource_tags :: Lens' TagResource [Tag] Source #

An array of Tag objects to add. Each Tag object is a key-value pair.

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.