| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.Lightsail.AttachStaticIP
Description
Attaches a static IP address to a specific Amazon Lightsail instance.
- attachStaticIP :: Text -> Text -> AttachStaticIP
- data AttachStaticIP
- asipStaticIPName :: Lens' AttachStaticIP Text
- asipInstanceName :: Lens' AttachStaticIP Text
- attachStaticIPResponse :: Int -> AttachStaticIPResponse
- data AttachStaticIPResponse
- asiprsOperations :: Lens' AttachStaticIPResponse [Operation]
- asiprsResponseStatus :: Lens' AttachStaticIPResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> AttachStaticIP |
Creates a value of AttachStaticIP with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asipStaticIPName- The name of the static IP.asipInstanceName- The instance name to which you want to attach the static IP address.
data AttachStaticIP Source #
See: attachStaticIP smart constructor.
Instances
Request Lenses
asipStaticIPName :: Lens' AttachStaticIP Text Source #
The name of the static IP.
asipInstanceName :: Lens' AttachStaticIP Text Source #
The instance name to which you want to attach the static IP address.
Destructuring the Response
attachStaticIPResponse Source #
Arguments
| :: Int | |
| -> AttachStaticIPResponse |
Creates a value of AttachStaticIPResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asiprsOperations- An array of key-value pairs containing information about your API operations.asiprsResponseStatus- -- | The response status code.
data AttachStaticIPResponse Source #
See: attachStaticIPResponse smart constructor.
Response Lenses
asiprsOperations :: Lens' AttachStaticIPResponse [Operation] Source #
An array of key-value pairs containing information about your API operations.
asiprsResponseStatus :: Lens' AttachStaticIPResponse Int Source #
- - | The response status code.