params = {
"HostedZoneId": '/hostedzone/hotedzone id', // our Id from the first call
"ChangeBatch": {
"Changes": [
{
"Action": "UPDATE",
"ResourceRecordSet": {
"Name": test.example.com ,
"Type": "CNAME",
"TTL": 86400,
"ResourceRecords": [
{
"Value": 52.145.32.32
}
]
}
}
]
}
};
}
Invalid Input
Error: Invalid XML ; cvc-enumeration-valid: Value 'UPDATE' is not facet-valid with respect to enumeration '[CREATE, DELETE, UPSERT]'. It must be a value from the enumeration. at Request.extractError
Solution : Use Action as "UPSERT" instead of "UPDATE"
params = {
"HostedZoneId": '/hostedzone/hotedzone id', // our Id from the first call
"ChangeBatch": {
"Changes": [
{
"Action": "UPSERT",
"ResourceRecordSet": {
"Name": test.example.com ,
"Type": "CNAME",
"TTL": 86400,
"ResourceRecords": [
{
"Value": 52.145.32.32
}
]
}
}
]
}
};
}
0 coment�rios:
Post a Comment