This forum provides solutions for aws developers for their issues.It provides solutions for aws elastic ip, ec2 instance, public ip,route53 pricing, load balancers in aws,Orchestration, ebs,, lambda, installing mongodb on ubuntu etc.

Showing posts with label cvc-enumeration-valid: Value 'UPDATE' is not facet-valid with respect to enumeration. Show all posts
Showing posts with label cvc-enumeration-valid: Value 'UPDATE' is not facet-valid with respect to enumeration. Show all posts

Saturday 1 July 2017

Route53 - ChangeResourceRecordSet - Update issue


 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
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                }
                              };
                           }

Labels

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts