@aws-sdk/client-route-53 3.775.0 → 3.782.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-cjs/index.js +2 -0
- package/dist-es/models/models_0.js +2 -0
- package/dist-types/commands/ActivateKeySigningKeyCommand.d.ts +1 -0
- package/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +13 -13
- package/dist-types/commands/ChangeCidrCollectionCommand.d.ts +1 -0
- package/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +389 -398
- package/dist-types/commands/ChangeTagsForResourceCommand.d.ts +14 -11
- package/dist-types/commands/CreateCidrCollectionCommand.d.ts +1 -0
- package/dist-types/commands/CreateHealthCheckCommand.d.ts +1 -0
- package/dist-types/commands/CreateHostedZoneCommand.d.ts +1 -0
- package/dist-types/commands/CreateKeySigningKeyCommand.d.ts +1 -0
- package/dist-types/commands/CreateQueryLoggingConfigCommand.d.ts +1 -0
- package/dist-types/commands/CreateReusableDelegationSetCommand.d.ts +1 -0
- package/dist-types/commands/CreateTrafficPolicyCommand.d.ts +1 -0
- package/dist-types/commands/CreateTrafficPolicyInstanceCommand.d.ts +1 -0
- package/dist-types/commands/CreateTrafficPolicyVersionCommand.d.ts +1 -0
- package/dist-types/commands/CreateVPCAssociationAuthorizationCommand.d.ts +1 -0
- package/dist-types/commands/DeactivateKeySigningKeyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteCidrCollectionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteHealthCheckCommand.d.ts +1 -0
- package/dist-types/commands/DeleteHostedZoneCommand.d.ts +1 -0
- package/dist-types/commands/DeleteKeySigningKeyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteQueryLoggingConfigCommand.d.ts +1 -0
- package/dist-types/commands/DeleteReusableDelegationSetCommand.d.ts +1 -0
- package/dist-types/commands/DeleteTrafficPolicyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteTrafficPolicyInstanceCommand.d.ts +1 -0
- package/dist-types/commands/DeleteVPCAssociationAuthorizationCommand.d.ts +1 -0
- package/dist-types/commands/DisableHostedZoneDNSSECCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateVPCFromHostedZoneCommand.d.ts +1 -0
- package/dist-types/commands/EnableHostedZoneDNSSECCommand.d.ts +1 -0
- package/dist-types/commands/GetAccountLimitCommand.d.ts +1 -0
- package/dist-types/commands/GetChangeCommand.d.ts +1 -0
- package/dist-types/commands/GetCheckerIpRangesCommand.d.ts +1 -0
- package/dist-types/commands/GetDNSSECCommand.d.ts +1 -0
- package/dist-types/commands/GetGeoLocationCommand.d.ts +1 -0
- package/dist-types/commands/GetHealthCheckCommand.d.ts +1 -0
- package/dist-types/commands/GetHealthCheckCountCommand.d.ts +1 -0
- package/dist-types/commands/GetHealthCheckLastFailureReasonCommand.d.ts +1 -0
- package/dist-types/commands/GetHealthCheckStatusCommand.d.ts +1 -0
- package/dist-types/commands/GetHostedZoneCommand.d.ts +13 -13
- package/dist-types/commands/GetHostedZoneCountCommand.d.ts +1 -0
- package/dist-types/commands/GetHostedZoneLimitCommand.d.ts +1 -0
- package/dist-types/commands/GetQueryLoggingConfigCommand.d.ts +1 -0
- package/dist-types/commands/GetReusableDelegationSetCommand.d.ts +1 -0
- package/dist-types/commands/GetReusableDelegationSetLimitCommand.d.ts +1 -0
- package/dist-types/commands/GetTrafficPolicyCommand.d.ts +1 -0
- package/dist-types/commands/GetTrafficPolicyInstanceCommand.d.ts +1 -0
- package/dist-types/commands/GetTrafficPolicyInstanceCountCommand.d.ts +1 -0
- package/dist-types/commands/ListCidrBlocksCommand.d.ts +1 -0
- package/dist-types/commands/ListCidrCollectionsCommand.d.ts +1 -0
- package/dist-types/commands/ListCidrLocationsCommand.d.ts +1 -0
- package/dist-types/commands/ListGeoLocationsCommand.d.ts +1 -0
- package/dist-types/commands/ListHealthChecksCommand.d.ts +1 -0
- package/dist-types/commands/ListHostedZonesByNameCommand.d.ts +1 -0
- package/dist-types/commands/ListHostedZonesByVPCCommand.d.ts +1 -0
- package/dist-types/commands/ListHostedZonesCommand.d.ts +1 -0
- package/dist-types/commands/ListQueryLoggingConfigsCommand.d.ts +1 -0
- package/dist-types/commands/ListResourceRecordSetsCommand.d.ts +2 -1
- package/dist-types/commands/ListReusableDelegationSetsCommand.d.ts +1 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/commands/ListTagsForResourcesCommand.d.ts +1 -0
- package/dist-types/commands/ListTrafficPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListTrafficPolicyInstancesByHostedZoneCommand.d.ts +1 -0
- package/dist-types/commands/ListTrafficPolicyInstancesByPolicyCommand.d.ts +1 -0
- package/dist-types/commands/ListTrafficPolicyInstancesCommand.d.ts +1 -0
- package/dist-types/commands/ListTrafficPolicyVersionsCommand.d.ts +1 -0
- package/dist-types/commands/ListVPCAssociationAuthorizationsCommand.d.ts +1 -0
- package/dist-types/commands/TestDNSAnswerCommand.d.ts +1 -0
- package/dist-types/commands/UpdateHealthCheckCommand.d.ts +1 -0
- package/dist-types/commands/UpdateHostedZoneCommentCommand.d.ts +1 -0
- package/dist-types/commands/UpdateTrafficPolicyCommentCommand.d.ts +1 -0
- package/dist-types/commands/UpdateTrafficPolicyInstanceCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +5 -5
|
@@ -135,7 +135,7 @@ declare const ChangeResourceRecordSetsCommand_base: {
|
|
|
135
135
|
* Type: "SOA" || "A" || "TXT" || "NS" || "CNAME" || "MX" || "NAPTR" || "PTR" || "SRV" || "SPF" || "AAAA" || "CAA" || "DS" || "TLSA" || "SSHFP" || "SVCB" || "HTTPS", // required
|
|
136
136
|
* SetIdentifier: "STRING_VALUE",
|
|
137
137
|
* Weight: Number("long"),
|
|
138
|
-
* Region: "us-east-1" || "us-east-2" || "us-west-1" || "us-west-2" || "ca-central-1" || "eu-west-1" || "eu-west-2" || "eu-west-3" || "eu-central-1" || "eu-central-2" || "ap-southeast-1" || "ap-southeast-2" || "ap-southeast-3" || "ap-northeast-1" || "ap-northeast-2" || "ap-northeast-3" || "eu-north-1" || "sa-east-1" || "cn-north-1" || "cn-northwest-1" || "ap-east-1" || "me-south-1" || "me-central-1" || "ap-south-1" || "ap-south-2" || "af-south-1" || "eu-south-1" || "eu-south-2" || "ap-southeast-4" || "il-central-1" || "ca-west-1" || "ap-southeast-5" || "mx-central-1" || "ap-southeast-7",
|
|
138
|
+
* Region: "us-east-1" || "us-east-2" || "us-west-1" || "us-west-2" || "ca-central-1" || "eu-west-1" || "eu-west-2" || "eu-west-3" || "eu-central-1" || "eu-central-2" || "ap-southeast-1" || "ap-southeast-2" || "ap-southeast-3" || "ap-northeast-1" || "ap-northeast-2" || "ap-northeast-3" || "eu-north-1" || "sa-east-1" || "cn-north-1" || "cn-northwest-1" || "ap-east-1" || "me-south-1" || "me-central-1" || "ap-south-1" || "ap-south-2" || "af-south-1" || "eu-south-1" || "eu-south-2" || "ap-southeast-4" || "il-central-1" || "ca-west-1" || "ap-southeast-5" || "mx-central-1" || "ap-southeast-7" || "us-gov-east-1" || "us-gov-west-1",
|
|
139
139
|
* GeoLocation: { // GeoLocation
|
|
140
140
|
* ContinentCode: "STRING_VALUE",
|
|
141
141
|
* CountryCode: "STRING_VALUE",
|
|
@@ -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
|
-
*
|
|
220
|
-
* @example To create
|
|
219
|
+
*
|
|
220
|
+
* @example To create an alias resource record set
|
|
221
221
|
* ```javascript
|
|
222
|
-
* // The following example creates
|
|
222
|
+
* // The following example creates an alias resource record set that routes traffic to a CloudFront distribution.
|
|
223
223
|
* const input = {
|
|
224
|
-
*
|
|
225
|
-
*
|
|
224
|
+
* ChangeBatch: {
|
|
225
|
+
* Changes: [
|
|
226
226
|
* {
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
* "
|
|
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
|
-
*
|
|
239
|
+
* Comment: "CloudFront distribution for example.com"
|
|
241
240
|
* },
|
|
242
|
-
*
|
|
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
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
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
|
|
257
|
+
* @example To create failover alias resource record sets
|
|
260
258
|
* ```javascript
|
|
261
|
-
* // The following example creates
|
|
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
|
-
*
|
|
264
|
-
*
|
|
261
|
+
* ChangeBatch: {
|
|
262
|
+
* Changes: [
|
|
265
263
|
* {
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
* "
|
|
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
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
* "
|
|
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
|
-
*
|
|
292
|
+
* Comment: "Failover alias configuration for example.com"
|
|
299
293
|
* },
|
|
300
|
-
*
|
|
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
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
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
|
|
310
|
+
* @example To create failover resource record sets
|
|
318
311
|
* ```javascript
|
|
319
|
-
* // The following example creates
|
|
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
|
-
*
|
|
322
|
-
*
|
|
314
|
+
* ChangeBatch: {
|
|
315
|
+
* Changes: [
|
|
323
316
|
* {
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
* "
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
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
|
-
*
|
|
349
|
+
* Comment: "Failover configuration for example.com"
|
|
337
350
|
* },
|
|
338
|
-
*
|
|
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
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
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
|
|
367
|
+
* @example To create geolocation alias resource record sets
|
|
356
368
|
* ```javascript
|
|
357
|
-
* // The following example creates
|
|
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
|
-
*
|
|
360
|
-
*
|
|
371
|
+
* ChangeBatch: {
|
|
372
|
+
* Changes: [
|
|
361
373
|
* {
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
*
|
|
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
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
* "
|
|
381
|
+
* GeoLocation: {
|
|
382
|
+
* ContinentCode: "NA"
|
|
383
|
+
* },
|
|
384
|
+
* Name: "example.com",
|
|
385
|
+
* SetIdentifier: "North America",
|
|
386
|
+
* Type: "A"
|
|
373
387
|
* }
|
|
374
388
|
* },
|
|
375
389
|
* {
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
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
|
-
*
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
* "Weight": 200
|
|
432
|
+
* Name: "example.com",
|
|
433
|
+
* SetIdentifier: "Other locations",
|
|
434
|
+
* Type: "A"
|
|
387
435
|
* }
|
|
388
436
|
* }
|
|
389
437
|
* ],
|
|
390
|
-
*
|
|
438
|
+
* Comment: "Geolocation alias configuration for example.com"
|
|
391
439
|
* },
|
|
392
|
-
*
|
|
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
|
-
*
|
|
399
|
-
*
|
|
400
|
-
*
|
|
401
|
-
*
|
|
402
|
-
*
|
|
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
|
|
456
|
+
* @example To create geolocation resource record sets
|
|
410
457
|
* ```javascript
|
|
411
|
-
* // The following example creates
|
|
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
|
-
*
|
|
414
|
-
*
|
|
460
|
+
* ChangeBatch: {
|
|
461
|
+
* Changes: [
|
|
415
462
|
* {
|
|
416
|
-
*
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
*
|
|
421
|
-
* "
|
|
463
|
+
* Action: "CREATE",
|
|
464
|
+
* ResourceRecordSet: {
|
|
465
|
+
* GeoLocation: {
|
|
466
|
+
* ContinentCode: "NA"
|
|
467
|
+
* },
|
|
468
|
+
* Name: "example.com",
|
|
469
|
+
* ResourceRecords: [
|
|
422
470
|
* {
|
|
423
|
-
*
|
|
471
|
+
* Value: "192.0.2.44"
|
|
424
472
|
* }
|
|
425
473
|
* ],
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
474
|
+
* SetIdentifier: "North America",
|
|
475
|
+
* TTL: 60,
|
|
476
|
+
* Type: "A"
|
|
429
477
|
* }
|
|
430
478
|
* },
|
|
431
479
|
* {
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
*
|
|
437
|
-
* "
|
|
480
|
+
* Action: "CREATE",
|
|
481
|
+
* ResourceRecordSet: {
|
|
482
|
+
* GeoLocation: {
|
|
483
|
+
* ContinentCode: "SA"
|
|
484
|
+
* },
|
|
485
|
+
* Name: "example.com",
|
|
486
|
+
* ResourceRecords: [
|
|
438
487
|
* {
|
|
439
|
-
*
|
|
488
|
+
* Value: "192.0.2.45"
|
|
440
489
|
* }
|
|
441
490
|
* ],
|
|
442
|
-
*
|
|
443
|
-
*
|
|
444
|
-
*
|
|
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
|
-
*
|
|
531
|
+
* Comment: "Geolocation configuration for example.com"
|
|
449
532
|
* },
|
|
450
|
-
*
|
|
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
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
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
|
-
*
|
|
472
|
-
*
|
|
553
|
+
* ChangeBatch: {
|
|
554
|
+
* Changes: [
|
|
473
555
|
* {
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
*
|
|
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
|
-
*
|
|
482
|
-
*
|
|
483
|
-
*
|
|
484
|
-
*
|
|
563
|
+
* Name: "example.com",
|
|
564
|
+
* Region: "us-east-2",
|
|
565
|
+
* SetIdentifier: "Ohio region",
|
|
566
|
+
* Type: "A"
|
|
485
567
|
* }
|
|
486
568
|
* },
|
|
487
569
|
* {
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
492
|
-
*
|
|
493
|
-
*
|
|
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
|
-
*
|
|
496
|
-
*
|
|
497
|
-
*
|
|
498
|
-
*
|
|
577
|
+
* Name: "example.com",
|
|
578
|
+
* Region: "us-west-2",
|
|
579
|
+
* SetIdentifier: "Oregon region",
|
|
580
|
+
* Type: "A"
|
|
499
581
|
* }
|
|
500
582
|
* }
|
|
501
583
|
* ],
|
|
502
|
-
*
|
|
584
|
+
* Comment: "ELB load balancers for example.com"
|
|
503
585
|
* },
|
|
504
|
-
*
|
|
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
|
-
*
|
|
511
|
-
*
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
*
|
|
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
|
|
602
|
+
* @example To create latency resource record sets
|
|
522
603
|
* ```javascript
|
|
523
|
-
* // The following example creates
|
|
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
|
-
*
|
|
526
|
-
*
|
|
606
|
+
* ChangeBatch: {
|
|
607
|
+
* Changes: [
|
|
527
608
|
* {
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
*
|
|
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
|
-
*
|
|
616
|
+
* Value: "192.0.2.44"
|
|
536
617
|
* }
|
|
537
618
|
* ],
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
*
|
|
619
|
+
* SetIdentifier: "Ohio region",
|
|
620
|
+
* TTL: 60,
|
|
621
|
+
* Type: "A"
|
|
541
622
|
* }
|
|
542
623
|
* },
|
|
543
624
|
* {
|
|
544
|
-
*
|
|
545
|
-
*
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
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
|
-
*
|
|
632
|
+
* Value: "192.0.2.45"
|
|
552
633
|
* }
|
|
553
634
|
* ],
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
*
|
|
635
|
+
* SetIdentifier: "Oregon region",
|
|
636
|
+
* TTL: 60,
|
|
637
|
+
* Type: "A"
|
|
557
638
|
* }
|
|
558
639
|
* }
|
|
559
640
|
* ],
|
|
560
|
-
*
|
|
641
|
+
* Comment: "EC2 instances for example.com"
|
|
561
642
|
* },
|
|
562
|
-
*
|
|
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
|
-
*
|
|
569
|
-
*
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
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
|
|
659
|
+
* @example To create a basic resource record set
|
|
580
660
|
* ```javascript
|
|
581
|
-
* // The following example creates
|
|
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
|
-
*
|
|
584
|
-
*
|
|
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
|
-
*
|
|
601
|
-
*
|
|
602
|
-
* "
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
*
|
|
609
|
-
*
|
|
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
|
-
*
|
|
679
|
+
* Comment: "Web server for example.com"
|
|
615
680
|
* },
|
|
616
|
-
*
|
|
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
|
-
*
|
|
623
|
-
*
|
|
624
|
-
*
|
|
625
|
-
*
|
|
626
|
-
*
|
|
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
|
|
697
|
+
* @example To create weighted alias resource record sets
|
|
634
698
|
* ```javascript
|
|
635
|
-
* // The following example creates
|
|
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
|
-
*
|
|
638
|
-
*
|
|
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
|
-
*
|
|
675
|
-
*
|
|
676
|
-
*
|
|
677
|
-
*
|
|
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
|
-
*
|
|
680
|
-
* "
|
|
681
|
-
*
|
|
682
|
-
*
|
|
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
|
-
*
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
*
|
|
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
|
-
*
|
|
697
|
-
* "
|
|
698
|
-
*
|
|
699
|
-
*
|
|
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
|
-
*
|
|
732
|
+
* Comment: "ELB load balancers for example.com"
|
|
709
733
|
* },
|
|
710
|
-
*
|
|
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
|
-
*
|
|
717
|
-
*
|
|
718
|
-
*
|
|
719
|
-
*
|
|
720
|
-
*
|
|
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
|
|
750
|
+
* @example To create weighted resource record sets
|
|
728
751
|
* ```javascript
|
|
729
|
-
* // The following example creates
|
|
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
|
-
*
|
|
732
|
-
*
|
|
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
|
-
*
|
|
751
|
-
*
|
|
752
|
-
* "
|
|
753
|
-
*
|
|
754
|
-
*
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
*
|
|
758
|
-
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
761
|
-
*
|
|
762
|
-
*
|
|
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
|
-
*
|
|
783
|
-
*
|
|
784
|
-
* "
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
*
|
|
792
|
-
*
|
|
793
|
-
*
|
|
794
|
-
*
|
|
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
|
-
*
|
|
789
|
+
* Comment: "Web servers for example.com"
|
|
799
790
|
* },
|
|
800
|
-
*
|
|
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
|
-
*
|
|
807
|
-
*
|
|
808
|
-
*
|
|
809
|
-
*
|
|
810
|
-
*
|
|
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. */
|