amazonka-route53-2.0: Amazon Route 53 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.Route53.ChangeTagsForResource

Description

Adds, edits, or deletes tags for a health check or a hosted zone.

For information about using tags for cost allocation, see Using Cost Allocation Tags in the Billing and Cost Management User Guide.

Synopsis

Creating a Request

data ChangeTagsForResource Source #

A complex type that contains information about the tags that you want to add, edit, or delete.

See: newChangeTagsForResource smart constructor.

Constructors

ChangeTagsForResource' 

Fields

  • addTags :: Maybe (NonEmpty Tag)

    A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

    You can add a maximum of 10 tags to a health check or a hosted zone.

  • removeTagKeys :: Maybe (NonEmpty Text)

    A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.

  • resourceType :: TagResourceType

    The type of the resource.

    • The resource type for health checks is healthcheck.
    • The resource type for hosted zones is hostedzone.
  • resourceId :: Text

    The ID of the resource for which you want to add, change, or delete tags.

Instances

Instances details
ToHeaders ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

ToPath ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

ToQuery ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

ToElement ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

ToXML ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

AWSRequest ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

Associated Types

type AWSResponse ChangeTagsForResource #

Generic ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

Associated Types

type Rep ChangeTagsForResource :: Type -> Type #

Read ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

Show ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

NFData ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

Methods

rnf :: ChangeTagsForResource -> () #

Eq ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

Hashable ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

type AWSResponse ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

type Rep ChangeTagsForResource Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

type Rep ChangeTagsForResource = D1 ('MetaData "ChangeTagsForResource" "Amazonka.Route53.ChangeTagsForResource" "amazonka-route53-2.0-8wP357MyuPX6rh87d4wklb" 'False) (C1 ('MetaCons "ChangeTagsForResource'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "addTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: S1 ('MetaSel ('Just "removeTagKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TagResourceType) :*: S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newChangeTagsForResource Source #

Create a value of ChangeTagsForResource 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:addTags:ChangeTagsForResource', changeTagsForResource_addTags - A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

You can add a maximum of 10 tags to a health check or a hosted zone.

$sel:removeTagKeys:ChangeTagsForResource', changeTagsForResource_removeTagKeys - A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.

ChangeTagsForResource, changeTagsForResource_resourceType - The type of the resource.

  • The resource type for health checks is healthcheck.
  • The resource type for hosted zones is hostedzone.

ChangeTagsForResource, changeTagsForResource_resourceId - The ID of the resource for which you want to add, change, or delete tags.

Request Lenses

changeTagsForResource_addTags :: Lens' ChangeTagsForResource (Maybe (NonEmpty Tag)) Source #

A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

You can add a maximum of 10 tags to a health check or a hosted zone.

changeTagsForResource_removeTagKeys :: Lens' ChangeTagsForResource (Maybe (NonEmpty Text)) Source #

A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.

changeTagsForResource_resourceType :: Lens' ChangeTagsForResource TagResourceType Source #

The type of the resource.

  • The resource type for health checks is healthcheck.
  • The resource type for hosted zones is hostedzone.

changeTagsForResource_resourceId :: Lens' ChangeTagsForResource Text Source #

The ID of the resource for which you want to add, change, or delete tags.

Destructuring the Response

data ChangeTagsForResourceResponse Source #

Empty response for the request.

See: newChangeTagsForResourceResponse smart constructor.

Constructors

ChangeTagsForResourceResponse' 

Fields

Instances

Instances details
Generic ChangeTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

Associated Types

type Rep ChangeTagsForResourceResponse :: Type -> Type #

Read ChangeTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

Show ChangeTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

NFData ChangeTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

Eq ChangeTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

type Rep ChangeTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Route53.ChangeTagsForResource

type Rep ChangeTagsForResourceResponse = D1 ('MetaData "ChangeTagsForResourceResponse" "Amazonka.Route53.ChangeTagsForResource" "amazonka-route53-2.0-8wP357MyuPX6rh87d4wklb" 'False) (C1 ('MetaCons "ChangeTagsForResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newChangeTagsForResourceResponse Source #

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

Response Lenses