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 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.
- createTrafficPolicy :: Text -> Text -> CreateTrafficPolicy
- data CreateTrafficPolicy
- ctpComment :: Lens' CreateTrafficPolicy (Maybe Text)
- ctpName :: Lens' CreateTrafficPolicy Text
- ctpDocument :: Lens' CreateTrafficPolicy Text
- createTrafficPolicyResponse :: Int -> TrafficPolicy -> Text -> CreateTrafficPolicyResponse
- data CreateTrafficPolicyResponse
- ctprsResponseStatus :: Lens' CreateTrafficPolicyResponse Int
- ctprsTrafficPolicy :: Lens' CreateTrafficPolicyResponse TrafficPolicy
- ctprsLocation :: Lens' CreateTrafficPolicyResponse Text
Creating a Request
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:
data CreateTrafficPolicy Source
A complex type that contains information about the traffic policy that you want to create.
See: createTrafficPolicy
smart constructor.
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
:: Int | |
-> TrafficPolicy | |
-> Text | |
-> CreateTrafficPolicyResponse |
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:
data CreateTrafficPolicyResponse Source
A complex type that contains the response information for the
CreateTrafficPolicy
request.
See: createTrafficPolicyResponse
smart constructor.
Response Lenses
ctprsResponseStatus :: Lens' CreateTrafficPolicyResponse Int Source
The response status code.
ctprsTrafficPolicy :: Lens' CreateTrafficPolicyResponse TrafficPolicy Source
A complex type that contains settings for the new traffic policy.
ctprsLocation :: Lens' CreateTrafficPolicyResponse Text Source
Undocumented member.