AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Amazon Route 53 performs the following operations:
To update a traffic policy instance, send a POST
request to the
/Route 53 API version/trafficpolicyinstance/traffic policy IDresource. The request body must include a document with an
UpdateTrafficPolicyInstanceRequest
element.
Namespace: Amazon.Route53
Assembly: AWSSDK.dll
Version: (assembly version)
public abstract UpdateTrafficPolicyInstanceResponse UpdateTrafficPolicyInstance( UpdateTrafficPolicyInstanceRequest request )
Container for the necessary parameters to execute the UpdateTrafficPolicyInstance service method.
Exception | Condition |
---|---|
ConflictingTypesException | You tried to update a traffic policy instance by using a traffic policy version that has a different DNS type than the current type for the instance. You specified the type in the JSON document in the CreateTrafficPolicy or CreateTrafficPolicyVersionrequest. |
InvalidInputException | Some value specified in the request is invalid or the XML document is malformed. |
NoSuchTrafficPolicyException | No traffic policy exists with the specified ID. |
NoSuchTrafficPolicyInstanceException | No traffic policy instance exists with the specified ID. |
PriorRequestNotCompleteException | The request was rejected because Amazon Route 53 was still processing a prior request. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5