Amazon.Route53.AmazonRoute53Client.UpdateTrafficPolicyInstance C# (CSharp) Method

UpdateTrafficPolicyInstance() public method

Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.

Send a POST request to the /2013-04-01/trafficpolicyinstance/traffic policy ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest element.

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:

  1. Amazon Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how substantial the differences are between the existing resource record sets and the new resource record sets.

  2. When all of the new resource record sets have been created, Amazon 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.

  3. Amazon Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.

/// 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. /// /// The input is not valid. /// /// No traffic policy exists with the specified ID. /// /// No traffic policy instance exists with the specified ID. /// /// 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 Amazon 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. ///
public UpdateTrafficPolicyInstance ( UpdateTrafficPolicyInstanceRequest request ) : UpdateTrafficPolicyInstanceResponse
request UpdateTrafficPolicyInstanceRequest Container for the necessary parameters to execute the UpdateTrafficPolicyInstance service method.
return UpdateTrafficPolicyInstanceResponse
        public UpdateTrafficPolicyInstanceResponse UpdateTrafficPolicyInstance(UpdateTrafficPolicyInstanceRequest request)
        {
            var marshaller = new UpdateTrafficPolicyInstanceRequestMarshaller();
            var unmarshaller = UpdateTrafficPolicyInstanceResponseUnmarshaller.Instance;

            return Invoke<UpdateTrafficPolicyInstanceRequest,UpdateTrafficPolicyInstanceResponse>(request, marshaller, unmarshaller);
        }
AmazonRoute53Client