| 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.AllocateStaticIp
Description
Allocates a static IP address.
Synopsis
- data AllocateStaticIp = AllocateStaticIp' {
- staticIpName :: Text
- newAllocateStaticIp :: Text -> AllocateStaticIp
- allocateStaticIp_staticIpName :: Lens' AllocateStaticIp Text
- data AllocateStaticIpResponse = AllocateStaticIpResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newAllocateStaticIpResponse :: Int -> AllocateStaticIpResponse
- allocateStaticIpResponse_operations :: Lens' AllocateStaticIpResponse (Maybe [Operation])
- allocateStaticIpResponse_httpStatus :: Lens' AllocateStaticIpResponse Int
Creating a Request
data AllocateStaticIp Source #
See: newAllocateStaticIp smart constructor.
Constructors
| AllocateStaticIp' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> AllocateStaticIp |
Create a value of AllocateStaticIp 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:AllocateStaticIp', allocateStaticIp_staticIpName - The name of the static IP address.
Request Lenses
allocateStaticIp_staticIpName :: Lens' AllocateStaticIp Text Source #
The name of the static IP address.
Destructuring the Response
data AllocateStaticIpResponse Source #
See: newAllocateStaticIpResponse smart constructor.
Constructors
| AllocateStaticIpResponse' | |
Fields
| |
Instances
newAllocateStaticIpResponse Source #
Create a value of AllocateStaticIpResponse 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:operations:AllocateStaticIpResponse', allocateStaticIpResponse_operations - An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:AllocateStaticIpResponse', allocateStaticIpResponse_httpStatus - The response's http status code.
Response Lenses
allocateStaticIpResponse_operations :: Lens' AllocateStaticIpResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
allocateStaticIpResponse_httpStatus :: Lens' AllocateStaticIpResponse Int Source #
The response's http status code.