amazonka-route53-1.4.0: Amazon Route 53 SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Route53.CreateTrafficPolicyVersion

Contents

Description

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).

To create a new version, send a POST request to the '/Route 53 API version/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.

Synopsis

Creating a Request

createTrafficPolicyVersion Source

Creates a value of CreateTrafficPolicyVersion with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

ctpvComment :: Lens' CreateTrafficPolicyVersion (Maybe Text) Source

Any comments that you want to include about the new traffic policy version.

ctpvId :: Lens' CreateTrafficPolicyVersion Text Source

The ID of the traffic policy for which you want to create a new version.

ctpvDocument :: Lens' CreateTrafficPolicyVersion Text Source

The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.

Destructuring the Response

createTrafficPolicyVersionResponse Source

Creates a value of CreateTrafficPolicyVersionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

ctpvrsTrafficPolicy :: Lens' CreateTrafficPolicyVersionResponse TrafficPolicy Source

A complex type that contains settings for the new version of the traffic policy.