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 |
Attaches a static IP address to a specific Amazon Lightsail instance.
Synopsis
- data AttachStaticIp = AttachStaticIp' {
- staticIpName :: Text
- instanceName :: Text
- newAttachStaticIp :: Text -> Text -> AttachStaticIp
- attachStaticIp_staticIpName :: Lens' AttachStaticIp Text
- attachStaticIp_instanceName :: Lens' AttachStaticIp Text
- data AttachStaticIpResponse = AttachStaticIpResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newAttachStaticIpResponse :: Int -> AttachStaticIpResponse
- attachStaticIpResponse_operations :: Lens' AttachStaticIpResponse (Maybe [Operation])
- attachStaticIpResponse_httpStatus :: Lens' AttachStaticIpResponse Int
Creating a Request
data AttachStaticIp Source #
See: newAttachStaticIp
smart constructor.
AttachStaticIp' | |
|
Instances
Create a value of AttachStaticIp
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:AttachStaticIp'
, attachStaticIp_staticIpName
- The name of the static IP.
$sel:instanceName:AttachStaticIp'
, attachStaticIp_instanceName
- The instance name to which you want to attach the static IP address.
Request Lenses
attachStaticIp_staticIpName :: Lens' AttachStaticIp Text Source #
The name of the static IP.
attachStaticIp_instanceName :: Lens' AttachStaticIp Text Source #
The instance name to which you want to attach the static IP address.
Destructuring the Response
data AttachStaticIpResponse Source #
See: newAttachStaticIpResponse
smart constructor.
AttachStaticIpResponse' | |
|
Instances
newAttachStaticIpResponse Source #
Create a value of AttachStaticIpResponse
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:AttachStaticIpResponse'
, attachStaticIpResponse_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:AttachStaticIpResponse'
, attachStaticIpResponse_httpStatus
- The response's http status code.
Response Lenses
attachStaticIpResponse_operations :: Lens' AttachStaticIpResponse (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.
attachStaticIpResponse_httpStatus :: Lens' AttachStaticIpResponse Int Source #
The response's http status code.