paws.compute (version 0.1.0)

ec2_delete_tags: Deletes the specified set of tags from the specified set of resources

Description

Deletes the specified set of tags from the specified set of resources.

Usage

ec2_delete_tags(DryRun, Resources, Tags)

Arguments

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Resources

[required] The IDs of one or more resources, separated by spaces.

Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.

Tags

One or more tags to delete. Specify a tag key and an optional tag value to delete specific tags. If you specify a tag key without a tag value, we delete any tag with this key regardless of its value. If you specify a tag key with an empty string as the tag value, we delete the tag only if its value is an empty string.

If you omit this parameter, we delete all user-defined tags for the specified resources. We do not delete AWS-generated tags (tags that have the aws: prefix).

Request syntax

svc$delete_tags(
  DryRun = TRUE|FALSE,
  Resources = list(
    "string"
  ),
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Details

To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

Examples

Run this code
# NOT RUN {
# This example deletes the tag Stack=test from the specified image.
# }
# NOT RUN {
svc$delete_tags(
  Resources = list(
    "ami-78a54011"
  ),
  Tags = list(
    list(
      Key = "Stack",
      Value = "test"
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab