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 |
Gets information about a specific traffic policy version.
For information about how of deleting a traffic policy affects the
response from GetTrafficPolicy
, see
DeleteTrafficPolicy.
Synopsis
- data GetTrafficPolicy = GetTrafficPolicy' {}
- newGetTrafficPolicy :: Text -> Natural -> GetTrafficPolicy
- getTrafficPolicy_id :: Lens' GetTrafficPolicy Text
- getTrafficPolicy_version :: Lens' GetTrafficPolicy Natural
- data GetTrafficPolicyResponse = GetTrafficPolicyResponse' {}
- newGetTrafficPolicyResponse :: Int -> TrafficPolicy -> GetTrafficPolicyResponse
- getTrafficPolicyResponse_httpStatus :: Lens' GetTrafficPolicyResponse Int
- getTrafficPolicyResponse_trafficPolicy :: Lens' GetTrafficPolicyResponse TrafficPolicy
Creating a Request
data GetTrafficPolicy Source #
Gets information about a specific traffic policy version.
See: newGetTrafficPolicy
smart constructor.
Instances
Create a value of GetTrafficPolicy
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:id:GetTrafficPolicy'
, getTrafficPolicy_id
- The ID of the traffic policy that you want to get information about.
$sel:version:GetTrafficPolicy'
, getTrafficPolicy_version
- The version number of the traffic policy that you want to get
information about.
Request Lenses
getTrafficPolicy_id :: Lens' GetTrafficPolicy Text Source #
The ID of the traffic policy that you want to get information about.
getTrafficPolicy_version :: Lens' GetTrafficPolicy Natural Source #
The version number of the traffic policy that you want to get information about.
Destructuring the Response
data GetTrafficPolicyResponse Source #
A complex type that contains the response information for the request.
See: newGetTrafficPolicyResponse
smart constructor.
GetTrafficPolicyResponse' | |
|
Instances
newGetTrafficPolicyResponse Source #
Create a value of GetTrafficPolicyResponse
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:GetTrafficPolicyResponse'
, getTrafficPolicyResponse_httpStatus
- The response's http status code.
$sel:trafficPolicy:GetTrafficPolicyResponse'
, getTrafficPolicyResponse_trafficPolicy
- A complex type that contains settings for the specified traffic policy.
Response Lenses
getTrafficPolicyResponse_httpStatus :: Lens' GetTrafficPolicyResponse Int Source #
The response's http status code.
getTrafficPolicyResponse_trafficPolicy :: Lens' GetTrafficPolicyResponse TrafficPolicy Source #
A complex type that contains settings for the specified traffic policy.