@aws-sdk/client-route-53 3.288.0 → 3.289.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +26 -0
- package/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +597 -0
- package/dist-types/commands/ChangeTagsForResourceCommand.d.ts +25 -0
- package/dist-types/commands/GetHostedZoneCommand.d.ts +32 -0
- package/package.json +31 -31
|
@@ -62,6 +62,32 @@ export interface AssociateVPCWithHostedZoneCommandOutput extends AssociateVPCWit
|
|
|
62
62
|
* @see {@link AssociateVPCWithHostedZoneCommandOutput} for command's `response` shape.
|
|
63
63
|
* @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape.
|
|
64
64
|
*
|
|
65
|
+
* @example To associate a VPC with a hosted zone
|
|
66
|
+
* ```javascript
|
|
67
|
+
* // The following example associates the VPC with ID vpc-1a2b3c4d with the hosted zone with ID Z3M3LMPEXAMPLE.
|
|
68
|
+
* const input = {
|
|
69
|
+
* "Comment": "",
|
|
70
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE",
|
|
71
|
+
* "VPC": {
|
|
72
|
+
* "VPCId": "vpc-1a2b3c4d",
|
|
73
|
+
* "VPCRegion": "us-east-2"
|
|
74
|
+
* }
|
|
75
|
+
* };
|
|
76
|
+
* const command = new AssociateVPCWithHostedZoneCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response ==
|
|
79
|
+
* {
|
|
80
|
+
* "ChangeInfo": {
|
|
81
|
+
* "Comment": "",
|
|
82
|
+
* "Id": "/change/C3HC6WDB2UANE2",
|
|
83
|
+
* "Status": "INSYNC",
|
|
84
|
+
* "SubmittedAt": "2017-01-31T01:36:41.958Z"
|
|
85
|
+
* }
|
|
86
|
+
* }
|
|
87
|
+
* *\/
|
|
88
|
+
* // example id: to-associate-a-vpc-with-a-hosted-zone-1484069228699
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
65
91
|
*/
|
|
66
92
|
export declare class AssociateVPCWithHostedZoneCommand extends $Command<AssociateVPCWithHostedZoneCommandInput, AssociateVPCWithHostedZoneCommandOutput, Route53ClientResolvedConfig> {
|
|
67
93
|
readonly input: AssociateVPCWithHostedZoneCommandInput;
|
|
@@ -118,6 +118,603 @@ export interface ChangeResourceRecordSetsCommandOutput extends ChangeResourceRec
|
|
|
118
118
|
* @see {@link ChangeResourceRecordSetsCommandOutput} for command's `response` shape.
|
|
119
119
|
* @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape.
|
|
120
120
|
*
|
|
121
|
+
* @example To create a basic resource record set
|
|
122
|
+
* ```javascript
|
|
123
|
+
* // The following example creates a resource record set that routes Internet traffic to a resource with an IP address of 192.0.2.44.
|
|
124
|
+
* const input = {
|
|
125
|
+
* "ChangeBatch": {
|
|
126
|
+
* "Changes": [
|
|
127
|
+
* {
|
|
128
|
+
* "Action": "CREATE",
|
|
129
|
+
* "ResourceRecordSet": {
|
|
130
|
+
* "Name": "example.com",
|
|
131
|
+
* "ResourceRecords": [
|
|
132
|
+
* {
|
|
133
|
+
* "Value": "192.0.2.44"
|
|
134
|
+
* }
|
|
135
|
+
* ],
|
|
136
|
+
* "TTL": 60,
|
|
137
|
+
* "Type": "A"
|
|
138
|
+
* }
|
|
139
|
+
* }
|
|
140
|
+
* ],
|
|
141
|
+
* "Comment": "Web server for example.com"
|
|
142
|
+
* },
|
|
143
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
144
|
+
* };
|
|
145
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
146
|
+
* const response = await client.send(command);
|
|
147
|
+
* /* response ==
|
|
148
|
+
* {
|
|
149
|
+
* "ChangeInfo": {
|
|
150
|
+
* "Comment": "Web server for example.com",
|
|
151
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
152
|
+
* "Status": "PENDING",
|
|
153
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
154
|
+
* }
|
|
155
|
+
* }
|
|
156
|
+
* *\/
|
|
157
|
+
* // example id: to-create-update-or-delete-resource-record-sets-1484344703668
|
|
158
|
+
* ```
|
|
159
|
+
*
|
|
160
|
+
* @example To create weighted resource record sets
|
|
161
|
+
* ```javascript
|
|
162
|
+
* // The following example creates two weighted resource record sets. The resource with a Weight of 100 will get 1/3rd of traffic (100/100+200), and the other resource will get the rest of the traffic for example.com.
|
|
163
|
+
* const input = {
|
|
164
|
+
* "ChangeBatch": {
|
|
165
|
+
* "Changes": [
|
|
166
|
+
* {
|
|
167
|
+
* "Action": "CREATE",
|
|
168
|
+
* "ResourceRecordSet": {
|
|
169
|
+
* "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba",
|
|
170
|
+
* "Name": "example.com",
|
|
171
|
+
* "ResourceRecords": [
|
|
172
|
+
* {
|
|
173
|
+
* "Value": "192.0.2.44"
|
|
174
|
+
* }
|
|
175
|
+
* ],
|
|
176
|
+
* "SetIdentifier": "Seattle data center",
|
|
177
|
+
* "TTL": 60,
|
|
178
|
+
* "Type": "A",
|
|
179
|
+
* "Weight": 100
|
|
180
|
+
* }
|
|
181
|
+
* },
|
|
182
|
+
* {
|
|
183
|
+
* "Action": "CREATE",
|
|
184
|
+
* "ResourceRecordSet": {
|
|
185
|
+
* "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba",
|
|
186
|
+
* "Name": "example.com",
|
|
187
|
+
* "ResourceRecords": [
|
|
188
|
+
* {
|
|
189
|
+
* "Value": "192.0.2.45"
|
|
190
|
+
* }
|
|
191
|
+
* ],
|
|
192
|
+
* "SetIdentifier": "Portland data center",
|
|
193
|
+
* "TTL": 60,
|
|
194
|
+
* "Type": "A",
|
|
195
|
+
* "Weight": 200
|
|
196
|
+
* }
|
|
197
|
+
* }
|
|
198
|
+
* ],
|
|
199
|
+
* "Comment": "Web servers for example.com"
|
|
200
|
+
* },
|
|
201
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
202
|
+
* };
|
|
203
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
204
|
+
* const response = await client.send(command);
|
|
205
|
+
* /* response ==
|
|
206
|
+
* {
|
|
207
|
+
* "ChangeInfo": {
|
|
208
|
+
* "Comment": "Web servers for example.com",
|
|
209
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
210
|
+
* "Status": "PENDING",
|
|
211
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
212
|
+
* }
|
|
213
|
+
* }
|
|
214
|
+
* *\/
|
|
215
|
+
* // example id: to-create-weighted-resource-record-sets-1484348208522
|
|
216
|
+
* ```
|
|
217
|
+
*
|
|
218
|
+
* @example To create an alias resource record set
|
|
219
|
+
* ```javascript
|
|
220
|
+
* // The following example creates an alias resource record set that routes traffic to a CloudFront distribution.
|
|
221
|
+
* const input = {
|
|
222
|
+
* "ChangeBatch": {
|
|
223
|
+
* "Changes": [
|
|
224
|
+
* {
|
|
225
|
+
* "Action": "CREATE",
|
|
226
|
+
* "ResourceRecordSet": {
|
|
227
|
+
* "AliasTarget": {
|
|
228
|
+
* "DNSName": "d123rk29d0stfj.cloudfront.net",
|
|
229
|
+
* "EvaluateTargetHealth": false,
|
|
230
|
+
* "HostedZoneId": "Z2FDTNDATAQYW2"
|
|
231
|
+
* },
|
|
232
|
+
* "Name": "example.com",
|
|
233
|
+
* "Type": "A"
|
|
234
|
+
* }
|
|
235
|
+
* }
|
|
236
|
+
* ],
|
|
237
|
+
* "Comment": "CloudFront distribution for example.com"
|
|
238
|
+
* },
|
|
239
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
240
|
+
* };
|
|
241
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
242
|
+
* const response = await client.send(command);
|
|
243
|
+
* /* response ==
|
|
244
|
+
* {
|
|
245
|
+
* "ChangeInfo": {
|
|
246
|
+
* "Comment": "CloudFront distribution for example.com",
|
|
247
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
248
|
+
* "Status": "PENDING",
|
|
249
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
250
|
+
* }
|
|
251
|
+
* }
|
|
252
|
+
* *\/
|
|
253
|
+
* // example id: to-create-an-alias-resource-record-set-1484348404062
|
|
254
|
+
* ```
|
|
255
|
+
*
|
|
256
|
+
* @example To create weighted alias resource record sets
|
|
257
|
+
* ```javascript
|
|
258
|
+
* // The following example creates two weighted alias resource record sets that route traffic to ELB load balancers. The resource with a Weight of 100 will get 1/3rd of traffic (100/100+200), and the other resource will get the rest of the traffic for example.com.
|
|
259
|
+
* const input = {
|
|
260
|
+
* "ChangeBatch": {
|
|
261
|
+
* "Changes": [
|
|
262
|
+
* {
|
|
263
|
+
* "Action": "CREATE",
|
|
264
|
+
* "ResourceRecordSet": {
|
|
265
|
+
* "AliasTarget": {
|
|
266
|
+
* "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ",
|
|
267
|
+
* "EvaluateTargetHealth": true,
|
|
268
|
+
* "HostedZoneId": "Z3AADJGX6KTTL2"
|
|
269
|
+
* },
|
|
270
|
+
* "Name": "example.com",
|
|
271
|
+
* "SetIdentifier": "Ohio region",
|
|
272
|
+
* "Type": "A",
|
|
273
|
+
* "Weight": 100
|
|
274
|
+
* }
|
|
275
|
+
* },
|
|
276
|
+
* {
|
|
277
|
+
* "Action": "CREATE",
|
|
278
|
+
* "ResourceRecordSet": {
|
|
279
|
+
* "AliasTarget": {
|
|
280
|
+
* "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ",
|
|
281
|
+
* "EvaluateTargetHealth": true,
|
|
282
|
+
* "HostedZoneId": "Z1H1FL5HABSF5"
|
|
283
|
+
* },
|
|
284
|
+
* "Name": "example.com",
|
|
285
|
+
* "SetIdentifier": "Oregon region",
|
|
286
|
+
* "Type": "A",
|
|
287
|
+
* "Weight": 200
|
|
288
|
+
* }
|
|
289
|
+
* }
|
|
290
|
+
* ],
|
|
291
|
+
* "Comment": "ELB load balancers for example.com"
|
|
292
|
+
* },
|
|
293
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
294
|
+
* };
|
|
295
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
296
|
+
* const response = await client.send(command);
|
|
297
|
+
* /* response ==
|
|
298
|
+
* {
|
|
299
|
+
* "ChangeInfo": {
|
|
300
|
+
* "Comment": "ELB load balancers for example.com",
|
|
301
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
302
|
+
* "Status": "PENDING",
|
|
303
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
304
|
+
* }
|
|
305
|
+
* }
|
|
306
|
+
* *\/
|
|
307
|
+
* // example id: to-create-weighted-alias-resource-record-sets-1484349467416
|
|
308
|
+
* ```
|
|
309
|
+
*
|
|
310
|
+
* @example To create latency resource record sets
|
|
311
|
+
* ```javascript
|
|
312
|
+
* // The following example creates two latency resource record sets that route traffic to EC2 instances. Traffic for example.com is routed either to the Ohio region or the Oregon region, depending on the latency between the user and those regions.
|
|
313
|
+
* const input = {
|
|
314
|
+
* "ChangeBatch": {
|
|
315
|
+
* "Changes": [
|
|
316
|
+
* {
|
|
317
|
+
* "Action": "CREATE",
|
|
318
|
+
* "ResourceRecordSet": {
|
|
319
|
+
* "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba",
|
|
320
|
+
* "Name": "example.com",
|
|
321
|
+
* "Region": "us-east-2",
|
|
322
|
+
* "ResourceRecords": [
|
|
323
|
+
* {
|
|
324
|
+
* "Value": "192.0.2.44"
|
|
325
|
+
* }
|
|
326
|
+
* ],
|
|
327
|
+
* "SetIdentifier": "Ohio region",
|
|
328
|
+
* "TTL": 60,
|
|
329
|
+
* "Type": "A"
|
|
330
|
+
* }
|
|
331
|
+
* },
|
|
332
|
+
* {
|
|
333
|
+
* "Action": "CREATE",
|
|
334
|
+
* "ResourceRecordSet": {
|
|
335
|
+
* "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba",
|
|
336
|
+
* "Name": "example.com",
|
|
337
|
+
* "Region": "us-west-2",
|
|
338
|
+
* "ResourceRecords": [
|
|
339
|
+
* {
|
|
340
|
+
* "Value": "192.0.2.45"
|
|
341
|
+
* }
|
|
342
|
+
* ],
|
|
343
|
+
* "SetIdentifier": "Oregon region",
|
|
344
|
+
* "TTL": 60,
|
|
345
|
+
* "Type": "A"
|
|
346
|
+
* }
|
|
347
|
+
* }
|
|
348
|
+
* ],
|
|
349
|
+
* "Comment": "EC2 instances for example.com"
|
|
350
|
+
* },
|
|
351
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
352
|
+
* };
|
|
353
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
354
|
+
* const response = await client.send(command);
|
|
355
|
+
* /* response ==
|
|
356
|
+
* {
|
|
357
|
+
* "ChangeInfo": {
|
|
358
|
+
* "Comment": "EC2 instances for example.com",
|
|
359
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
360
|
+
* "Status": "PENDING",
|
|
361
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
362
|
+
* }
|
|
363
|
+
* }
|
|
364
|
+
* *\/
|
|
365
|
+
* // example id: to-create-latency-resource-record-sets-1484350219917
|
|
366
|
+
* ```
|
|
367
|
+
*
|
|
368
|
+
* @example To create latency alias resource record sets
|
|
369
|
+
* ```javascript
|
|
370
|
+
* // The following example creates two latency alias resource record sets that route traffic for example.com to ELB load balancers. Requests are routed either to the Ohio region or the Oregon region, depending on the latency between the user and those regions.
|
|
371
|
+
* const input = {
|
|
372
|
+
* "ChangeBatch": {
|
|
373
|
+
* "Changes": [
|
|
374
|
+
* {
|
|
375
|
+
* "Action": "CREATE",
|
|
376
|
+
* "ResourceRecordSet": {
|
|
377
|
+
* "AliasTarget": {
|
|
378
|
+
* "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ",
|
|
379
|
+
* "EvaluateTargetHealth": true,
|
|
380
|
+
* "HostedZoneId": "Z3AADJGX6KTTL2"
|
|
381
|
+
* },
|
|
382
|
+
* "Name": "example.com",
|
|
383
|
+
* "Region": "us-east-2",
|
|
384
|
+
* "SetIdentifier": "Ohio region",
|
|
385
|
+
* "Type": "A"
|
|
386
|
+
* }
|
|
387
|
+
* },
|
|
388
|
+
* {
|
|
389
|
+
* "Action": "CREATE",
|
|
390
|
+
* "ResourceRecordSet": {
|
|
391
|
+
* "AliasTarget": {
|
|
392
|
+
* "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ",
|
|
393
|
+
* "EvaluateTargetHealth": true,
|
|
394
|
+
* "HostedZoneId": "Z1H1FL5HABSF5"
|
|
395
|
+
* },
|
|
396
|
+
* "Name": "example.com",
|
|
397
|
+
* "Region": "us-west-2",
|
|
398
|
+
* "SetIdentifier": "Oregon region",
|
|
399
|
+
* "Type": "A"
|
|
400
|
+
* }
|
|
401
|
+
* }
|
|
402
|
+
* ],
|
|
403
|
+
* "Comment": "ELB load balancers for example.com"
|
|
404
|
+
* },
|
|
405
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
406
|
+
* };
|
|
407
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
408
|
+
* const response = await client.send(command);
|
|
409
|
+
* /* response ==
|
|
410
|
+
* {
|
|
411
|
+
* "ChangeInfo": {
|
|
412
|
+
* "Comment": "ELB load balancers for example.com",
|
|
413
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
414
|
+
* "Status": "PENDING",
|
|
415
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
416
|
+
* }
|
|
417
|
+
* }
|
|
418
|
+
* *\/
|
|
419
|
+
* // example id: to-create-latency-alias-resource-record-sets-1484601774179
|
|
420
|
+
* ```
|
|
421
|
+
*
|
|
422
|
+
* @example To create failover resource record sets
|
|
423
|
+
* ```javascript
|
|
424
|
+
* // The following example creates primary and secondary failover resource record sets that route traffic to EC2 instances. Traffic is generally routed to the primary resource, in the Ohio region. If that resource is unavailable, traffic is routed to the secondary resource, in the Oregon region.
|
|
425
|
+
* const input = {
|
|
426
|
+
* "ChangeBatch": {
|
|
427
|
+
* "Changes": [
|
|
428
|
+
* {
|
|
429
|
+
* "Action": "CREATE",
|
|
430
|
+
* "ResourceRecordSet": {
|
|
431
|
+
* "Failover": "PRIMARY",
|
|
432
|
+
* "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba",
|
|
433
|
+
* "Name": "example.com",
|
|
434
|
+
* "ResourceRecords": [
|
|
435
|
+
* {
|
|
436
|
+
* "Value": "192.0.2.44"
|
|
437
|
+
* }
|
|
438
|
+
* ],
|
|
439
|
+
* "SetIdentifier": "Ohio region",
|
|
440
|
+
* "TTL": 60,
|
|
441
|
+
* "Type": "A"
|
|
442
|
+
* }
|
|
443
|
+
* },
|
|
444
|
+
* {
|
|
445
|
+
* "Action": "CREATE",
|
|
446
|
+
* "ResourceRecordSet": {
|
|
447
|
+
* "Failover": "SECONDARY",
|
|
448
|
+
* "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba",
|
|
449
|
+
* "Name": "example.com",
|
|
450
|
+
* "ResourceRecords": [
|
|
451
|
+
* {
|
|
452
|
+
* "Value": "192.0.2.45"
|
|
453
|
+
* }
|
|
454
|
+
* ],
|
|
455
|
+
* "SetIdentifier": "Oregon region",
|
|
456
|
+
* "TTL": 60,
|
|
457
|
+
* "Type": "A"
|
|
458
|
+
* }
|
|
459
|
+
* }
|
|
460
|
+
* ],
|
|
461
|
+
* "Comment": "Failover configuration for example.com"
|
|
462
|
+
* },
|
|
463
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
464
|
+
* };
|
|
465
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
466
|
+
* const response = await client.send(command);
|
|
467
|
+
* /* response ==
|
|
468
|
+
* {
|
|
469
|
+
* "ChangeInfo": {
|
|
470
|
+
* "Comment": "Failover configuration for example.com",
|
|
471
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
472
|
+
* "Status": "PENDING",
|
|
473
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
474
|
+
* }
|
|
475
|
+
* }
|
|
476
|
+
* *\/
|
|
477
|
+
* // example id: to-create-failover-resource-record-sets-1484604541740
|
|
478
|
+
* ```
|
|
479
|
+
*
|
|
480
|
+
* @example To create failover alias resource record sets
|
|
481
|
+
* ```javascript
|
|
482
|
+
* // The following example creates primary and secondary failover alias resource record sets that route traffic to ELB load balancers. Traffic is generally routed to the primary resource, in the Ohio region. If that resource is unavailable, traffic is routed to the secondary resource, in the Oregon region.
|
|
483
|
+
* const input = {
|
|
484
|
+
* "ChangeBatch": {
|
|
485
|
+
* "Changes": [
|
|
486
|
+
* {
|
|
487
|
+
* "Action": "CREATE",
|
|
488
|
+
* "ResourceRecordSet": {
|
|
489
|
+
* "AliasTarget": {
|
|
490
|
+
* "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ",
|
|
491
|
+
* "EvaluateTargetHealth": true,
|
|
492
|
+
* "HostedZoneId": "Z3AADJGX6KTTL2"
|
|
493
|
+
* },
|
|
494
|
+
* "Failover": "PRIMARY",
|
|
495
|
+
* "Name": "example.com",
|
|
496
|
+
* "SetIdentifier": "Ohio region",
|
|
497
|
+
* "Type": "A"
|
|
498
|
+
* }
|
|
499
|
+
* },
|
|
500
|
+
* {
|
|
501
|
+
* "Action": "CREATE",
|
|
502
|
+
* "ResourceRecordSet": {
|
|
503
|
+
* "AliasTarget": {
|
|
504
|
+
* "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ",
|
|
505
|
+
* "EvaluateTargetHealth": true,
|
|
506
|
+
* "HostedZoneId": "Z1H1FL5HABSF5"
|
|
507
|
+
* },
|
|
508
|
+
* "Failover": "SECONDARY",
|
|
509
|
+
* "Name": "example.com",
|
|
510
|
+
* "SetIdentifier": "Oregon region",
|
|
511
|
+
* "Type": "A"
|
|
512
|
+
* }
|
|
513
|
+
* }
|
|
514
|
+
* ],
|
|
515
|
+
* "Comment": "Failover alias configuration for example.com"
|
|
516
|
+
* },
|
|
517
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
518
|
+
* };
|
|
519
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
520
|
+
* const response = await client.send(command);
|
|
521
|
+
* /* response ==
|
|
522
|
+
* {
|
|
523
|
+
* "ChangeInfo": {
|
|
524
|
+
* "Comment": "Failover alias configuration for example.com",
|
|
525
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
526
|
+
* "Status": "PENDING",
|
|
527
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
528
|
+
* }
|
|
529
|
+
* }
|
|
530
|
+
* *\/
|
|
531
|
+
* // example id: to-create-failover-alias-resource-record-sets-1484607497724
|
|
532
|
+
* ```
|
|
533
|
+
*
|
|
534
|
+
* @example To create geolocation resource record sets
|
|
535
|
+
* ```javascript
|
|
536
|
+
* // The following example creates four geolocation resource record sets that use IPv4 addresses to route traffic to resources such as web servers running on EC2 instances. Traffic is routed to one of four IP addresses, for North America (NA), for South America (SA), for Europe (EU), and for all other locations (*).
|
|
537
|
+
* const input = {
|
|
538
|
+
* "ChangeBatch": {
|
|
539
|
+
* "Changes": [
|
|
540
|
+
* {
|
|
541
|
+
* "Action": "CREATE",
|
|
542
|
+
* "ResourceRecordSet": {
|
|
543
|
+
* "GeoLocation": {
|
|
544
|
+
* "ContinentCode": "NA"
|
|
545
|
+
* },
|
|
546
|
+
* "Name": "example.com",
|
|
547
|
+
* "ResourceRecords": [
|
|
548
|
+
* {
|
|
549
|
+
* "Value": "192.0.2.44"
|
|
550
|
+
* }
|
|
551
|
+
* ],
|
|
552
|
+
* "SetIdentifier": "North America",
|
|
553
|
+
* "TTL": 60,
|
|
554
|
+
* "Type": "A"
|
|
555
|
+
* }
|
|
556
|
+
* },
|
|
557
|
+
* {
|
|
558
|
+
* "Action": "CREATE",
|
|
559
|
+
* "ResourceRecordSet": {
|
|
560
|
+
* "GeoLocation": {
|
|
561
|
+
* "ContinentCode": "SA"
|
|
562
|
+
* },
|
|
563
|
+
* "Name": "example.com",
|
|
564
|
+
* "ResourceRecords": [
|
|
565
|
+
* {
|
|
566
|
+
* "Value": "192.0.2.45"
|
|
567
|
+
* }
|
|
568
|
+
* ],
|
|
569
|
+
* "SetIdentifier": "South America",
|
|
570
|
+
* "TTL": 60,
|
|
571
|
+
* "Type": "A"
|
|
572
|
+
* }
|
|
573
|
+
* },
|
|
574
|
+
* {
|
|
575
|
+
* "Action": "CREATE",
|
|
576
|
+
* "ResourceRecordSet": {
|
|
577
|
+
* "GeoLocation": {
|
|
578
|
+
* "ContinentCode": "EU"
|
|
579
|
+
* },
|
|
580
|
+
* "Name": "example.com",
|
|
581
|
+
* "ResourceRecords": [
|
|
582
|
+
* {
|
|
583
|
+
* "Value": "192.0.2.46"
|
|
584
|
+
* }
|
|
585
|
+
* ],
|
|
586
|
+
* "SetIdentifier": "Europe",
|
|
587
|
+
* "TTL": 60,
|
|
588
|
+
* "Type": "A"
|
|
589
|
+
* }
|
|
590
|
+
* },
|
|
591
|
+
* {
|
|
592
|
+
* "Action": "CREATE",
|
|
593
|
+
* "ResourceRecordSet": {
|
|
594
|
+
* "GeoLocation": {
|
|
595
|
+
* "CountryCode": "*"
|
|
596
|
+
* },
|
|
597
|
+
* "Name": "example.com",
|
|
598
|
+
* "ResourceRecords": [
|
|
599
|
+
* {
|
|
600
|
+
* "Value": "192.0.2.47"
|
|
601
|
+
* }
|
|
602
|
+
* ],
|
|
603
|
+
* "SetIdentifier": "Other locations",
|
|
604
|
+
* "TTL": 60,
|
|
605
|
+
* "Type": "A"
|
|
606
|
+
* }
|
|
607
|
+
* }
|
|
608
|
+
* ],
|
|
609
|
+
* "Comment": "Geolocation configuration for example.com"
|
|
610
|
+
* },
|
|
611
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
612
|
+
* };
|
|
613
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
614
|
+
* const response = await client.send(command);
|
|
615
|
+
* /* response ==
|
|
616
|
+
* {
|
|
617
|
+
* "ChangeInfo": {
|
|
618
|
+
* "Comment": "Geolocation configuration for example.com",
|
|
619
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
620
|
+
* "Status": "PENDING",
|
|
621
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
622
|
+
* }
|
|
623
|
+
* }
|
|
624
|
+
* *\/
|
|
625
|
+
* // example id: to-create-geolocation-resource-record-sets-1484612462466
|
|
626
|
+
* ```
|
|
627
|
+
*
|
|
628
|
+
* @example To create geolocation alias resource record sets
|
|
629
|
+
* ```javascript
|
|
630
|
+
* // The following example creates four geolocation alias resource record sets that route traffic to ELB load balancers. Traffic is routed to one of four IP addresses, for North America (NA), for South America (SA), for Europe (EU), and for all other locations (*).
|
|
631
|
+
* const input = {
|
|
632
|
+
* "ChangeBatch": {
|
|
633
|
+
* "Changes": [
|
|
634
|
+
* {
|
|
635
|
+
* "Action": "CREATE",
|
|
636
|
+
* "ResourceRecordSet": {
|
|
637
|
+
* "AliasTarget": {
|
|
638
|
+
* "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ",
|
|
639
|
+
* "EvaluateTargetHealth": true,
|
|
640
|
+
* "HostedZoneId": "Z3AADJGX6KTTL2"
|
|
641
|
+
* },
|
|
642
|
+
* "GeoLocation": {
|
|
643
|
+
* "ContinentCode": "NA"
|
|
644
|
+
* },
|
|
645
|
+
* "Name": "example.com",
|
|
646
|
+
* "SetIdentifier": "North America",
|
|
647
|
+
* "Type": "A"
|
|
648
|
+
* }
|
|
649
|
+
* },
|
|
650
|
+
* {
|
|
651
|
+
* "Action": "CREATE",
|
|
652
|
+
* "ResourceRecordSet": {
|
|
653
|
+
* "AliasTarget": {
|
|
654
|
+
* "DNSName": "example-com-234567890.sa-east-1.elb.amazonaws.com ",
|
|
655
|
+
* "EvaluateTargetHealth": true,
|
|
656
|
+
* "HostedZoneId": "Z2P70J7HTTTPLU"
|
|
657
|
+
* },
|
|
658
|
+
* "GeoLocation": {
|
|
659
|
+
* "ContinentCode": "SA"
|
|
660
|
+
* },
|
|
661
|
+
* "Name": "example.com",
|
|
662
|
+
* "SetIdentifier": "South America",
|
|
663
|
+
* "Type": "A"
|
|
664
|
+
* }
|
|
665
|
+
* },
|
|
666
|
+
* {
|
|
667
|
+
* "Action": "CREATE",
|
|
668
|
+
* "ResourceRecordSet": {
|
|
669
|
+
* "AliasTarget": {
|
|
670
|
+
* "DNSName": "example-com-234567890.eu-central-1.elb.amazonaws.com ",
|
|
671
|
+
* "EvaluateTargetHealth": true,
|
|
672
|
+
* "HostedZoneId": "Z215JYRZR1TBD5"
|
|
673
|
+
* },
|
|
674
|
+
* "GeoLocation": {
|
|
675
|
+
* "ContinentCode": "EU"
|
|
676
|
+
* },
|
|
677
|
+
* "Name": "example.com",
|
|
678
|
+
* "SetIdentifier": "Europe",
|
|
679
|
+
* "Type": "A"
|
|
680
|
+
* }
|
|
681
|
+
* },
|
|
682
|
+
* {
|
|
683
|
+
* "Action": "CREATE",
|
|
684
|
+
* "ResourceRecordSet": {
|
|
685
|
+
* "AliasTarget": {
|
|
686
|
+
* "DNSName": "example-com-234567890.ap-southeast-1.elb.amazonaws.com ",
|
|
687
|
+
* "EvaluateTargetHealth": true,
|
|
688
|
+
* "HostedZoneId": "Z1LMS91P8CMLE5"
|
|
689
|
+
* },
|
|
690
|
+
* "GeoLocation": {
|
|
691
|
+
* "CountryCode": "*"
|
|
692
|
+
* },
|
|
693
|
+
* "Name": "example.com",
|
|
694
|
+
* "SetIdentifier": "Other locations",
|
|
695
|
+
* "Type": "A"
|
|
696
|
+
* }
|
|
697
|
+
* }
|
|
698
|
+
* ],
|
|
699
|
+
* "Comment": "Geolocation alias configuration for example.com"
|
|
700
|
+
* },
|
|
701
|
+
* "HostedZoneId": "Z3M3LMPEXAMPLE"
|
|
702
|
+
* };
|
|
703
|
+
* const command = new ChangeResourceRecordSetsCommand(input);
|
|
704
|
+
* const response = await client.send(command);
|
|
705
|
+
* /* response ==
|
|
706
|
+
* {
|
|
707
|
+
* "ChangeInfo": {
|
|
708
|
+
* "Comment": "Geolocation alias configuration for example.com",
|
|
709
|
+
* "Id": "/change/C2682N5HXP0BZ4",
|
|
710
|
+
* "Status": "PENDING",
|
|
711
|
+
* "SubmittedAt": "2017-02-10T01:36:41.958Z"
|
|
712
|
+
* }
|
|
713
|
+
* }
|
|
714
|
+
* *\/
|
|
715
|
+
* // example id: to-create-geolocation-alias-resource-record-sets-1484612871203
|
|
716
|
+
* ```
|
|
717
|
+
*
|
|
121
718
|
*/
|
|
122
719
|
export declare class ChangeResourceRecordSetsCommand extends $Command<ChangeResourceRecordSetsCommandInput, ChangeResourceRecordSetsCommandOutput, Route53ClientResolvedConfig> {
|
|
123
720
|
readonly input: ChangeResourceRecordSetsCommandInput;
|
|
@@ -31,6 +31,31 @@ export interface ChangeTagsForResourceCommandOutput extends ChangeTagsForResourc
|
|
|
31
31
|
* @see {@link ChangeTagsForResourceCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @example To add or remove tags from a hosted zone or health check
|
|
35
|
+
* ```javascript
|
|
36
|
+
* // The following example adds two tags and removes one tag from the hosted zone with ID Z3M3LMPEXAMPLE.
|
|
37
|
+
* const input = {
|
|
38
|
+
* "AddTags": [
|
|
39
|
+
* {
|
|
40
|
+
* "Key": "apex",
|
|
41
|
+
* "Value": "3874"
|
|
42
|
+
* },
|
|
43
|
+
* {
|
|
44
|
+
* "Key": "acme",
|
|
45
|
+
* "Value": "4938"
|
|
46
|
+
* }
|
|
47
|
+
* ],
|
|
48
|
+
* "RemoveTagKeys": [
|
|
49
|
+
* "Nadir"
|
|
50
|
+
* ],
|
|
51
|
+
* "ResourceId": "Z3M3LMPEXAMPLE",
|
|
52
|
+
* "ResourceType": "hostedzone"
|
|
53
|
+
* };
|
|
54
|
+
* const command = new ChangeTagsForResourceCommand(input);
|
|
55
|
+
* await client.send(command);
|
|
56
|
+
* // example id: to-add-or-remove-tags-from-a-hosted-zone-or-health-check-1484084752409
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
34
59
|
*/
|
|
35
60
|
export declare class ChangeTagsForResourceCommand extends $Command<ChangeTagsForResourceCommandInput, ChangeTagsForResourceCommandOutput, Route53ClientResolvedConfig> {
|
|
36
61
|
readonly input: ChangeTagsForResourceCommandInput;
|
|
@@ -30,6 +30,38 @@ export interface GetHostedZoneCommandOutput extends GetHostedZoneResponse, __Met
|
|
|
30
30
|
* @see {@link GetHostedZoneCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @example To get information about a hosted zone
|
|
34
|
+
* ```javascript
|
|
35
|
+
* // The following example gets information about the Z3M3LMPEXAMPLE hosted zone.
|
|
36
|
+
* const input = {
|
|
37
|
+
* "Id": "Z3M3LMPEXAMPLE"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetHostedZoneCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "DelegationSet": {
|
|
44
|
+
* "NameServers": [
|
|
45
|
+
* "ns-2048.awsdns-64.com",
|
|
46
|
+
* "ns-2049.awsdns-65.net",
|
|
47
|
+
* "ns-2050.awsdns-66.org",
|
|
48
|
+
* "ns-2051.awsdns-67.co.uk"
|
|
49
|
+
* ]
|
|
50
|
+
* },
|
|
51
|
+
* "HostedZone": {
|
|
52
|
+
* "CallerReference": "C741617D-04E4-F8DE-B9D7-0D150FC61C2E",
|
|
53
|
+
* "Config": {
|
|
54
|
+
* "PrivateZone": false
|
|
55
|
+
* },
|
|
56
|
+
* "Id": "/hostedzone/Z3M3LMPEXAMPLE",
|
|
57
|
+
* "Name": "myawsbucket.com.",
|
|
58
|
+
* "ResourceRecordSetCount": 8
|
|
59
|
+
* }
|
|
60
|
+
* }
|
|
61
|
+
* *\/
|
|
62
|
+
* // example id: to-get-information-about-a-hosted-zone-1481752361124
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
33
65
|
*/
|
|
34
66
|
export declare class GetHostedZoneCommand extends $Command<GetHostedZoneCommandInput, GetHostedZoneCommandOutput, Route53ClientResolvedConfig> {
|
|
35
67
|
readonly input: GetHostedZoneCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route-53",
|
|
3
3
|
"description": "AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.289.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-sdk-route53": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.289.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.289.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.289.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.289.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.289.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.289.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.289.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.289.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.289.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.289.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.289.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.289.0",
|
|
35
|
+
"@aws-sdk/middleware-sdk-route53": "3.289.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.289.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.289.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.289.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.289.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.289.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.289.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.289.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.289.0",
|
|
44
|
+
"@aws-sdk/types": "3.289.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.289.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.208.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.289.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.289.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.289.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.289.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.289.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.289.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
56
|
-
"@aws-sdk/util-waiter": "3.
|
|
56
|
+
"@aws-sdk/util-waiter": "3.289.0",
|
|
57
57
|
"@aws-sdk/xml-builder": "3.201.0",
|
|
58
58
|
"fast-xml-parser": "4.1.2",
|
|
59
59
|
"tslib": "^2.3.1"
|