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 |
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.
AllocateStaticIp' | |
|
Instances
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.
AllocateStaticIpResponse' | |
|
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.