amazonka-route53-1.3.7: Amazon Route 53 SDK.

Copyright(c) 2013-2015 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.CreateTrafficPolicyInstance

Contents

Description

Creates resource record sets in a specified hosted zone based on the settings in a specified traffic policy version. In addition, CreateTrafficPolicyInstance associates the resource record sets with a specified domain name (such as example.com) or subdomain name (such as www.example.com). Amazon Route 53 responds to DNS queries for the domain or subdomain name by using the resource record sets that CreateTrafficPolicyInstance created.

To create a traffic policy instance, send a POST request to the '2013-04-01\/trafficpolicyinstance' resource. The request body must include an XML document with a CreateTrafficPolicyRequest element. The response returns the CreateTrafficPolicyInstanceResponse element, which contains information about the traffic policy instance.

See: AWS API Reference for CreateTrafficPolicyInstance.

Synopsis

Creating a Request

Request Lenses

ctpiHostedZoneId :: Lens' CreateTrafficPolicyInstance Text Source

The ID of the hosted zone in which you want Amazon Route 53 to create resource record sets by using the configuration in a traffic policy.

ctpiName :: Lens' CreateTrafficPolicyInstance Text Source

The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Amazon Route 53 creates for this traffic policy instance.

ctpiTTL :: Lens' CreateTrafficPolicyInstance Natural Source

The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it creates in the specified hosted zone.

ctpiTrafficPolicyId :: Lens' CreateTrafficPolicyInstance Text Source

The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

ctpiTrafficPolicyVersion :: Lens' CreateTrafficPolicyInstance Natural Source

The version of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

Destructuring the Response

Response Lenses

ctpirsTrafficPolicyInstance :: Lens' CreateTrafficPolicyInstanceResponse TrafficPolicyInstance Source

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

ctpirsLocation :: Lens' CreateTrafficPolicyInstanceResponse Text Source

A unique URL that represents a new traffic policy instance.