| 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.DetachStaticIp
Description
Detaches a static IP from the Amazon Lightsail instance to which it is attached.
Synopsis
- data DetachStaticIp = DetachStaticIp' {
- staticIpName :: Text
- newDetachStaticIp :: Text -> DetachStaticIp
- detachStaticIp_staticIpName :: Lens' DetachStaticIp Text
- data DetachStaticIpResponse = DetachStaticIpResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDetachStaticIpResponse :: Int -> DetachStaticIpResponse
- detachStaticIpResponse_operations :: Lens' DetachStaticIpResponse (Maybe [Operation])
- detachStaticIpResponse_httpStatus :: Lens' DetachStaticIpResponse Int
Creating a Request
data DetachStaticIp Source #
See: newDetachStaticIp smart constructor.
Constructors
| DetachStaticIp' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DetachStaticIp |
Create a value of DetachStaticIp 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:DetachStaticIp', detachStaticIp_staticIpName - The name of the static IP to detach from the instance.
Request Lenses
detachStaticIp_staticIpName :: Lens' DetachStaticIp Text Source #
The name of the static IP to detach from the instance.
Destructuring the Response
data DetachStaticIpResponse Source #
See: newDetachStaticIpResponse smart constructor.
Constructors
| DetachStaticIpResponse' | |
Fields
| |
Instances
newDetachStaticIpResponse Source #
Create a value of DetachStaticIpResponse 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:DetachStaticIpResponse', detachStaticIpResponse_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:DetachStaticIpResponse', detachStaticIpResponse_httpStatus - The response's http status code.
Response Lenses
detachStaticIpResponse_operations :: Lens' DetachStaticIpResponse (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.
detachStaticIpResponse_httpStatus :: Lens' DetachStaticIpResponse Int Source #
The response's http status code.