| 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 |
Amazonka.OpsWorks.AssociateElasticIp
Description
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.
Constructors
| AssociateElasticIp' | |
Fields
| |
Instances
newAssociateElasticIp Source #
Arguments
| :: Text | |
| -> AssociateElasticIp |
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:
AssociateElasticIp, associateElasticIp_instanceId - The instance ID.
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.
Constructors
| AssociateElasticIpResponse' | |
Instances
newAssociateElasticIpResponse :: AssociateElasticIpResponse Source #
Create a value of AssociateElasticIpResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.