Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
'/Route 53 API version/trafficpolicyinstance' resource. The request
body must include a document with a CreateTrafficPolicyRequest
element. The response returns the CreateTrafficPolicyInstanceResponse
element, which contains information about the traffic policy instance.
- createTrafficPolicyInstance :: Text -> Text -> Natural -> Text -> Natural -> CreateTrafficPolicyInstance
- data CreateTrafficPolicyInstance
- ctpiHostedZoneId :: Lens' CreateTrafficPolicyInstance Text
- ctpiName :: Lens' CreateTrafficPolicyInstance Text
- ctpiTTL :: Lens' CreateTrafficPolicyInstance Natural
- ctpiTrafficPolicyId :: Lens' CreateTrafficPolicyInstance Text
- ctpiTrafficPolicyVersion :: Lens' CreateTrafficPolicyInstance Natural
- createTrafficPolicyInstanceResponse :: Int -> TrafficPolicyInstance -> Text -> CreateTrafficPolicyInstanceResponse
- data CreateTrafficPolicyInstanceResponse
- ctpirsResponseStatus :: Lens' CreateTrafficPolicyInstanceResponse Int
- ctpirsTrafficPolicyInstance :: Lens' CreateTrafficPolicyInstanceResponse TrafficPolicyInstance
- ctpirsLocation :: Lens' CreateTrafficPolicyInstanceResponse Text
Creating a Request
createTrafficPolicyInstance Source
Creates a value of CreateTrafficPolicyInstance
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateTrafficPolicyInstance Source
A complex type that contains information about the resource record sets that you want to create based on a specified traffic policy.
See: createTrafficPolicyInstance
smart constructor.
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
createTrafficPolicyInstanceResponse Source
Creates a value of CreateTrafficPolicyInstanceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateTrafficPolicyInstanceResponse Source
A complex type that contains the response information for the
CreateTrafficPolicyInstance
request.
See: createTrafficPolicyInstanceResponse
smart constructor.
Response Lenses
ctpirsResponseStatus :: Lens' CreateTrafficPolicyInstanceResponse Int Source
The response status code.
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.