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 |
Gets information about a specific traffic policy version.
Send a GET
request to the '/Amazon Route 53 API version/trafficpolicy' resource.
- getTrafficPolicy :: Text -> Natural -> GetTrafficPolicy
- data GetTrafficPolicy
- gtpId :: Lens' GetTrafficPolicy Text
- gtpVersion :: Lens' GetTrafficPolicy Natural
- getTrafficPolicyResponse :: Int -> TrafficPolicy -> GetTrafficPolicyResponse
- data GetTrafficPolicyResponse
- gtprsResponseStatus :: Lens' GetTrafficPolicyResponse Int
- gtprsTrafficPolicy :: Lens' GetTrafficPolicyResponse TrafficPolicy
Creating a Request
Creates a value of GetTrafficPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetTrafficPolicy Source #
Gets information about a specific traffic policy version. To get the information, send a GET request to the /2013-04-01/trafficpolicy resource, and specify the ID and the version of the traffic policy.
See: getTrafficPolicy
smart constructor.
Request Lenses
gtpId :: Lens' GetTrafficPolicy Text Source #
The ID of the traffic policy that you want to get information about.
gtpVersion :: Lens' GetTrafficPolicy Natural Source #
The version number of the traffic policy that you want to get information about.
Destructuring the Response
getTrafficPolicyResponse Source #
Creates a value of GetTrafficPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetTrafficPolicyResponse Source #
A complex type that contains the response information for the request.
See: getTrafficPolicyResponse
smart constructor.
Response Lenses
gtprsResponseStatus :: Lens' GetTrafficPolicyResponse Int Source #
The response status code.
gtprsTrafficPolicy :: Lens' GetTrafficPolicyResponse TrafficPolicy Source #
A complex type that contains settings for the specified traffic policy.