We are excited to announce our new API Documentation.
Protected
Updates the comment for a specified traffic policy version.
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 importconst 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",// },// };
UpdateTrafficPolicyCommentCommandInput
UpdateTrafficPolicyCommentCommandOutput
input
response
config
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.
InvalidInput (client fault)
The input is not valid.
NoSuchTrafficPolicy (client fault)
No traffic policy exists with the specified ID.
Route53ServiceException
Base exception class for all service exceptions from Route53 service.
Readonly
Static
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.
Param
UpdateTrafficPolicyCommentCommandInput
Returns
UpdateTrafficPolicyCommentCommandOutput
See
input
shape.response
shape.config
shape.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.