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 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.
- createTrafficPolicyInstance :: ResourceId -> Text -> Natural -> Text -> Natural -> CreateTrafficPolicyInstance
- data CreateTrafficPolicyInstance
- ctpiHostedZoneId :: Lens' CreateTrafficPolicyInstance ResourceId
- 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 #
:: ResourceId | |
-> Text | |
-> Natural | |
-> Text | |
-> Natural | |
-> CreateTrafficPolicyInstance |
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:
ctpiHostedZoneId
- 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
- 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
- (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.ctpiTrafficPolicyId
- The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.ctpiTrafficPolicyVersion
- The version of the traffic policy that you want to use to create resource record sets in the specified hosted zone.
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 ResourceId 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 #
(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.
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:
ctpirsResponseStatus
- -- | The response status code.ctpirsTrafficPolicyInstance
- A complex type that contains settings for the new traffic policy instance.ctpirsLocation
- A unique URL that represents a new traffic policy instance.
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.