User guide

Table Of Contents
ActionThe action to be taken for this resource record set: CREATE, DELETE, or UPSERT.
For more information on these actions, see Elements. This example creates a new resource
record set in the hosted zone, so Action is set to CREATE.
3. Create a ChangeBatch object and set its Changes property to a list of the Change objects that
you created in the previous step.
[4] Update the zone's resource record sets
To update the resource record sets, pass the ChangeBatch object to the hosted zone, as follows.
To update a hosted zone's resource record sets
1. Create a ChangeResourceRecordSetsRequest object with the following property settings.
HostedZoneIdThe hosted zone's ID, which the example sets to the ID that was returned
in the CreateHostedZoneResponse object.
To get the ID of an existing hosted zone, call ListHostedZones.
ChangeBatch – A ChangeBatch object that contains the updates.
2. Pass the ChangeResourceRecordSetsRequest object to the client object's
ChangeResourceRecordSets method. It returns a ChangeResourceRecordSetsResponse object,
which contains a request ID that you can use to monitor the request's progress.
[5] Monitor the update status
Resource record set updates typically take a minute or so to propagate through the system.You can
monitor the update's progress and verify that it has completed as follows.
To monitor update status
1. Create a GetChangeRequest object and set its Id property to the request ID that was returned
by ChangeResourceRecordSets.
2. Use a wait loop to periodically call the client object's GetChange method. GetChange returns
PENDING while the update is in progress and INSYNC after the update is complete.You can use
the same GetChangeRequest object for all of the method calls.
Version v2.0.0
67
AWS SDK for .NET Developer Guide
Updating Amazon Route 53 Resource Record Sets