libZSservicesZSamazonka-apigatewayZSamazonka-apigateway
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.APIGateway.TagResource

Description

Adds or updates a tag on a given resource.

Synopsis

Creating a Request

data TagResource Source #

Adds or updates a tag on a given resource.

See: newTagResource smart constructor.

Constructors

TagResource' 

Fields

  • resourceArn :: Text
    Required
    The ARN of a resource that can be tagged.
  • tags :: HashMap Text Text
    Required
    The key-value map of strings. The valid character set is
    a-zA-Z+-=._:/
    . The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

Instances

Instances details
Eq TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Read TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Show TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Generic TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Associated Types

type Rep TagResource :: Type -> Type #

NFData TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Methods

rnf :: TagResource -> () #

Hashable TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

ToJSON TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

AWSRequest TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Associated Types

type AWSResponse TagResource #

ToHeaders TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

ToQuery TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

type Rep TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

type Rep TagResource = D1 ('MetaData "TagResource" "Amazonka.APIGateway.TagResource" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "TagResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text))))
type AWSResponse TagResource Source # 
Instance details

Defined in Amazonka.APIGateway.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:resourceArn:TagResource', tagResource_resourceArn - [Required] The ARN of a resource that can be tagged.

$sel:tags:TagResource', tagResource_tags - [Required] The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

Request Lenses

tagResource_resourceArn :: Lens' TagResource Text Source #

Required
The ARN of a resource that can be tagged.

tagResource_tags :: Lens' TagResource (HashMap Text Text) Source #

Required
The key-value map of strings. The valid character set is
a-zA-Z+-=._:/
. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

Destructuring the Response

data TagResourceResponse Source #

See: newTagResourceResponse smart constructor.

Constructors

TagResourceResponse' 

Instances

Instances details
Eq TagResourceResponse Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Read TagResourceResponse Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Show TagResourceResponse Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Generic TagResourceResponse Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Associated Types

type Rep TagResourceResponse :: Type -> Type #

NFData TagResourceResponse Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

Methods

rnf :: TagResourceResponse -> () #

type Rep TagResourceResponse Source # 
Instance details

Defined in Amazonka.APIGateway.TagResource

type Rep TagResourceResponse = D1 ('MetaData "TagResourceResponse" "Amazonka.APIGateway.TagResource" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" '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.