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 new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version.
You use traffic policies 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 new version, send a POST
request to the
'/Route 53 API version/trafficpolicy/' resource. The request body
includes a document with a CreateTrafficPolicyVersionRequest
element.
The response returns the CreateTrafficPolicyVersionResponse
element,
which contains information about the new version of the traffic policy.
- createTrafficPolicyVersion :: Text -> Text -> CreateTrafficPolicyVersion
- data CreateTrafficPolicyVersion
- ctpvComment :: Lens' CreateTrafficPolicyVersion (Maybe Text)
- ctpvId :: Lens' CreateTrafficPolicyVersion Text
- ctpvDocument :: Lens' CreateTrafficPolicyVersion Text
- createTrafficPolicyVersionResponse :: Int -> TrafficPolicy -> Text -> CreateTrafficPolicyVersionResponse
- data CreateTrafficPolicyVersionResponse
- ctpvrsResponseStatus :: Lens' CreateTrafficPolicyVersionResponse Int
- ctpvrsTrafficPolicy :: Lens' CreateTrafficPolicyVersionResponse TrafficPolicy
- ctpvrsLocation :: Lens' CreateTrafficPolicyVersionResponse Text
Creating a Request
createTrafficPolicyVersion Source #
Creates a value of CreateTrafficPolicyVersion
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateTrafficPolicyVersion Source #
A complex type that contains information about the traffic policy for which you want to create a new version.
See: createTrafficPolicyVersion
smart constructor.
Request Lenses
ctpvComment :: Lens' CreateTrafficPolicyVersion (Maybe Text) Source #
Any comments that you want to include about the new traffic policy version.
ctpvId :: Lens' CreateTrafficPolicyVersion Text Source #
The ID of the traffic policy for which you want to create a new version.
ctpvDocument :: Lens' CreateTrafficPolicyVersion Text Source #
The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.
Destructuring the Response
createTrafficPolicyVersionResponse Source #
Creates a value of CreateTrafficPolicyVersionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateTrafficPolicyVersionResponse Source #
A complex type that contains the response information for the
CreateTrafficPolicyVersion
request.
See: createTrafficPolicyVersionResponse
smart constructor.
Response Lenses
ctpvrsResponseStatus :: Lens' CreateTrafficPolicyVersionResponse Int Source #
The response status code.
ctpvrsTrafficPolicy :: Lens' CreateTrafficPolicyVersionResponse TrafficPolicy Source #
A complex type that contains settings for the new version of the traffic policy.
ctpvrsLocation :: Lens' CreateTrafficPolicyVersionResponse Text Source #
Undocumented member.