Skip to content

Change Tags For Resource

route53_change_tags_for_resource R Documentation

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.

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

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.

Value

An empty list.

Request syntax

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

Examples

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

## End(Not run)