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

Contents

Description

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

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

Synopsis

Creating a Request

createTrafficPolicy Source

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

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

Request Lenses

ctpComment :: Lens' CreateTrafficPolicy (Maybe Text) Source

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

ctpName :: Lens' CreateTrafficPolicy Text Source

The name of the traffic policy.

ctpDocument :: Lens' CreateTrafficPolicy Text Source

The definition of this traffic policy in JSON format.

Destructuring the Response

createTrafficPolicyResponse Source

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

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

Response Lenses

ctprsTrafficPolicy :: Lens' CreateTrafficPolicyResponse TrafficPolicy Source

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