Amazon AWS SDK User's Guide Page 116: SDK for .NET
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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 · ·
Questions about Amazon AWS SDK
No questions about this manual yet. Ask the first one.
Related products and manuals for Software Amazon AWS SDK
- Software Amazon Redshift User Manual
(24 pages) - Software Amazon Redshift User Manual
(11 pages) - Software Amazon AWS SDK User's Guide
(73 pages)