Copyright | (c) 2013-2021 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 |
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).
Synopsis
- data CreateTrafficPolicy = CreateTrafficPolicy' {}
- newCreateTrafficPolicy :: Text -> Text -> CreateTrafficPolicy
- createTrafficPolicy_comment :: Lens' CreateTrafficPolicy (Maybe Text)
- createTrafficPolicy_name :: Lens' CreateTrafficPolicy Text
- createTrafficPolicy_document :: Lens' CreateTrafficPolicy Text
- data CreateTrafficPolicyResponse = CreateTrafficPolicyResponse' {}
- newCreateTrafficPolicyResponse :: Int -> TrafficPolicy -> Text -> CreateTrafficPolicyResponse
- createTrafficPolicyResponse_httpStatus :: Lens' CreateTrafficPolicyResponse Int
- createTrafficPolicyResponse_trafficPolicy :: Lens' CreateTrafficPolicyResponse TrafficPolicy
- createTrafficPolicyResponse_location :: Lens' CreateTrafficPolicyResponse Text
Creating a Request
data CreateTrafficPolicy Source #
A complex type that contains information about the traffic policy that you want to create.
See: newCreateTrafficPolicy
smart constructor.
Instances
newCreateTrafficPolicy Source #
:: Text | |
-> Text | |
-> CreateTrafficPolicy |
Create a value of CreateTrafficPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:comment:CreateTrafficPolicy'
, createTrafficPolicy_comment
- (Optional) Any comments that you want to include about the traffic
policy.
$sel:name:CreateTrafficPolicy'
, createTrafficPolicy_name
- The name of the traffic policy.
$sel:document:CreateTrafficPolicy'
, createTrafficPolicy_document
- The definition of this traffic policy in JSON format. For more
information, see
Traffic Policy Document Format.
Request Lenses
createTrafficPolicy_comment :: Lens' CreateTrafficPolicy (Maybe Text) Source #
(Optional) Any comments that you want to include about the traffic policy.
createTrafficPolicy_name :: Lens' CreateTrafficPolicy Text Source #
The name of the traffic policy.
createTrafficPolicy_document :: Lens' CreateTrafficPolicy Text Source #
The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.
Destructuring the Response
data CreateTrafficPolicyResponse Source #
A complex type that contains the response information for the
CreateTrafficPolicy
request.
See: newCreateTrafficPolicyResponse
smart constructor.
CreateTrafficPolicyResponse' | |
|
Instances
newCreateTrafficPolicyResponse Source #
:: Int | |
-> TrafficPolicy | |
-> Text | |
-> CreateTrafficPolicyResponse |
Create a value of CreateTrafficPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateTrafficPolicyResponse'
, createTrafficPolicyResponse_httpStatus
- The response's http status code.
$sel:trafficPolicy:CreateTrafficPolicyResponse'
, createTrafficPolicyResponse_trafficPolicy
- A complex type that contains settings for the new traffic policy.
$sel:location:CreateTrafficPolicyResponse'
, createTrafficPolicyResponse_location
- A unique URL that represents a new traffic policy.
Response Lenses
createTrafficPolicyResponse_httpStatus :: Lens' CreateTrafficPolicyResponse Int Source #
The response's http status code.
createTrafficPolicyResponse_trafficPolicy :: Lens' CreateTrafficPolicyResponse TrafficPolicy Source #
A complex type that contains settings for the new traffic policy.
createTrafficPolicyResponse_location :: Lens' CreateTrafficPolicyResponse Text Source #
A unique URL that represents a new traffic policy.