Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data ChangeTagsForResource = ChangeTagsForResource' {
- removeTagKeys :: Maybe (NonEmpty Text)
- addTags :: Maybe (NonEmpty Tag)
- resourceType :: TagResourceType
- resourceId :: Text
- newChangeTagsForResource :: TagResourceType -> Text -> ChangeTagsForResource
- changeTagsForResource_removeTagKeys :: Lens' ChangeTagsForResource (Maybe (NonEmpty Text))
- changeTagsForResource_addTags :: Lens' ChangeTagsForResource (Maybe (NonEmpty Tag))
- changeTagsForResource_resourceType :: Lens' ChangeTagsForResource TagResourceType
- changeTagsForResource_resourceId :: Lens' ChangeTagsForResource Text
- data ChangeTagsForResourceResponse = ChangeTagsForResourceResponse' {
- httpStatus :: Int
- newChangeTagsForResourceResponse :: Int -> ChangeTagsForResourceResponse
- changeTagsForResourceResponse_httpStatus :: Lens' ChangeTagsForResourceResponse Int
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.
ChangeTagsForResource' | |
|
Instances
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: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.
$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:resourceType:ChangeTagsForResource'
, changeTagsForResource_resourceType
- The type of the resource.
- The resource type for health checks is
healthcheck
. - The resource type for hosted zones is
hostedzone
.
$sel:resourceId:ChangeTagsForResource'
, changeTagsForResource_resourceId
- The ID of the resource for which you want to add, change, or delete
tags.
Request Lenses
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_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_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.
ChangeTagsForResourceResponse' | |
|
Instances
Eq ChangeTagsForResourceResponse Source # | |
Read ChangeTagsForResourceResponse Source # | |
Show ChangeTagsForResourceResponse Source # | |
Defined in Amazonka.Route53.ChangeTagsForResource showsPrec :: Int -> ChangeTagsForResourceResponse -> ShowS # show :: ChangeTagsForResourceResponse -> String # showList :: [ChangeTagsForResourceResponse] -> ShowS # | |
Generic ChangeTagsForResourceResponse Source # | |
NFData ChangeTagsForResourceResponse Source # | |
Defined in Amazonka.Route53.ChangeTagsForResource rnf :: ChangeTagsForResourceResponse -> () # | |
type Rep ChangeTagsForResourceResponse Source # | |
Defined in Amazonka.Route53.ChangeTagsForResource type Rep ChangeTagsForResourceResponse = D1 ('MetaData "ChangeTagsForResourceResponse" "Amazonka.Route53.ChangeTagsForResource" "libZSservicesZSamazonka-route53ZSamazonka-route53" '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
changeTagsForResourceResponse_httpStatus :: Lens' ChangeTagsForResourceResponse Int Source #
The response's http status code.