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 specified traffic policy instance.
After you submit a CreateTrafficPolicyInstance
or an
UpdateTrafficPolicyInstance
request, there's a brief delay while
Amazon Route 53 creates the resource record sets that are specified in
the traffic policy definition. For more information, see the State
response element.
In the Route 53 console, traffic policy instances are known as policy records.
Synopsis
- data GetTrafficPolicyInstance = GetTrafficPolicyInstance' {}
- newGetTrafficPolicyInstance :: Text -> GetTrafficPolicyInstance
- getTrafficPolicyInstance_id :: Lens' GetTrafficPolicyInstance Text
- data GetTrafficPolicyInstanceResponse = GetTrafficPolicyInstanceResponse' {}
- newGetTrafficPolicyInstanceResponse :: Int -> TrafficPolicyInstance -> GetTrafficPolicyInstanceResponse
- getTrafficPolicyInstanceResponse_httpStatus :: Lens' GetTrafficPolicyInstanceResponse Int
- getTrafficPolicyInstanceResponse_trafficPolicyInstance :: Lens' GetTrafficPolicyInstanceResponse TrafficPolicyInstance
Creating a Request
data GetTrafficPolicyInstance Source #
Gets information about a specified traffic policy instance.
See: newGetTrafficPolicyInstance
smart constructor.
Instances
newGetTrafficPolicyInstance Source #
Create a value of GetTrafficPolicyInstance
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:GetTrafficPolicyInstance'
, getTrafficPolicyInstance_id
- The ID of the traffic policy instance that you want to get information
about.
Request Lenses
getTrafficPolicyInstance_id :: Lens' GetTrafficPolicyInstance Text Source #
The ID of the traffic policy instance that you want to get information about.
Destructuring the Response
data GetTrafficPolicyInstanceResponse Source #
A complex type that contains information about the resource record sets that Amazon Route 53 created based on a specified traffic policy.
See: newGetTrafficPolicyInstanceResponse
smart constructor.
GetTrafficPolicyInstanceResponse' | |
|
Instances
newGetTrafficPolicyInstanceResponse Source #
:: Int | |
-> TrafficPolicyInstance |
|
-> GetTrafficPolicyInstanceResponse |
Create a value of GetTrafficPolicyInstanceResponse
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:GetTrafficPolicyInstanceResponse'
, getTrafficPolicyInstanceResponse_httpStatus
- The response's http status code.
$sel:trafficPolicyInstance:GetTrafficPolicyInstanceResponse'
, getTrafficPolicyInstanceResponse_trafficPolicyInstance
- A complex type that contains settings for the traffic policy instance.
Response Lenses
getTrafficPolicyInstanceResponse_httpStatus :: Lens' GetTrafficPolicyInstanceResponse Int Source #
The response's http status code.
getTrafficPolicyInstanceResponse_trafficPolicyInstance :: Lens' GetTrafficPolicyInstanceResponse TrafficPolicyInstance Source #
A complex type that contains settings for the traffic policy instance.