是否可以使用Java AWS API更新Route53记录?
作者:互联网
我在AWS Route53上有一个托管域.在该域下,我有一个子域的’A’记录.
我希望能够使用Java API更新“A”记录的IP地址.但是,在查看com.amazonaws.services.route53.model.Change类的setAction方法时,它只接受CREATE或DELETE值.这似乎与Java API在后台发送的XML消息中允许的值相匹配.
有没有办法只更新IP地址,还是我必须删除原始记录然后再创建它?
谢谢
解决方法:
唯一的方法是使用here提到的DELETE / CREATE序列.
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.
标签:java,amazon-web-services,amazon-route53 来源: https://codeday.me/bug/20190609/1207813.html