aws ec2 modify-address-attribute
Modifies an attribute of the specified Elastic IP address. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To modify the domain name attribute associated with an elastic IP address
The following modify-address-attribute examples modify the domain name attribute of an elastic IP address.
Linux command.
aws ec2 modify-address-attribute --allocation-id eipalloc-abcdef01234567890 --domain-name example.comIdentify--allocation-id[EC2-VPC] The allocation ID.--domain-nameThe domain name to modify for the IP address.Windows command.
aws ec2 modify-address-attribute ^Identify--allocation-id eipalloc-abcdef01234567890 ^--domain-name example.comIts output
{
"Address": {
"PublicIp": "192.0.2.0",
"AllocationId": "eipalloc-abcdef01234567890",
"PtrRecord": "example.net.",
"PtrRecordUpdate": {
"Value": "example.com.",
"Status": "PENDING"
}
}
}To monitor the pending change and to view the modified attributes of an elastic IP address, see describe-addresses-attribute in the AWS CLI Command Reference.
For more information, see Create a reverse DNS record for email on Amazon EC2 in the Amazon EC2 User Guide.
Options
--allocation-id[EC2-VPC] The allocation ID.--domain-nameThe domain name to modify for the IP address.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.