Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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).
- 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:
ctpComment
- (Optional) Any comments that you want to include about the traffic policy.ctpName
- The name of the traffic policy.ctpDocument
- The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format .
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 #
(Optional) Any comments that you want to include about the traffic policy.
ctpDocument :: Lens' CreateTrafficPolicy Text Source #
The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document 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:
ctprsResponseStatus
- -- | The response status code.ctprsTrafficPolicy
- A complex type that contains settings for the new traffic policy.ctprsLocation
- A unique URL that represents a new traffic policy.
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 #
A unique URL that represents a new traffic policy.