@aws-sdk/client-route-53 3.775.0 → 3.777.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.
Files changed (71) hide show
  1. package/dist-types/commands/ActivateKeySigningKeyCommand.d.ts +1 -0
  2. package/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +13 -13
  3. package/dist-types/commands/ChangeCidrCollectionCommand.d.ts +1 -0
  4. package/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +388 -397
  5. package/dist-types/commands/ChangeTagsForResourceCommand.d.ts +14 -11
  6. package/dist-types/commands/CreateCidrCollectionCommand.d.ts +1 -0
  7. package/dist-types/commands/CreateHealthCheckCommand.d.ts +1 -0
  8. package/dist-types/commands/CreateHostedZoneCommand.d.ts +1 -0
  9. package/dist-types/commands/CreateKeySigningKeyCommand.d.ts +1 -0
  10. package/dist-types/commands/CreateQueryLoggingConfigCommand.d.ts +1 -0
  11. package/dist-types/commands/CreateReusableDelegationSetCommand.d.ts +1 -0
  12. package/dist-types/commands/CreateTrafficPolicyCommand.d.ts +1 -0
  13. package/dist-types/commands/CreateTrafficPolicyInstanceCommand.d.ts +1 -0
  14. package/dist-types/commands/CreateTrafficPolicyVersionCommand.d.ts +1 -0
  15. package/dist-types/commands/CreateVPCAssociationAuthorizationCommand.d.ts +1 -0
  16. package/dist-types/commands/DeactivateKeySigningKeyCommand.d.ts +1 -0
  17. package/dist-types/commands/DeleteCidrCollectionCommand.d.ts +1 -0
  18. package/dist-types/commands/DeleteHealthCheckCommand.d.ts +1 -0
  19. package/dist-types/commands/DeleteHostedZoneCommand.d.ts +1 -0
  20. package/dist-types/commands/DeleteKeySigningKeyCommand.d.ts +1 -0
  21. package/dist-types/commands/DeleteQueryLoggingConfigCommand.d.ts +1 -0
  22. package/dist-types/commands/DeleteReusableDelegationSetCommand.d.ts +1 -0
  23. package/dist-types/commands/DeleteTrafficPolicyCommand.d.ts +1 -0
  24. package/dist-types/commands/DeleteTrafficPolicyInstanceCommand.d.ts +1 -0
  25. package/dist-types/commands/DeleteVPCAssociationAuthorizationCommand.d.ts +1 -0
  26. package/dist-types/commands/DisableHostedZoneDNSSECCommand.d.ts +1 -0
  27. package/dist-types/commands/DisassociateVPCFromHostedZoneCommand.d.ts +1 -0
  28. package/dist-types/commands/EnableHostedZoneDNSSECCommand.d.ts +1 -0
  29. package/dist-types/commands/GetAccountLimitCommand.d.ts +1 -0
  30. package/dist-types/commands/GetChangeCommand.d.ts +1 -0
  31. package/dist-types/commands/GetCheckerIpRangesCommand.d.ts +1 -0
  32. package/dist-types/commands/GetDNSSECCommand.d.ts +1 -0
  33. package/dist-types/commands/GetGeoLocationCommand.d.ts +1 -0
  34. package/dist-types/commands/GetHealthCheckCommand.d.ts +1 -0
  35. package/dist-types/commands/GetHealthCheckCountCommand.d.ts +1 -0
  36. package/dist-types/commands/GetHealthCheckLastFailureReasonCommand.d.ts +1 -0
  37. package/dist-types/commands/GetHealthCheckStatusCommand.d.ts +1 -0
  38. package/dist-types/commands/GetHostedZoneCommand.d.ts +13 -13
  39. package/dist-types/commands/GetHostedZoneCountCommand.d.ts +1 -0
  40. package/dist-types/commands/GetHostedZoneLimitCommand.d.ts +1 -0
  41. package/dist-types/commands/GetQueryLoggingConfigCommand.d.ts +1 -0
  42. package/dist-types/commands/GetReusableDelegationSetCommand.d.ts +1 -0
  43. package/dist-types/commands/GetReusableDelegationSetLimitCommand.d.ts +1 -0
  44. package/dist-types/commands/GetTrafficPolicyCommand.d.ts +1 -0
  45. package/dist-types/commands/GetTrafficPolicyInstanceCommand.d.ts +1 -0
  46. package/dist-types/commands/GetTrafficPolicyInstanceCountCommand.d.ts +1 -0
  47. package/dist-types/commands/ListCidrBlocksCommand.d.ts +1 -0
  48. package/dist-types/commands/ListCidrCollectionsCommand.d.ts +1 -0
  49. package/dist-types/commands/ListCidrLocationsCommand.d.ts +1 -0
  50. package/dist-types/commands/ListGeoLocationsCommand.d.ts +1 -0
  51. package/dist-types/commands/ListHealthChecksCommand.d.ts +1 -0
  52. package/dist-types/commands/ListHostedZonesByNameCommand.d.ts +1 -0
  53. package/dist-types/commands/ListHostedZonesByVPCCommand.d.ts +1 -0
  54. package/dist-types/commands/ListHostedZonesCommand.d.ts +1 -0
  55. package/dist-types/commands/ListQueryLoggingConfigsCommand.d.ts +1 -0
  56. package/dist-types/commands/ListResourceRecordSetsCommand.d.ts +1 -0
  57. package/dist-types/commands/ListReusableDelegationSetsCommand.d.ts +1 -0
  58. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
  59. package/dist-types/commands/ListTagsForResourcesCommand.d.ts +1 -0
  60. package/dist-types/commands/ListTrafficPoliciesCommand.d.ts +1 -0
  61. package/dist-types/commands/ListTrafficPolicyInstancesByHostedZoneCommand.d.ts +1 -0
  62. package/dist-types/commands/ListTrafficPolicyInstancesByPolicyCommand.d.ts +1 -0
  63. package/dist-types/commands/ListTrafficPolicyInstancesCommand.d.ts +1 -0
  64. package/dist-types/commands/ListTrafficPolicyVersionsCommand.d.ts +1 -0
  65. package/dist-types/commands/ListVPCAssociationAuthorizationsCommand.d.ts +1 -0
  66. package/dist-types/commands/TestDNSAnswerCommand.d.ts +1 -0
  67. package/dist-types/commands/UpdateHealthCheckCommand.d.ts +1 -0
  68. package/dist-types/commands/UpdateHostedZoneCommentCommand.d.ts +1 -0
  69. package/dist-types/commands/UpdateTrafficPolicyCommentCommand.d.ts +1 -0
  70. package/dist-types/commands/UpdateTrafficPolicyInstanceCommand.d.ts +1 -0
  71. package/package.json +2 -2
