I have a hosted domain on AWS Route53. Under that domain I have an 'A' record for a subdomain.
I would like to be able to update the IP address of the 'A' record using the Java API. However, when looking at the setAction
method of the com.amazonaws.services.route53.model.Change
class, it only accepts the CREATE
or DELETE
values. This seems to match the allowed values in the XML message that the Java API sends behind the scenes.
Is there any way to just update the IP address, or do I have to delete the original record and then create it again?
Thanks
The only way is to use DELETE / CREATE sequence as mentioned here.
Creating a Change Batch Request
To create a change batch request, use the ChangeResourceRecordSets action ChangeBatch element. You use CREATE and DELETE actions within the ChangeBatch element for each record that you want to update. If you are only creating records, then you will only use CREATE actions.