summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJames Lamb <jlamb@atlassian.com>2015-02-10 21:22:42 +1100
committerJames Lamb <jlamb@atlassian.com>2015-02-10 21:22:42 +1100
commit64f83600b20de7d77a533b6a1955b5529fb517d0 (patch)
treee90395a4a6a6126c810b3d714c4b8276eeba5028 /docs
parentac35f50c087952388c948cacf2a7ba6dfff833e7 (diff)
downloadboto-64f83600b20de7d77a533b6a1955b5529fb517d0.tar.gz
add some minor documentation for Route53 tutorial
Diffstat (limited to 'docs')
-rw-r--r--docs/source/route53_tut.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/source/route53_tut.rst b/docs/source/route53_tut.rst
index f24dfc28..12e0d659 100644
--- a/docs/source/route53_tut.rst
+++ b/docs/source/route53_tut.rst
@@ -85,3 +85,19 @@ You can call the API again and ask for the current status as follows:
When the status has changed to *INSYNC*, the change has been propagated to
remote servers
+Working with Change Sets
+-----------------------
+
+You can also do bulk updates using ResourceRecordSets. For example updating the TTL
+
+>>> zone = conn.get_zone('example.com')
+>>> change_set = boto.route53.record.ResourceRecordSets(conn, zone.id)
+>>> for rrset in conn.get_all_rrsets(zone.id):
+... u = change_set.add_change("UPSERT", rrset.name, rrset.type, ttl=3600)
+... u.add_value(rrset.resource_records[0])
+... results = change_set.commit()
+Done
+
+In this example we update the TTL to 1hr (3600 seconds) for all records recursed from
+example.com.
+Note: this will also change the SOA and NS records which may not be ideal for many users.