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 |
Associates one of the stack's registered Elastic IP addresses with a specified instance. The address must first be registered with the stack by calling RegisterElasticIp. 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 AssociateElasticIp = AssociateElasticIp' {
- instanceId :: Maybe Text
- elasticIp :: Text
- newAssociateElasticIp :: Text -> AssociateElasticIp
- associateElasticIp_instanceId :: Lens' AssociateElasticIp (Maybe Text)
- associateElasticIp_elasticIp :: Lens' AssociateElasticIp Text
- data AssociateElasticIpResponse = AssociateElasticIpResponse' {
- newAssociateElasticIpResponse :: AssociateElasticIpResponse
Creating a Request
data AssociateElasticIp Source #
See: newAssociateElasticIp
smart constructor.
AssociateElasticIp' | |
|
Instances
newAssociateElasticIp Source #
Create a value of AssociateElasticIp
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:instanceId:AssociateElasticIp'
, associateElasticIp_instanceId
- The instance ID.
$sel:elasticIp:AssociateElasticIp'
, associateElasticIp_elasticIp
- The Elastic IP address.
Request Lenses
associateElasticIp_instanceId :: Lens' AssociateElasticIp (Maybe Text) Source #
The instance ID.
associateElasticIp_elasticIp :: Lens' AssociateElasticIp Text Source #
The Elastic IP address.
Destructuring the Response
data AssociateElasticIpResponse Source #
See: newAssociateElasticIpResponse
smart constructor.
Instances
newAssociateElasticIpResponse :: AssociateElasticIpResponse Source #
Create a value of AssociateElasticIpResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.