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.EC2.ModifyAddressAttribute
Description
Modifies an attribute of the specified Elastic IP address. For requirements, see Using reverse DNS for email applications.
Synopsis
- data ModifyAddressAttribute = ModifyAddressAttribute' {
- domainName :: Maybe Text
- dryRun :: Maybe Bool
- allocationId :: Text
- newModifyAddressAttribute :: Text -> ModifyAddressAttribute
- modifyAddressAttribute_domainName :: Lens' ModifyAddressAttribute (Maybe Text)
- modifyAddressAttribute_dryRun :: Lens' ModifyAddressAttribute (Maybe Bool)
- modifyAddressAttribute_allocationId :: Lens' ModifyAddressAttribute Text
- data ModifyAddressAttributeResponse = ModifyAddressAttributeResponse' {}
- newModifyAddressAttributeResponse :: Int -> ModifyAddressAttributeResponse
- modifyAddressAttributeResponse_address :: Lens' ModifyAddressAttributeResponse (Maybe AddressAttribute)
- modifyAddressAttributeResponse_httpStatus :: Lens' ModifyAddressAttributeResponse Int
Creating a Request
data ModifyAddressAttribute Source #
See: newModifyAddressAttribute
smart constructor.
Constructors
ModifyAddressAttribute' | |
Fields
|
Instances
newModifyAddressAttribute Source #
Arguments
:: Text | |
-> ModifyAddressAttribute |
Create a value of ModifyAddressAttribute
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:domainName:ModifyAddressAttribute'
, modifyAddressAttribute_domainName
- The domain name to modify for the IP address.
$sel:dryRun:ModifyAddressAttribute'
, modifyAddressAttribute_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
ModifyAddressAttribute
, modifyAddressAttribute_allocationId
- [EC2-VPC] The allocation ID.
Request Lenses
modifyAddressAttribute_domainName :: Lens' ModifyAddressAttribute (Maybe Text) Source #
The domain name to modify for the IP address.
modifyAddressAttribute_dryRun :: Lens' ModifyAddressAttribute (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
modifyAddressAttribute_allocationId :: Lens' ModifyAddressAttribute Text Source #
- EC2-VPC
- The allocation ID.
Destructuring the Response
data ModifyAddressAttributeResponse Source #
See: newModifyAddressAttributeResponse
smart constructor.
Constructors
ModifyAddressAttributeResponse' | |
Fields
|
Instances
newModifyAddressAttributeResponse Source #
Create a value of ModifyAddressAttributeResponse
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:
ModifyAddressAttributeResponse
, modifyAddressAttributeResponse_address
- Information about the Elastic IP address.
$sel:httpStatus:ModifyAddressAttributeResponse'
, modifyAddressAttributeResponse_httpStatus
- The response's http status code.
Response Lenses
modifyAddressAttributeResponse_address :: Lens' ModifyAddressAttributeResponse (Maybe AddressAttribute) Source #
Information about the Elastic IP address.
modifyAddressAttributeResponse_httpStatus :: Lens' ModifyAddressAttributeResponse Int Source #
The response's http status code.