Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListTagsForResourceCommandProtected

Lists tags for one health check or hosted zone.

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

Example

Use a bare-bones client and the command you need to make an API call.

import { Route53Client, ListTagsForResourceCommand } from "@aws-sdk/client-route-53"; // ES Modules import
// const { Route53Client, ListTagsForResourceCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
const client = new Route53Client(config);
const input = { // ListTagsForResourceRequest
ResourceType: "healthcheck" || "hostedzone", // required
ResourceId: "STRING_VALUE", // required
};
const command = new ListTagsForResourceCommand(input);
const response = await client.send(command);
// { // ListTagsForResourceResponse
// ResourceTagSet: { // ResourceTagSet
// ResourceType: "healthcheck" || "hostedzone",
// ResourceId: "STRING_VALUE",
// Tags: [ // TagList
// { // Tag
// Key: "STRING_VALUE",
// Value: "STRING_VALUE",
// },
// ],
// },
// };

Param

ListTagsForResourceCommandInput

Returns

ListTagsForResourceCommandOutput

See

Throws

InvalidInput (client fault)

The input is not valid.

Throws

NoSuchHealthCheck (client fault)

No health check exists with the specified ID.

Throws

NoSuchHostedZone (client fault)

No hosted zone exists with the ID that you specified.

Throws

PriorRequestNotComplete (client fault)

If Amazon Route 53 can't process a request before the next request arrives, it will reject subsequent requests for the same hosted zone and return an HTTP 400 error (Bad request). If Route 53 returns this error repeatedly for the same request, we recommend that you wait, in intervals of increasing duration, before you try the request again.

Throws

ThrottlingException (client fault)

The limit on the number of requests per second was exceeded.

Throws

Route53ServiceException

Base exception class for all service exceptions from Route53 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods