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 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.
Synopsis
- data CreateTrafficPolicyInstance = CreateTrafficPolicyInstance' {}
- newCreateTrafficPolicyInstance :: ResourceId -> Text -> Natural -> Text -> Natural -> CreateTrafficPolicyInstance
- createTrafficPolicyInstance_hostedZoneId :: Lens' CreateTrafficPolicyInstance ResourceId
- createTrafficPolicyInstance_name :: Lens' CreateTrafficPolicyInstance Text
- createTrafficPolicyInstance_ttl :: Lens' CreateTrafficPolicyInstance Natural
- createTrafficPolicyInstance_trafficPolicyId :: Lens' CreateTrafficPolicyInstance Text
- createTrafficPolicyInstance_trafficPolicyVersion :: Lens' CreateTrafficPolicyInstance Natural
- data CreateTrafficPolicyInstanceResponse = CreateTrafficPolicyInstanceResponse' {}
- newCreateTrafficPolicyInstanceResponse :: Int -> TrafficPolicyInstance -> Text -> CreateTrafficPolicyInstanceResponse
- createTrafficPolicyInstanceResponse_httpStatus :: Lens' CreateTrafficPolicyInstanceResponse Int
- createTrafficPolicyInstanceResponse_trafficPolicyInstance :: Lens' CreateTrafficPolicyInstanceResponse TrafficPolicyInstance
- createTrafficPolicyInstanceResponse_location :: Lens' CreateTrafficPolicyInstanceResponse Text
Creating a Request
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: newCreateTrafficPolicyInstance
smart constructor.
CreateTrafficPolicyInstance' | |
|
Instances
newCreateTrafficPolicyInstance Source #
:: ResourceId | |
-> Text | |
-> Natural | |
-> Text | |
-> Natural | |
-> CreateTrafficPolicyInstance |
Create a value of CreateTrafficPolicyInstance
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:hostedZoneId:CreateTrafficPolicyInstance'
, createTrafficPolicyInstance_hostedZoneId
- The ID of the hosted zone that you want Amazon Route 53 to create
resource record sets in by using the configuration in a traffic policy.
$sel:name:CreateTrafficPolicyInstance'
, createTrafficPolicyInstance_name
- 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 Route 53 creates for this traffic
policy instance.
$sel:ttl:CreateTrafficPolicyInstance'
, createTrafficPolicyInstance_ttl
- (Optional) 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.
$sel:trafficPolicyId:CreateTrafficPolicyInstance'
, createTrafficPolicyInstance_trafficPolicyId
- The ID of the traffic policy that you want to use to create resource
record sets in the specified hosted zone.
$sel:trafficPolicyVersion:CreateTrafficPolicyInstance'
, createTrafficPolicyInstance_trafficPolicyVersion
- The version of the traffic policy that you want to use to create
resource record sets in the specified hosted zone.
Request Lenses
createTrafficPolicyInstance_hostedZoneId :: Lens' CreateTrafficPolicyInstance ResourceId Source #
The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy.
createTrafficPolicyInstance_name :: 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 Route 53 creates for this traffic policy instance.
createTrafficPolicyInstance_ttl :: Lens' CreateTrafficPolicyInstance Natural Source #
(Optional) 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.
createTrafficPolicyInstance_trafficPolicyId :: 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.
createTrafficPolicyInstance_trafficPolicyVersion :: 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
data CreateTrafficPolicyInstanceResponse Source #
A complex type that contains the response information for the
CreateTrafficPolicyInstance
request.
See: newCreateTrafficPolicyInstanceResponse
smart constructor.
CreateTrafficPolicyInstanceResponse' | |
|
Instances
newCreateTrafficPolicyInstanceResponse Source #
:: Int | |
-> TrafficPolicyInstance |
|
-> Text | |
-> CreateTrafficPolicyInstanceResponse |
Create a value of CreateTrafficPolicyInstanceResponse
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:CreateTrafficPolicyInstanceResponse'
, createTrafficPolicyInstanceResponse_httpStatus
- The response's http status code.
$sel:trafficPolicyInstance:CreateTrafficPolicyInstanceResponse'
, createTrafficPolicyInstanceResponse_trafficPolicyInstance
- A complex type that contains settings for the new traffic policy
instance.
$sel:location:CreateTrafficPolicyInstanceResponse'
, createTrafficPolicyInstanceResponse_location
- A unique URL that represents a new traffic policy instance.
Response Lenses
createTrafficPolicyInstanceResponse_httpStatus :: Lens' CreateTrafficPolicyInstanceResponse Int Source #
The response's http status code.
createTrafficPolicyInstanceResponse_trafficPolicyInstance :: Lens' CreateTrafficPolicyInstanceResponse TrafficPolicyInstance Source #
A complex type that contains settings for the new traffic policy instance.
createTrafficPolicyInstanceResponse_location :: Lens' CreateTrafficPolicyInstanceResponse Text Source #
A unique URL that represents a new traffic policy instance.