paws.compute (version 0.1.0)

ec2_describe_tags: Describes one or more of the tags for your EC2 resources

Description

Describes one or more of the tags for your EC2 resources.

Usage

ec2_describe_tags(DryRun, Filters, MaxResults, NextToken)

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.

Filters

One or more filters.

  • key - The tag key.

  • resource-id - The ID of the resource.

  • resource-type - The resource type (customer-gateway \| dedicated-host \| dhcp-options \| elastic-ip \| fleet \| fpga-image \| image \| instance \| host-reservation \| internet-gateway \| launch-template \| natgateway \| network-acl \| network-interface \| reserved-instances \| route-table \| security-group \| snapshot \| spot-instances-request \| subnet \| volume \| vpc \| vpc-peering-connection \| vpn-connection \| vpn-gateway).

  • tag:\<key\> - The key/value combination of the tag. For example, specify "tag:Owner" for the filter name and "TeamA" for the filter value to find resources with the tag "Owner=TeamA".

  • value - The tag value.

MaxResults

The maximum number of results to return in a single call. This value can be between 5 and 1000. To retrieve the remaining results, make another call with the returned NextToken value.

NextToken

The token to retrieve the next page of results.

Request syntax

svc$describe_tags(
  DryRun = TRUE|FALSE,
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  MaxResults = 123,
  NextToken = "string"
)

Details

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 describes the tags for the specified instance.
# }
# NOT RUN {
svc$describe_tags(
  Filters = list(
    list(
      Name = "resource-id",
      Values = list(
        "i-1234567890abcdef8"
      )
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab