Amazon AWS SDK User's Guide Page 116: SDK for .NET

/ 155
Table of contents

Amazon Route 53 Programming with the AWS

SDK for .NET

The AWS SDK for .NET supports Amazon Route 53, which is a highly available and scalable Domain
Name System (DNS) web service.
Topics
•
Updating Amazon Route 53 Resource Record Sets (p. 112)

Creating an Amazon Route 53 Hosted Zone and

Adding Resource Record Sets

Amazon Route 53 is a Domain Name System (DNS) web service that provides secure and reliable routing
to your infrastructure that uses Amazon Web Services (AWS) products, such as Amazon Elastic Compute
Cloud (Amazon EC2), Elastic Load Balancing, or Amazon Simple Storage Service (Amazon S3).You
can also use Amazon Route 53 to route users to your infrastructure outside of AWS.This topic describes
how to use the AWS SDK for .NET to create an Amazon Route 53
hosted zone
and add a new
resource
record set
to that zone.

Note

This topic assumes that you are already familiar with how to use Amazon Route 53 and have
already installed the AWS SDK for .NET. For more information on Amazon Route 53, see the
Amazon Route 53 Developer Guide
. For information on how to install the AWS SDK for .NET,
see
Getting Started (p. 3)
.
The basic procedure is as follows.

To create a hosted zone and update its record sets

1.
Create a hosted zone.
2.
Create a change batch that contains one or more record sets, and instructions on what action to take
for each set.
3.
Submit a change request to the hosted zone that contains the change batch.
4.
Monitor the change to verify that it is complete.
The example is a simple console application that shows how to use the SDK for .NET to implement this
procedure for a basic record set.

To run this example

1.
In the Visual Studio
File
menu, click
New
and then click
Project
.
2.
Select the
AWS Empty Project
template and specify the project's name and location.
3.
Specify the application's default credentials profile and AWS region, which are added to the project's
App.config
file. This example assumes that the region is set to US East (Northern Virginia) and
the profile is set to default. For more information on profiles, see
Configuring AWS Credentials (p. 9)
.
4.
Open
program.cs
and replace the
using
declarations and the code in
Main
with the corresponding
code from the following example. If you are using your default credentials profile and region, you can
compile and run the application as-is. Otherwise, you must provide an appropriate profile and region,
as discussed in the notes that follow the example.
Version v2.0.0
112
AWS SDK for .NET Developer Guide
Amazon Route 53

PDF file · ·

Print

Print document

Sharing

Questions about Amazon AWS SDK

No questions about this manual yet. Ask the first one.

Ask a question

We answer from the manual and name the page. The question appears on the site after it is checked.

All questions and answers ›

Related products and manuals for Software Amazon AWS SDK