| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lightsail.GetStaticIp
Description
Returns information about an Amazon Lightsail static IP.
Synopsis
- data GetStaticIp = GetStaticIp' {
- staticIpName :: Text
- newGetStaticIp :: Text -> GetStaticIp
- getStaticIp_staticIpName :: Lens' GetStaticIp Text
- data GetStaticIpResponse = GetStaticIpResponse' {
- staticIp :: Maybe StaticIp
- httpStatus :: Int
- newGetStaticIpResponse :: Int -> GetStaticIpResponse
- getStaticIpResponse_staticIp :: Lens' GetStaticIpResponse (Maybe StaticIp)
- getStaticIpResponse_httpStatus :: Lens' GetStaticIpResponse Int
Creating a Request
data GetStaticIp Source #
See: newGetStaticIp smart constructor.
Constructors
| GetStaticIp' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetStaticIp |
Create a value of GetStaticIp 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:staticIpName:GetStaticIp', getStaticIp_staticIpName - The name of the static IP in Lightsail.
Request Lenses
getStaticIp_staticIpName :: Lens' GetStaticIp Text Source #
The name of the static IP in Lightsail.
Destructuring the Response
data GetStaticIpResponse Source #
See: newGetStaticIpResponse smart constructor.
Constructors
| GetStaticIpResponse' | |
Fields
| |
Instances
newGetStaticIpResponse Source #
Arguments
| :: Int | |
| -> GetStaticIpResponse |
Create a value of GetStaticIpResponse 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:staticIp:GetStaticIpResponse', getStaticIpResponse_staticIp - An array of key-value pairs containing information about the requested
static IP.
$sel:httpStatus:GetStaticIpResponse', getStaticIpResponse_httpStatus - The response's http status code.
Response Lenses
getStaticIpResponse_staticIp :: Lens' GetStaticIpResponse (Maybe StaticIp) Source #
An array of key-value pairs containing information about the requested static IP.
getStaticIpResponse_httpStatus :: Lens' GetStaticIpResponse Int Source #
The response's http status code.