summaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorBram Noordzij <bram.noordzij@kalooga.com>2015-05-05 12:02:15 +0200
committerBram Noordzij <bram.noordzij@kalooga.com>2015-05-05 12:02:15 +0200
commit280db575d948c2d5e7820cf29285968b7f8ca8cc (patch)
tree3dde87edc8259e81d1b716bfe2a4ebc7c864c56d /docs/source
parent8b65a6c250d0548d9ffe6393842931f59f793c77 (diff)
downloadboto-280db575d948c2d5e7820cf29285968b7f8ca8cc.tar.gz
document route53 updating a record
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/route53_tut.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/source/route53_tut.rst b/docs/source/route53_tut.rst
index 12e0d659..7e322ce2 100644
--- a/docs/source/route53_tut.rst
+++ b/docs/source/route53_tut.rst
@@ -85,6 +85,20 @@ 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
+Updating a record
+-----------------
+
+You can create, upsert or delete a single record like this
+
+>>> zone = conn.get_zone("example.com.")
+>>> change_set = ResourceRecordSets(conn, zone.id)
+>>> changes1 = change_set("UPSERT", "www" + ".example.com", type="CNAME", ttl=3600)
+>>> changes1.add_value("webserver.example.com")
+>>> change_set.commit()
+
+In this example we create or update, depending on the existence of the record, the
+CNAME www.example.com to webserver.example.com.
+
Working with Change Sets
-----------------------