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.
After you submit a UpdateTrafficPolicyInstance
request, there's a brief delay
while RouteĀ 53 creates the resource record sets that are specified in the traffic
policy definition. Use GetTrafficPolicyInstance
with the id
of updated
traffic policy instance confirm that the UpdateTrafficPolicyInstance
request
completed successfully. For more information, see the State
response element.
Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.
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. Route 53 performs the following operations:
Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how significant the differences are between the existing resource record sets and the new resource record sets.
When all of the new resource record sets have been created, Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.
Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.
For .NET Core this operation is only available in asynchronous form. Please refer to UpdateTrafficPolicyInstanceAsync.
Namespace: Amazon.Route53
Assembly: AWSSDK.Route53.dll
Version: 3.x.y.z
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 | The input is not valid. |
NoSuchTrafficPolicyException | No traffic policy exists with the specified ID. |
NoSuchTrafficPolicyInstanceException | No traffic policy instance exists with the specified ID. |
PriorRequestNotCompleteException | 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. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5