paws.networking (version 0.1.6)

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

Description

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

Usage

route53_change_tags_for_resource(ResourceType, ResourceId, AddTags,
  RemoveTagKeys)

Arguments

ResourceType

[required] The type of the resource.

  • The resource type for health checks is healthcheck.

  • The resource type for hosted zones is hostedzone.

ResourceId

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

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.

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.

Request syntax

svc$change_tags_for_resource(
  ResourceType = "healthcheck"|"hostedzone",
  ResourceId = "string",
  AddTags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  RemoveTagKeys = list(
    "string"
  )
)

Details

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

Examples

Run this code
# NOT RUN {
# The following example adds two tags and removes one tag from the hosted
# zone with ID Z3M3LMPEXAMPLE.
# }
# NOT RUN {
svc$change_tags_for_resource(
  AddTags = list(
    list(
      Key = "apex",
      Value = "3874"
    ),
    list(
      Key = "acme",
      Value = "4938"
    )
  ),
  RemoveTagKeys = list(
    "Nadir"
  ),
  ResourceId = "Z3M3LMPEXAMPLE",
  ResourceType = "hostedzone"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab