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

CreateTrafficPolicy() public méthode

Creates a traffic policy, which you use to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).

Send a POST request to the /2013-04-01/trafficpolicy resource. The request body must include a document with a CreateTrafficPolicyRequest element. The response includes the CreateTrafficPolicyResponse element, which contains information about the new traffic policy.

/// The input is not valid. /// /// The format of the traffic policy document that you specified in the Document /// element is invalid. /// /// You've created the maximum number of traffic policies that can be created for the /// current AWS account. You can request an increase to the limit on the Contact /// Us page. /// /// A traffic policy that has the same value for Name already exists. ///
public CreateTrafficPolicy ( CreateTrafficPolicyRequest request ) : CreateTrafficPolicyResponse
request CreateTrafficPolicyRequest Container for the necessary parameters to execute the CreateTrafficPolicy service method.
Résultat CreateTrafficPolicyResponse
        public CreateTrafficPolicyResponse CreateTrafficPolicy(CreateTrafficPolicyRequest request)
        {
            var marshaller = new CreateTrafficPolicyRequestMarshaller();
            var unmarshaller = CreateTrafficPolicyResponseUnmarshaller.Instance;

            return Invoke<CreateTrafficPolicyRequest,CreateTrafficPolicyResponse>(request, marshaller, unmarshaller);
        }
AmazonRoute53Client