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 |
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.
Synopsis
- data RegisterElasticIp = RegisterElasticIp' {}
- newRegisterElasticIp :: Text -> Text -> RegisterElasticIp
- registerElasticIp_elasticIp :: Lens' RegisterElasticIp Text
- registerElasticIp_stackId :: Lens' RegisterElasticIp Text
- data RegisterElasticIpResponse = RegisterElasticIpResponse' {
- elasticIp :: Maybe Text
- httpStatus :: Int
- newRegisterElasticIpResponse :: Int -> RegisterElasticIpResponse
- registerElasticIpResponse_elasticIp :: Lens' RegisterElasticIpResponse (Maybe Text)
- registerElasticIpResponse_httpStatus :: Lens' RegisterElasticIpResponse Int
Creating a Request
data RegisterElasticIp Source #
See: newRegisterElasticIp
smart constructor.
Instances
Create a value of RegisterElasticIp
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:
RegisterElasticIp
, registerElasticIp_elasticIp
- The Elastic IP address.
RegisterElasticIp
, registerElasticIp_stackId
- The stack ID.
Request Lenses
registerElasticIp_elasticIp :: Lens' RegisterElasticIp Text Source #
The Elastic IP address.
registerElasticIp_stackId :: Lens' RegisterElasticIp Text Source #
The stack ID.
Destructuring the Response
data RegisterElasticIpResponse Source #
Contains the response to a RegisterElasticIp
request.
See: newRegisterElasticIpResponse
smart constructor.
RegisterElasticIpResponse' | |
|
Instances
newRegisterElasticIpResponse Source #
Create a value of RegisterElasticIpResponse
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:
RegisterElasticIp
, registerElasticIpResponse_elasticIp
- The Elastic IP address.
$sel:httpStatus:RegisterElasticIpResponse'
, registerElasticIpResponse_httpStatus
- The response's http status code.
Response Lenses
registerElasticIpResponse_elasticIp :: Lens' RegisterElasticIpResponse (Maybe Text) Source #
The Elastic IP address.
registerElasticIpResponse_httpStatus :: Lens' RegisterElasticIpResponse Int Source #
The response's http status code.