Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class UpdateTrafficPolicyCommentCommandProtected

Updates the comment for a specified traffic policy version.

Example

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

import { Route53Client, UpdateTrafficPolicyCommentCommand } from "@aws-sdk/client-route-53"; // ES Modules import
// const { Route53Client, UpdateTrafficPolicyCommentCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
const client = new Route53Client(config);
const input = { // UpdateTrafficPolicyCommentRequest
Id: "STRING_VALUE", // required
Version: Number("int"), // required
Comment: "STRING_VALUE", // required
};
const command = new UpdateTrafficPolicyCommentCommand(input);
const response = await client.send(command);
// { // UpdateTrafficPolicyCommentResponse
// TrafficPolicy: { // TrafficPolicy
// Id: "STRING_VALUE", // required
// Version: Number("int"), // required
// Name: "STRING_VALUE", // required
// Type: "SOA" || "A" || "TXT" || "NS" || "CNAME" || "MX" || "NAPTR" || "PTR" || "SRV" || "SPF" || "AAAA" || "CAA" || "DS", // required
// Document: "STRING_VALUE", // required
// Comment: "STRING_VALUE",
// },
// };

Param

UpdateTrafficPolicyCommentCommandInput

Returns

UpdateTrafficPolicyCommentCommandOutput

See

Throws

ConcurrentModification (client fault)

Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request.

Throws

InvalidInput (client fault)

The input is not valid.

Throws

NoSuchTrafficPolicy (client fault)

No traffic policy exists with the specified ID.

Throws

Route53ServiceException

Base exception class for all service exceptions from Route53 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods