| Copyright | (c) 2013-2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.OpsWorks.RegisterElasticIP
Description
Registers an Elastic IP address with a specified stack. An address can be registered with only one stack at a time. If the address is already registered, you must first deregister it by calling DeregisterElasticIp. For more information, see Resource Management.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
See: AWS API Reference for RegisterElasticIP.
- registerElasticIP :: Text -> Text -> RegisterElasticIP
- data RegisterElasticIP
- reiElasticIP :: Lens' RegisterElasticIP Text
- reiStackId :: Lens' RegisterElasticIP Text
- registerElasticIPResponse :: Int -> RegisterElasticIPResponse
- data RegisterElasticIPResponse
- reirsElasticIP :: Lens' RegisterElasticIPResponse (Maybe Text)
- reirsStatus :: Lens' RegisterElasticIPResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> RegisterElasticIP |
Creates a value of RegisterElasticIP with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterElasticIP Source
See: registerElasticIP smart constructor.
Instances
Request Lenses
reiElasticIP :: Lens' RegisterElasticIP Text Source
The Elastic IP address.
reiStackId :: Lens' RegisterElasticIP Text Source
The stack ID.
Destructuring the Response
registerElasticIPResponse Source
Arguments
| :: Int | |
| -> RegisterElasticIPResponse |
Creates a value of RegisterElasticIPResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterElasticIPResponse Source
Contains the response to a RegisterElasticIp request.
See: registerElasticIPResponse smart constructor.
Response Lenses
reirsElasticIP :: Lens' RegisterElasticIPResponse (Maybe Text) Source
The Elastic IP address.
reirsStatus :: Lens' RegisterElasticIPResponse Int Source
The response status code.