amazonka-mediastore-2.0: Amazon Elemental MediaStore 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.MediaStore.TagResource

Description

Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.

Synopsis

Creating a Request

data TagResource Source #

See: newTagResource smart constructor.

Constructors

TagResource' 

Fields

  • resource :: Text

    The Amazon Resource Name (ARN) for the container.

  • tags :: NonEmpty Tag

    An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.

Instances

Instances details
ToJSON TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

ToHeaders TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

ToQuery TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

AWSRequest TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Associated Types

type AWSResponse TagResource #

Generic TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Associated Types

type Rep TagResource :: Type -> Type #

Read TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Show TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

NFData TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Methods

rnf :: TagResource -> () #

Eq TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Hashable TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

type AWSResponse TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

type Rep TagResource Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

type Rep TagResource = D1 ('MetaData "TagResource" "Amazonka.MediaStore.TagResource" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'False) (C1 ('MetaCons "TagResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty 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:resource:TagResource', tagResource_resource - The Amazon Resource Name (ARN) for the container.

$sel:tags:TagResource', tagResource_tags - An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.

Request Lenses

tagResource_resource :: Lens' TagResource Text Source #

The Amazon Resource Name (ARN) for the container.

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

An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.

Destructuring the Response

data TagResourceResponse Source #

See: newTagResourceResponse smart constructor.

Constructors

TagResourceResponse' 

Fields

Instances

Instances details
Generic TagResourceResponse Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Associated Types

type Rep TagResourceResponse :: Type -> Type #

Read TagResourceResponse Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Show TagResourceResponse Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

NFData TagResourceResponse Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

Methods

rnf :: TagResourceResponse -> () #

Eq TagResourceResponse Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

type Rep TagResourceResponse Source # 
Instance details

Defined in Amazonka.MediaStore.TagResource

type Rep TagResourceResponse = D1 ('MetaData "TagResourceResponse" "Amazonka.MediaStore.TagResource" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'False) (C1 ('MetaCons "TagResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newTagResourceResponse Source #

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

Response Lenses