@@ -216,604 +216,595 @@ declare const ChangeResourceRecordSetsCommand_base: {
216
216
  * @throws {@link Route53ServiceException}
217
217
  * <p>Base exception class for all service exceptions from Route53 service.</p>
218
218
  *
219
- * @public
220
- * @example To create a basic resource record set
219
+ *
220
+ * @example To create an alias resource record set
221
221
  * ```javascript
222
- * // The following example creates a resource record set that routes Internet traffic to a resource with an IP address of 192.0.2.44.
222
+ * // The following example creates an alias resource record set that routes traffic to a CloudFront distribution.
223
223
  * const input = {
224
- * "ChangeBatch": {
225
- * "Changes": [
224
+ * ChangeBatch: {
225
+ * Changes: [
226
226
  * {
227
- * "Action": "CREATE",
228
- * "ResourceRecordSet": {
229
- * "Name": "example.com",
230
- * "ResourceRecords": [
231
- * {
232
- * "Value": "192.0.2.44"
233
- * }
234
- * ],
235
- * "TTL": 60,
236
- * "Type": "A"
227
+ * Action: "CREATE",
228
+ * ResourceRecordSet: {
229
+ * AliasTarget: {
230
+ * DNSName: "d123rk29d0stfj.cloudfront.net",
231
+ * EvaluateTargetHealth: false,
232
+ * HostedZoneId: "Z2FDTNDATAQYW2"
233
+ * },
234
+ * Name: "example.com",
235
+ * Type: "A"
237
236
  * }
238
237
  * }
239
238
  * ],
240
- * "Comment": "Web server for example.com"
239
+ * Comment: "CloudFront distribution for example.com"
241
240
  * },
242
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
241
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
243
242
  * };
244
243
  * const command = new ChangeResourceRecordSetsCommand(input);
245
244
  * const response = await client.send(command);
246
- * /* response ==
245
+ * /* response is
247
246
  * {
248
- * "ChangeInfo": {
249
- * "Comment": "Web server for example.com",
250
- * "Id": "/change/C2682N5HXP0BZ4",
251
- * "Status": "PENDING",
252
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
247
+ * ChangeInfo: {
248
+ * Comment: "CloudFront distribution for example.com",
249
+ * Id: "/change/C2682N5HXP0BZ4",
250
+ * Status: "PENDING",
251
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
253
252
  * }
254
253
  * }
255
254
  * *\/
256
- * // example id: to-create-update-or-delete-resource-record-sets-1484344703668
257
255
  * ```
258
256
  *
259
- * @example To create weighted resource record sets
257
+ * @example To create failover alias resource record sets
260
258
  * ```javascript
261
- * // 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.
259
+ * // 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.
262
260
  * const input = {
263
- * "ChangeBatch": {
264
- * "Changes": [
261
+ * ChangeBatch: {
262
+ * Changes: [
265
263
  * {
266
- * "Action": "CREATE",
267
- * "ResourceRecordSet": {
268
- * "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba",
269
- * "Name": "example.com",
270
- * "ResourceRecords": [
271
- * {
272
- * "Value": "192.0.2.44"
273
- * }
274
- * ],
275
- * "SetIdentifier": "Seattle data center",
276
- * "TTL": 60,
277
- * "Type": "A",
278
- * "Weight": 100
264
+ * Action: "CREATE",
265
+ * ResourceRecordSet: {
266
+ * AliasTarget: {
267
+ * DNSName: "example-com-123456789.us-east-2.elb.amazonaws.com ",
268
+ * EvaluateTargetHealth: true,
269
+ * HostedZoneId: "Z3AADJGX6KTTL2"
270
+ * },
271
+ * Failover: "PRIMARY",
272
+ * Name: "example.com",
273
+ * SetIdentifier: "Ohio region",
274
+ * Type: "A"
279
275
  * }
280
276
  * },
281
277
  * {
282
- * "Action": "CREATE",
283
- * "ResourceRecordSet": {
284
- * "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba",
285
- * "Name": "example.com",
286
- * "ResourceRecords": [
287
- * {
288
- * "Value": "192.0.2.45"
289
- * }
290
- * ],
291
- * "SetIdentifier": "Portland data center",
292
- * "TTL": 60,
293
- * "Type": "A",
294
- * "Weight": 200
278
+ * Action: "CREATE",
279
+ * ResourceRecordSet: {
280
+ * AliasTarget: {
281
+ * DNSName: "example-com-987654321.us-west-2.elb.amazonaws.com ",
282
+ * EvaluateTargetHealth: true,
283
+ * HostedZoneId: "Z1H1FL5HABSF5"
284
+ * },
285
+ * Failover: "SECONDARY",
286
+ * Name: "example.com",
287
+ * SetIdentifier: "Oregon region",
288
+ * Type: "A"
295
289
  * }
296
290
  * }
297
291
  * ],
298
- * "Comment": "Web servers for example.com"
292
+ * Comment: "Failover alias configuration for example.com"
299
293
  * },
300
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
294
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
301
295
  * };
302
296
  * const command = new ChangeResourceRecordSetsCommand(input);
303
297
  * const response = await client.send(command);
304
- * /* response ==
298
+ * /* response is
305
299
  * {
306
- * "ChangeInfo": {
307
- * "Comment": "Web servers for example.com",
308
- * "Id": "/change/C2682N5HXP0BZ4",
309
- * "Status": "PENDING",
310
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
300
+ * ChangeInfo: {
301
+ * Comment: "Failover alias configuration for example.com",
302
+ * Id: "/change/C2682N5HXP0BZ4",
303
+ * Status: "PENDING",
304
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
311
305
  * }
312
306
  * }
313
307
  * *\/
314
- * // example id: to-create-weighted-resource-record-sets-1484348208522
315
308
  * ```
316
309
  *
317
- * @example To create an alias resource record set
310
+ * @example To create failover resource record sets
318
311
  * ```javascript
319
- * // The following example creates an alias resource record set that routes traffic to a CloudFront distribution.
312
+ * // 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.
320
313
  * const input = {
321
- * "ChangeBatch": {
322
- * "Changes": [
314
+ * ChangeBatch: {
315
+ * Changes: [
323
316
  * {
324
- * "Action": "CREATE",
325
- * "ResourceRecordSet": {
326
- * "AliasTarget": {
327
- * "DNSName": "d123rk29d0stfj.cloudfront.net",
328
- * "EvaluateTargetHealth": false,
329
- * "HostedZoneId": "Z2FDTNDATAQYW2"
330
- * },
331
- * "Name": "example.com",
332
- * "Type": "A"
317
+ * Action: "CREATE",
318
+ * ResourceRecordSet: {
319
+ * Failover: "PRIMARY",
320
+ * HealthCheckId: "abcdef11-2222-3333-4444-555555fedcba",
321
+ * Name: "example.com",
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
+ * Failover: "SECONDARY",
336
+ * HealthCheckId: "abcdef66-7777-8888-9999-000000fedcba",
337
+ * Name: "example.com",
338
+ * ResourceRecords: [
339
+ * {
340
+ * Value: "192.0.2.45"
341
+ * }
342
+ * ],
343
+ * SetIdentifier: "Oregon region",
344
+ * TTL: 60,
345
+ * Type: "A"
333
346
  * }
334
347
  * }
335
348
  * ],
336
- * "Comment": "CloudFront distribution for example.com"
349
+ * Comment: "Failover configuration for example.com"
337
350
  * },
338
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
351
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
339
352
  * };
340
353
  * const command = new ChangeResourceRecordSetsCommand(input);
341
354
  * const response = await client.send(command);
342
- * /* response ==
355
+ * /* response is
343
356
  * {
344
- * "ChangeInfo": {
345
- * "Comment": "CloudFront distribution for example.com",
346
- * "Id": "/change/C2682N5HXP0BZ4",
347
- * "Status": "PENDING",
348
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
357
+ * ChangeInfo: {
358
+ * Comment: "Failover configuration for example.com",
359
+ * Id: "/change/C2682N5HXP0BZ4",
360
+ * Status: "PENDING",
361
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
349
362
  * }
350
363
  * }
351
364
  * *\/
352
- * // example id: to-create-an-alias-resource-record-set-1484348404062
353
365
  * ```
354
366
  *
355
- * @example To create weighted alias resource record sets
367
+ * @example To create geolocation alias resource record sets
356
368
  * ```javascript
357
- * // 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.
369
+ * // 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 (*).
358
370
  * const input = {
359
- * "ChangeBatch": {
360
- * "Changes": [
371
+ * ChangeBatch: {
372
+ * Changes: [
361
373
  * {
362
- * "Action": "CREATE",
363
- * "ResourceRecordSet": {
364
- * "AliasTarget": {
365
- * "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ",
366
- * "EvaluateTargetHealth": true,
367
- * "HostedZoneId": "Z3AADJGX6KTTL2"
374
+ * Action: "CREATE",
375
+ * ResourceRecordSet: {
376
+ * AliasTarget: {
377
+ * DNSName: "example-com-123456789.us-east-2.elb.amazonaws.com ",
378
+ * EvaluateTargetHealth: true,
379
+ * HostedZoneId: "Z3AADJGX6KTTL2"
368
380
  * },
369
- * "Name": "example.com",
370
- * "SetIdentifier": "Ohio region",
371
- * "Type": "A",
372
- * "Weight": 100
381
+ * GeoLocation: {
382
+ * ContinentCode: "NA"
383
+ * },
384
+ * Name: "example.com",
385
+ * SetIdentifier: "North America",
386
+ * Type: "A"
373
387
  * }
374
388
  * },
375
389
  * {
376
- * "Action": "CREATE",
377
- * "ResourceRecordSet": {
378
- * "AliasTarget": {
379
- * "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ",
380
- * "EvaluateTargetHealth": true,
381
- * "HostedZoneId": "Z1H1FL5HABSF5"
390
+ * Action: "CREATE",
391
+ * ResourceRecordSet: {
392
+ * AliasTarget: {
393
+ * DNSName: "example-com-234567890.sa-east-1.elb.amazonaws.com ",
394
+ * EvaluateTargetHealth: true,
395
+ * HostedZoneId: "Z2P70J7HTTTPLU"
396
+ * },
397
+ * GeoLocation: {
398
+ * ContinentCode: "SA"
399
+ * },
400
+ * Name: "example.com",
401
+ * SetIdentifier: "South America",
402
+ * Type: "A"
403
+ * }
404
+ * },
405
+ * {
406
+ * Action: "CREATE",
407
+ * ResourceRecordSet: {
408
+ * AliasTarget: {
409
+ * DNSName: "example-com-234567890.eu-central-1.elb.amazonaws.com ",
410
+ * EvaluateTargetHealth: true,
411
+ * HostedZoneId: "Z215JYRZR1TBD5"
412
+ * },
413
+ * GeoLocation: {
414
+ * ContinentCode: "EU"
415
+ * },
416
+ * Name: "example.com",
417
+ * SetIdentifier: "Europe",
418
+ * Type: "A"
419
+ * }
420
+ * },
421
+ * {
422
+ * Action: "CREATE",
423
+ * ResourceRecordSet: {
424
+ * AliasTarget: {
425
+ * DNSName: "example-com-234567890.ap-southeast-1.elb.amazonaws.com ",
426
+ * EvaluateTargetHealth: true,
427
+ * HostedZoneId: "Z1LMS91P8CMLE5"
428
+ * },
429
+ * GeoLocation: {
430
+ * CountryCode: "*"
382
431
  * },
383
- * "Name": "example.com",
384
- * "SetIdentifier": "Oregon region",
385
- * "Type": "A",
386
- * "Weight": 200
432
+ * Name: "example.com",
433
+ * SetIdentifier: "Other locations",
434
+ * Type: "A"
387
435
  * }
388
436
  * }
389
437
  * ],
390
- * "Comment": "ELB load balancers for example.com"
438
+ * Comment: "Geolocation alias configuration for example.com"
391
439
  * },
392
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
440
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
393
441
  * };
394
442
  * const command = new ChangeResourceRecordSetsCommand(input);
395
443
  * const response = await client.send(command);
396
- * /* response ==
444
+ * /* response is
397
445
  * {
398
- * "ChangeInfo": {
399
- * "Comment": "ELB load balancers for example.com",
400
- * "Id": "/change/C2682N5HXP0BZ4",
401
- * "Status": "PENDING",
402
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
446
+ * ChangeInfo: {
447
+ * Comment: "Geolocation alias configuration for example.com",
448
+ * Id: "/change/C2682N5HXP0BZ4",
449
+ * Status: "PENDING",
450
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
403
451
  * }
404
452
  * }
405
453
  * *\/
406
- * // example id: to-create-weighted-alias-resource-record-sets-1484349467416
407
454
  * ```
408
455
  *
409
- * @example To create latency resource record sets
456
+ * @example To create geolocation resource record sets
410
457
  * ```javascript
411
- * // 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.
458
+ * // 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 (*).
412
459
  * const input = {
413
- * "ChangeBatch": {
414
- * "Changes": [
460
+ * ChangeBatch: {
461
+ * Changes: [
415
462
  * {
416
- * "Action": "CREATE",
417
- * "ResourceRecordSet": {
418
- * "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba",
419
- * "Name": "example.com",
420
- * "Region": "us-east-2",
421
- * "ResourceRecords": [
463
+ * Action: "CREATE",
464
+ * ResourceRecordSet: {
465
+ * GeoLocation: {
466
+ * ContinentCode: "NA"
467
+ * },
468
+ * Name: "example.com",
469
+ * ResourceRecords: [
422
470
  * {
423
- * "Value": "192.0.2.44"
471
+ * Value: "192.0.2.44"
424
472
  * }
425
473
  * ],
426
- * "SetIdentifier": "Ohio region",
427
- * "TTL": 60,
428
- * "Type": "A"
474
+ * SetIdentifier: "North America",
475
+ * TTL: 60,
476
+ * Type: "A"
429
477
  * }
430
478
  * },
431
479
  * {
432
- * "Action": "CREATE",
433
- * "ResourceRecordSet": {
434
- * "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba",
435
- * "Name": "example.com",
436
- * "Region": "us-west-2",
437
- * "ResourceRecords": [
480
+ * Action: "CREATE",
481
+ * ResourceRecordSet: {
482
+ * GeoLocation: {
483
+ * ContinentCode: "SA"
484
+ * },
485
+ * Name: "example.com",
486
+ * ResourceRecords: [
438
487
  * {
439
- * "Value": "192.0.2.45"
488
+ * Value: "192.0.2.45"
440
489
  * }
441
490
  * ],
442
- * "SetIdentifier": "Oregon region",
443
- * "TTL": 60,
444
- * "Type": "A"
491
+ * SetIdentifier: "South America",
492
+ * TTL: 60,
493
+ * Type: "A"
494
+ * }
495
+ * },
496
+ * {
497
+ * Action: "CREATE",
498
+ * ResourceRecordSet: {
499
+ * GeoLocation: {
500
+ * ContinentCode: "EU"
501
+ * },
502
+ * Name: "example.com",
503
+ * ResourceRecords: [
504
+ * {
505
+ * Value: "192.0.2.46"
506
+ * }
507
+ * ],
508
+ * SetIdentifier: "Europe",
509
+ * TTL: 60,
510
+ * Type: "A"
511
+ * }
512
+ * },
513
+ * {
514
+ * Action: "CREATE",
515
+ * ResourceRecordSet: {
516
+ * GeoLocation: {
517
+ * CountryCode: "*"
518
+ * },
519
+ * Name: "example.com",
520
+ * ResourceRecords: [
521
+ * {
522
+ * Value: "192.0.2.47"
523
+ * }
524
+ * ],
525
+ * SetIdentifier: "Other locations",
526
+ * TTL: 60,
527
+ * Type: "A"
445
528
  * }
446
529
  * }
447
530
  * ],
448
- * "Comment": "EC2 instances for example.com"
531
+ * Comment: "Geolocation configuration for example.com"
449
532
  * },
450
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
533
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
451
534
  * };
452
535
  * const command = new ChangeResourceRecordSetsCommand(input);
453
536
  * const response = await client.send(command);
454
- * /* response ==
537
+ * /* response is
455
538
  * {
456
- * "ChangeInfo": {
457
- * "Comment": "EC2 instances for example.com",
458
- * "Id": "/change/C2682N5HXP0BZ4",
459
- * "Status": "PENDING",
460
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
539
+ * ChangeInfo: {
540
+ * Comment: "Geolocation configuration for example.com",
541
+ * Id: "/change/C2682N5HXP0BZ4",
542
+ * Status: "PENDING",
543
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
461
544
  * }
462
545
  * }
463
546
  * *\/
464
- * // example id: to-create-latency-resource-record-sets-1484350219917
465
547
  * ```
466
548
  *
467
549
  * @example To create latency alias resource record sets
468
550
  * ```javascript
469
551
  * // 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.
470
552
  * const input = {
471
- * "ChangeBatch": {
472
- * "Changes": [
553
+ * ChangeBatch: {
554
+ * Changes: [
473
555
  * {
474
- * "Action": "CREATE",
475
- * "ResourceRecordSet": {
476
- * "AliasTarget": {
477
- * "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ",
478
- * "EvaluateTargetHealth": true,
479
- * "HostedZoneId": "Z3AADJGX6KTTL2"
556
+ * Action: "CREATE",
557
+ * ResourceRecordSet: {
558
+ * AliasTarget: {
559
+ * DNSName: "example-com-123456789.us-east-2.elb.amazonaws.com ",
560
+ * EvaluateTargetHealth: true,
561
+ * HostedZoneId: "Z3AADJGX6KTTL2"
480
562
  * },
481
- * "Name": "example.com",
482
- * "Region": "us-east-2",
483
- * "SetIdentifier": "Ohio region",
484
- * "Type": "A"
563
+ * Name: "example.com",
564
+ * Region: "us-east-2",
565
+ * SetIdentifier: "Ohio region",
566
+ * Type: "A"
485
567
  * }
486
568
  * },
487
569
  * {
488
- * "Action": "CREATE",
489
- * "ResourceRecordSet": {
490
- * "AliasTarget": {
491
- * "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ",
492
- * "EvaluateTargetHealth": true,
493
- * "HostedZoneId": "Z1H1FL5HABSF5"
570
+ * Action: "CREATE",
571
+ * ResourceRecordSet: {
572
+ * AliasTarget: {
573
+ * DNSName: "example-com-987654321.us-west-2.elb.amazonaws.com ",
574
+ * EvaluateTargetHealth: true,
575
+ * HostedZoneId: "Z1H1FL5HABSF5"
494
576
  * },
495
- * "Name": "example.com",
496
- * "Region": "us-west-2",
497
- * "SetIdentifier": "Oregon region",
498
- * "Type": "A"
577
+ * Name: "example.com",
578
+ * Region: "us-west-2",
579
+ * SetIdentifier: "Oregon region",
580
+ * Type: "A"
499
581
  * }
500
582
  * }
501
583
  * ],
502
- * "Comment": "ELB load balancers for example.com"
584
+ * Comment: "ELB load balancers for example.com"
503
585
  * },
504
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
586
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
505
587
  * };
506
588
  * const command = new ChangeResourceRecordSetsCommand(input);
507
589
  * const response = await client.send(command);
508
- * /* response ==
590
+ * /* response is
509
591
  * {
510
- * "ChangeInfo": {
511
- * "Comment": "ELB load balancers for example.com",
512
- * "Id": "/change/C2682N5HXP0BZ4",
513
- * "Status": "PENDING",
514
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
592
+ * ChangeInfo: {
593
+ * Comment: "ELB load balancers for example.com",
594
+ * Id: "/change/C2682N5HXP0BZ4",
595
+ * Status: "PENDING",
596
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
515
597
  * }
516
598
  * }
517
599
  * *\/
518
- * // example id: to-create-latency-alias-resource-record-sets-1484601774179
519
600
  * ```
520
601
  *
521
- * @example To create failover resource record sets
602
+ * @example To create latency resource record sets
522
603
  * ```javascript
523
- * // 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.
604
+ * // 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.
524
605
  * const input = {
525
- * "ChangeBatch": {
526
- * "Changes": [
606
+ * ChangeBatch: {
607
+ * Changes: [
527
608
  * {
528
- * "Action": "CREATE",
529
- * "ResourceRecordSet": {
530
- * "Failover": "PRIMARY",
531
- * "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba",
532
- * "Name": "example.com",
533
- * "ResourceRecords": [
609
+ * Action: "CREATE",
610
+ * ResourceRecordSet: {
611
+ * HealthCheckId: "abcdef11-2222-3333-4444-555555fedcba",
612
+ * Name: "example.com",
613
+ * Region: "us-east-2",
614
+ * ResourceRecords: [
534
615
  * {
535
- * "Value": "192.0.2.44"
616
+ * Value: "192.0.2.44"
536
617
  * }
537
618
  * ],
538
- * "SetIdentifier": "Ohio region",
539
- * "TTL": 60,
540
- * "Type": "A"
619
+ * SetIdentifier: "Ohio region",
620
+ * TTL: 60,
621
+ * Type: "A"
541
622
  * }
542
623
  * },
543
624
  * {
544
- * "Action": "CREATE",
545
- * "ResourceRecordSet": {
546
- * "Failover": "SECONDARY",
547
- * "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba",
548
- * "Name": "example.com",
549
- * "ResourceRecords": [
625
+ * Action: "CREATE",
626
+ * ResourceRecordSet: {
627
+ * HealthCheckId: "abcdef66-7777-8888-9999-000000fedcba",
628
+ * Name: "example.com",
629
+ * Region: "us-west-2",
630
+ * ResourceRecords: [
550
631
  * {
551
- * "Value": "192.0.2.45"
632
+ * Value: "192.0.2.45"
552
633
  * }
553
634
  * ],
554
- * "SetIdentifier": "Oregon region",
555
- * "TTL": 60,
556
- * "Type": "A"
635
+ * SetIdentifier: "Oregon region",
636
+ * TTL: 60,
637
+ * Type: "A"
557
638
  * }
558
639
  * }
559
640
  * ],
560
- * "Comment": "Failover configuration for example.com"
641
+ * Comment: "EC2 instances for example.com"
561
642
  * },
562
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
643
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
563
644
  * };
564
645
  * const command = new ChangeResourceRecordSetsCommand(input);
565
646
  * const response = await client.send(command);
566
- * /* response ==
647
+ * /* response is
567
648
  * {
568
- * "ChangeInfo": {
569
- * "Comment": "Failover configuration for example.com",
570
- * "Id": "/change/C2682N5HXP0BZ4",
571
- * "Status": "PENDING",
572
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
649
+ * ChangeInfo: {
650
+ * Comment: "EC2 instances for example.com",
651
+ * Id: "/change/C2682N5HXP0BZ4",
652
+ * Status: "PENDING",
653
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
573
654
  * }
574
655
  * }
575
656
  * *\/
576
- * // example id: to-create-failover-resource-record-sets-1484604541740
577
657
  * ```
578
658
  *
579
- * @example To create failover alias resource record sets
659
+ * @example To create a basic resource record set
580
660
  * ```javascript
581
- * // 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.
661
+ * // The following example creates a resource record set that routes Internet traffic to a resource with an IP address of 192.0.2.44.
582
662
  * const input = {
583
- * "ChangeBatch": {
584
- * "Changes": [
585
- * {
586
- * "Action": "CREATE",
587
- * "ResourceRecordSet": {
588
- * "AliasTarget": {
589
- * "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ",
590
- * "EvaluateTargetHealth": true,
591
- * "HostedZoneId": "Z3AADJGX6KTTL2"
592
- * },
593
- * "Failover": "PRIMARY",
594
- * "Name": "example.com",
595
- * "SetIdentifier": "Ohio region",
596
- * "Type": "A"
597
- * }
598
- * },
663
+ * ChangeBatch: {
664
+ * Changes: [
599
665
  * {
600
- * "Action": "CREATE",
601
- * "ResourceRecordSet": {
602
- * "AliasTarget": {
603
- * "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ",
604
- * "EvaluateTargetHealth": true,
605
- * "HostedZoneId": "Z1H1FL5HABSF5"
606
- * },
607
- * "Failover": "SECONDARY",
608
- * "Name": "example.com",
609
- * "SetIdentifier": "Oregon region",
610
- * "Type": "A"
666
+ * Action: "CREATE",
667
+ * ResourceRecordSet: {
668
+ * Name: "example.com",
669
+ * ResourceRecords: [
670
+ * {
671
+ * Value: "192.0.2.44"
672
+ * }
673
+ * ],
674
+ * TTL: 60,
675
+ * Type: "A"
611
676
  * }
612
677
  * }
613
678
  * ],
614
- * "Comment": "Failover alias configuration for example.com"
679
+ * Comment: "Web server for example.com"
615
680
  * },
616
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
681
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
617
682
  * };
618
683
  * const command = new ChangeResourceRecordSetsCommand(input);
619
684
  * const response = await client.send(command);
620
- * /* response ==
685
+ * /* response is
621
686
  * {
622
- * "ChangeInfo": {
623
- * "Comment": "Failover alias configuration for example.com",
624
- * "Id": "/change/C2682N5HXP0BZ4",
625
- * "Status": "PENDING",
626
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
687
+ * ChangeInfo: {
688
+ * Comment: "Web server for example.com",
689
+ * Id: "/change/C2682N5HXP0BZ4",
690
+ * Status: "PENDING",
691
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
627
692
  * }
628
693
  * }
629
694
  * *\/
630
- * // example id: to-create-failover-alias-resource-record-sets-1484607497724
631
695
  * ```
632
696
  *
633
- * @example To create geolocation resource record sets
697
+ * @example To create weighted alias resource record sets
634
698
  * ```javascript
635
- * // 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 (*).
699
+ * // 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.
636
700
  * const input = {
637
- * "ChangeBatch": {
638
- * "Changes": [
639
- * {
640
- * "Action": "CREATE",
641
- * "ResourceRecordSet": {
642
- * "GeoLocation": {
643
- * "ContinentCode": "NA"
644
- * },
645
- * "Name": "example.com",
646
- * "ResourceRecords": [
647
- * {
648
- * "Value": "192.0.2.44"
649
- * }
650
- * ],
651
- * "SetIdentifier": "North America",
652
- * "TTL": 60,
653
- * "Type": "A"
654
- * }
655
- * },
656
- * {
657
- * "Action": "CREATE",
658
- * "ResourceRecordSet": {
659
- * "GeoLocation": {
660
- * "ContinentCode": "SA"
661
- * },
662
- * "Name": "example.com",
663
- * "ResourceRecords": [
664
- * {
665
- * "Value": "192.0.2.45"
666
- * }
667
- * ],
668
- * "SetIdentifier": "South America",
669
- * "TTL": 60,
670
- * "Type": "A"
671
- * }
672
- * },
701
+ * ChangeBatch: {
702
+ * Changes: [
673
703
  * {
674
- * "Action": "CREATE",
675
- * "ResourceRecordSet": {
676
- * "GeoLocation": {
677
- * "ContinentCode": "EU"
704
+ * Action: "CREATE",
705
+ * ResourceRecordSet: {
706
+ * AliasTarget: {
707
+ * DNSName: "example-com-123456789.us-east-2.elb.amazonaws.com ",
708
+ * EvaluateTargetHealth: true,
709
+ * HostedZoneId: "Z3AADJGX6KTTL2"
678
710
  * },
679
- * "Name": "example.com",
680
- * "ResourceRecords": [
681
- * {
682
- * "Value": "192.0.2.46"
683
- * }
684
- * ],
685
- * "SetIdentifier": "Europe",
686
- * "TTL": 60,
687
- * "Type": "A"
711
+ * Name: "example.com",
712
+ * SetIdentifier: "Ohio region",
713
+ * Type: "A",
714
+ * Weight: 100
688
715
  * }
689
716
  * },
690
717
  * {
691
- * "Action": "CREATE",
692
- * "ResourceRecordSet": {
693
- * "GeoLocation": {
694
- * "CountryCode": "*"
718
+ * Action: "CREATE",
719
+ * ResourceRecordSet: {
720
+ * AliasTarget: {
721
+ * DNSName: "example-com-987654321.us-west-2.elb.amazonaws.com ",
722
+ * EvaluateTargetHealth: true,
723
+ * HostedZoneId: "Z1H1FL5HABSF5"
695
724
  * },
696
- * "Name": "example.com",
697
- * "ResourceRecords": [
698
- * {
699
- * "Value": "192.0.2.47"
700
- * }
701
- * ],
702
- * "SetIdentifier": "Other locations",
703
- * "TTL": 60,
704
- * "Type": "A"
725
+ * Name: "example.com",
726
+ * SetIdentifier: "Oregon region",
727
+ * Type: "A",
728
+ * Weight: 200
705
729
  * }
706
730
  * }
707
731
  * ],
708
- * "Comment": "Geolocation configuration for example.com"
732
+ * Comment: "ELB load balancers for example.com"
709
733
  * },
710
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
734
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
711
735
  * };
712
736
  * const command = new ChangeResourceRecordSetsCommand(input);
713
737
  * const response = await client.send(command);
714
- * /* response ==
738
+ * /* response is
715
739
  * {
716
- * "ChangeInfo": {
717
- * "Comment": "Geolocation configuration for example.com",
718
- * "Id": "/change/C2682N5HXP0BZ4",
719
- * "Status": "PENDING",
720
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
740
+ * ChangeInfo: {
741
+ * Comment: "ELB load balancers for example.com",
742
+ * Id: "/change/C2682N5HXP0BZ4",
743
+ * Status: "PENDING",
744
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
721
745
  * }
722
746
  * }
723
747
  * *\/
724
- * // example id: to-create-geolocation-resource-record-sets-1484612462466
725
748
  * ```
726
749
  *
727
- * @example To create geolocation alias resource record sets
750
+ * @example To create weighted resource record sets
728
751
  * ```javascript
729
- * // 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 (*).
752
+ * // 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.
730
753
  * const input = {
731
- * "ChangeBatch": {
732
- * "Changes": [
733
- * {
734
- * "Action": "CREATE",
735
- * "ResourceRecordSet": {
736
- * "AliasTarget": {
737
- * "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ",
738
- * "EvaluateTargetHealth": true,
739
- * "HostedZoneId": "Z3AADJGX6KTTL2"
740
- * },
741
- * "GeoLocation": {
742
- * "ContinentCode": "NA"
743
- * },
744
- * "Name": "example.com",
745
- * "SetIdentifier": "North America",
746
- * "Type": "A"
747
- * }
748
- * },
754
+ * ChangeBatch: {
755
+ * Changes: [
749
756
  * {
750
- * "Action": "CREATE",
751
- * "ResourceRecordSet": {
752
- * "AliasTarget": {
753
- * "DNSName": "example-com-234567890.sa-east-1.elb.amazonaws.com ",
754
- * "EvaluateTargetHealth": true,
755
- * "HostedZoneId": "Z2P70J7HTTTPLU"
756
- * },
757
- * "GeoLocation": {
758
- * "ContinentCode": "SA"
759
- * },
760
- * "Name": "example.com",
761
- * "SetIdentifier": "South America",
762
- * "Type": "A"
763
- * }
764
- * },
765
- * {
766
- * "Action": "CREATE",
767
- * "ResourceRecordSet": {
768
- * "AliasTarget": {
769
- * "DNSName": "example-com-234567890.eu-central-1.elb.amazonaws.com ",
770
- * "EvaluateTargetHealth": true,
771
- * "HostedZoneId": "Z215JYRZR1TBD5"
772
- * },
773
- * "GeoLocation": {
774
- * "ContinentCode": "EU"
775
- * },
776
- * "Name": "example.com",
777
- * "SetIdentifier": "Europe",
778
- * "Type": "A"
757
+ * Action: "CREATE",
758
+ * ResourceRecordSet: {
759
+ * HealthCheckId: "abcdef11-2222-3333-4444-555555fedcba",
760
+ * Name: "example.com",
761
+ * ResourceRecords: [
762
+ * {
763
+ * Value: "192.0.2.44"
764
+ * }
765
+ * ],
766
+ * SetIdentifier: "Seattle data center",
767
+ * TTL: 60,
768
+ * Type: "A",
769
+ * Weight: 100
779
770
  * }
780
771
  * },
781
772
  * {
782
- * "Action": "CREATE",
783
- * "ResourceRecordSet": {
784
- * "AliasTarget": {
785
- * "DNSName": "example-com-234567890.ap-southeast-1.elb.amazonaws.com ",
786
- * "EvaluateTargetHealth": true,
787
- * "HostedZoneId": "Z1LMS91P8CMLE5"
788
- * },
789
- * "GeoLocation": {
790
- * "CountryCode": "*"
791
- * },
792
- * "Name": "example.com",
793
- * "SetIdentifier": "Other locations",
794
- * "Type": "A"
773
+ * Action: "CREATE",
774
+ * ResourceRecordSet: {
775
+ * HealthCheckId: "abcdef66-7777-8888-9999-000000fedcba",
776
+ * Name: "example.com",
777
+ * ResourceRecords: [
778
+ * {
779
+ * Value: "192.0.2.45"
780
+ * }
781
+ * ],
782
+ * SetIdentifier: "Portland data center",
783
+ * TTL: 60,
784
+ * Type: "A",
785
+ * Weight: 200
795
786
  * }
796
787
  * }
797
788
  * ],
798
- * "Comment": "Geolocation alias configuration for example.com"
789
+ * Comment: "Web servers for example.com"
799
790
  * },
800
- * "HostedZoneId": "Z3M3LMPEXAMPLE"
791
+ * HostedZoneId: "Z3M3LMPEXAMPLE"
801
792
  * };
802
793
  * const command = new ChangeResourceRecordSetsCommand(input);
803
794
  * const response = await client.send(command);
804
- * /* response ==
795
+ * /* response is
805
796
  * {
806
- * "ChangeInfo": {
807
- * "Comment": "Geolocation alias configuration for example.com",
808
- * "Id": "/change/C2682N5HXP0BZ4",
809
- * "Status": "PENDING",
810
- * "SubmittedAt": "2017-02-10T01:36:41.958Z"
797
+ * ChangeInfo: {
798
+ * Comment: "Web servers for example.com",
799
+ * Id: "/change/C2682N5HXP0BZ4",
800
+ * Status: "PENDING",
801
+ * SubmittedAt: "2017-02-10T01:36:41.958Z"
811
802
  * }
812
803
  * }
813
804
  * *\/
814
- * // example id: to-create-geolocation-alias-resource-record-sets-1484612871203
815
805
  * ```
816
806
  *
807
+ * @public
817
808
  */
818
809
  export declare class ChangeResourceRecordSetsCommand extends ChangeResourceRecordSetsCommand_base {
819
810
  /** @internal type navigation helper, not in runtime. */