Amazon.Route53.AmazonRoute53Client.CreateTrafficPolicyVersion C# (CSharp) Méthode

CreateTrafficPolicyVersion() public méthode

Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version. You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com). You can create a maximum of 1000 versions of a traffic policy. If you reach the limit and need to create another version, you'll need to start a new traffic policy.

Send a POST request to the /2013-04-01/trafficpolicy/ resource. The request body includes a document with a CreateTrafficPolicyVersionRequest element. The response returns the CreateTrafficPolicyVersionResponse element, which contains information about the new version of the traffic policy.

/// Another user submitted a request to update the object at the same time that you did. /// Retry the request. /// /// The input is not valid. /// /// The format of the traffic policy document that you specified in the Document /// element is invalid. /// /// No traffic policy exists with the specified ID. ///
public CreateTrafficPolicyVersion ( CreateTrafficPolicyVersionRequest request ) : CreateTrafficPolicyVersionResponse
request CreateTrafficPolicyVersionRequest Container for the necessary parameters to execute the CreateTrafficPolicyVersion service method.
Résultat CreateTrafficPolicyVersionResponse
        public CreateTrafficPolicyVersionResponse CreateTrafficPolicyVersion(CreateTrafficPolicyVersionRequest request)
        {
            var marshaller = new CreateTrafficPolicyVersionRequestMarshaller();
            var unmarshaller = CreateTrafficPolicyVersionResponseUnmarshaller.Instance;

            return Invoke<CreateTrafficPolicyVersionRequest,CreateTrafficPolicyVersionResponse>(request, marshaller, unmarshaller);
        }
AmazonRoute53Client