aws-sdk-route53 1.0.0.rc8 → 1.0.0.rc9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-route53.rb +1 -1
- data/lib/aws-sdk-route53/client.rb +650 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf599acdf2a6efc903dbcd295b1be37251be5e60
|
4
|
+
data.tar.gz: a00293a3a3a5204967a320f14e106cb157fcf71e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1285e307cfa9160367bbfe577e8fc604ad1629501d537c3d474fbe760bd76f726096e255fc83c7deeeda5d3a5b23d8c040eb3bda62ba3a6a8c90b755a439ecf6
|
7
|
+
data.tar.gz: e39c4d632b91908d5dfaa525f89c31366774de6f112b18013252d86124eea38680320646df6ca7c6b3ec350754d7127f553cc5655daa902af0183ae2c5dea5e0
|
data/lib/aws-sdk-route53.rb
CHANGED
@@ -180,6 +180,30 @@ module Aws::Route53
|
|
180
180
|
#
|
181
181
|
# * {Types::AssociateVPCWithHostedZoneResponse#change_info #change_info} => Types::ChangeInfo
|
182
182
|
#
|
183
|
+
#
|
184
|
+
# @example Example: To associate a VPC with a hosted zone
|
185
|
+
#
|
186
|
+
# # The following example associates the VPC with ID vpc-1a2b3c4d with the hosted zone with ID Z3M3LMPEXAMPLE.
|
187
|
+
#
|
188
|
+
# resp = client.associate_vpc_with_hosted_zone({
|
189
|
+
# comment: "",
|
190
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE",
|
191
|
+
# vpc: {
|
192
|
+
# vpc_id: "vpc-1a2b3c4d",
|
193
|
+
# vpc_region: "us-east-2",
|
194
|
+
# },
|
195
|
+
# })
|
196
|
+
#
|
197
|
+
# resp.to_h outputs the following:
|
198
|
+
# {
|
199
|
+
# change_info: {
|
200
|
+
# comment: "",
|
201
|
+
# id: "/change/C3HC6WDB2UANE2",
|
202
|
+
# status: "INSYNC",
|
203
|
+
# submitted_at: Time.parse("2017-01-31T01:36:41.958Z"),
|
204
|
+
# },
|
205
|
+
# }
|
206
|
+
#
|
183
207
|
# @example Request syntax with placeholder values
|
184
208
|
#
|
185
209
|
# resp = client.associate_vpc_with_hosted_zone({
|
@@ -311,6 +335,574 @@ module Aws::Route53
|
|
311
335
|
#
|
312
336
|
# * {Types::ChangeResourceRecordSetsResponse#change_info #change_info} => Types::ChangeInfo
|
313
337
|
#
|
338
|
+
#
|
339
|
+
# @example Example: To create a basic resource record set
|
340
|
+
#
|
341
|
+
# # The following example creates a resource record set that routes Internet traffic to a resource with an IP address of 192.0.2.44.
|
342
|
+
#
|
343
|
+
# resp = client.change_resource_record_sets({
|
344
|
+
# change_batch: {
|
345
|
+
# changes: [
|
346
|
+
# {
|
347
|
+
# action: "CREATE",
|
348
|
+
# resource_record_set: {
|
349
|
+
# name: "example.com",
|
350
|
+
# resource_records: [
|
351
|
+
# {
|
352
|
+
# value: "192.0.2.44",
|
353
|
+
# },
|
354
|
+
# ],
|
355
|
+
# ttl: 60,
|
356
|
+
# type: "A",
|
357
|
+
# },
|
358
|
+
# },
|
359
|
+
# ],
|
360
|
+
# comment: "Web server for example.com",
|
361
|
+
# },
|
362
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE",
|
363
|
+
# })
|
364
|
+
#
|
365
|
+
# resp.to_h outputs the following:
|
366
|
+
# {
|
367
|
+
# change_info: {
|
368
|
+
# comment: "Web server for example.com",
|
369
|
+
# id: "/change/C2682N5HXP0BZ4",
|
370
|
+
# status: "PENDING",
|
371
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
372
|
+
# },
|
373
|
+
# }
|
374
|
+
#
|
375
|
+
# @example Example: To create weighted resource record sets
|
376
|
+
#
|
377
|
+
# # 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.
|
378
|
+
#
|
379
|
+
# resp = client.change_resource_record_sets({
|
380
|
+
# change_batch: {
|
381
|
+
# changes: [
|
382
|
+
# {
|
383
|
+
# action: "CREATE",
|
384
|
+
# resource_record_set: {
|
385
|
+
# health_check_id: "abcdef11-2222-3333-4444-555555fedcba",
|
386
|
+
# name: "example.com",
|
387
|
+
# resource_records: [
|
388
|
+
# {
|
389
|
+
# value: "192.0.2.44",
|
390
|
+
# },
|
391
|
+
# ],
|
392
|
+
# set_identifier: "Seattle data center",
|
393
|
+
# ttl: 60,
|
394
|
+
# type: "A",
|
395
|
+
# weight: 100,
|
396
|
+
# },
|
397
|
+
# },
|
398
|
+
# {
|
399
|
+
# action: "CREATE",
|
400
|
+
# resource_record_set: {
|
401
|
+
# health_check_id: "abcdef66-7777-8888-9999-000000fedcba",
|
402
|
+
# name: "example.com",
|
403
|
+
# resource_records: [
|
404
|
+
# {
|
405
|
+
# value: "192.0.2.45",
|
406
|
+
# },
|
407
|
+
# ],
|
408
|
+
# set_identifier: "Portland data center",
|
409
|
+
# ttl: 60,
|
410
|
+
# type: "A",
|
411
|
+
# weight: 200,
|
412
|
+
# },
|
413
|
+
# },
|
414
|
+
# ],
|
415
|
+
# comment: "Web servers for example.com",
|
416
|
+
# },
|
417
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE",
|
418
|
+
# })
|
419
|
+
#
|
420
|
+
# resp.to_h outputs the following:
|
421
|
+
# {
|
422
|
+
# change_info: {
|
423
|
+
# comment: "Web servers for example.com",
|
424
|
+
# id: "/change/C2682N5HXP0BZ4",
|
425
|
+
# status: "PENDING",
|
426
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
427
|
+
# },
|
428
|
+
# }
|
429
|
+
#
|
430
|
+
# @example Example: To create an alias resource record set
|
431
|
+
#
|
432
|
+
# # The following example creates an alias resource record set that routes traffic to a CloudFront distribution.
|
433
|
+
#
|
434
|
+
# resp = client.change_resource_record_sets({
|
435
|
+
# change_batch: {
|
436
|
+
# changes: [
|
437
|
+
# {
|
438
|
+
# action: "CREATE",
|
439
|
+
# resource_record_set: {
|
440
|
+
# alias_target: {
|
441
|
+
# dns_name: "d123rk29d0stfj.cloudfront.net",
|
442
|
+
# evaluate_target_health: false,
|
443
|
+
# hosted_zone_id: "Z2FDTNDATAQYW2",
|
444
|
+
# },
|
445
|
+
# name: "example.com",
|
446
|
+
# type: "A",
|
447
|
+
# },
|
448
|
+
# },
|
449
|
+
# ],
|
450
|
+
# comment: "CloudFront distribution for example.com",
|
451
|
+
# },
|
452
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE", # Depends on the type of resource that you want to route traffic to
|
453
|
+
# })
|
454
|
+
#
|
455
|
+
# resp.to_h outputs the following:
|
456
|
+
# {
|
457
|
+
# change_info: {
|
458
|
+
# comment: "CloudFront distribution for example.com",
|
459
|
+
# id: "/change/C2682N5HXP0BZ4",
|
460
|
+
# status: "PENDING",
|
461
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
462
|
+
# },
|
463
|
+
# }
|
464
|
+
#
|
465
|
+
# @example Example: To create weighted alias resource record sets
|
466
|
+
#
|
467
|
+
# # 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.
|
468
|
+
#
|
469
|
+
# resp = client.change_resource_record_sets({
|
470
|
+
# change_batch: {
|
471
|
+
# changes: [
|
472
|
+
# {
|
473
|
+
# action: "CREATE",
|
474
|
+
# resource_record_set: {
|
475
|
+
# alias_target: {
|
476
|
+
# dns_name: "example-com-123456789.us-east-2.elb.amazonaws.com ",
|
477
|
+
# evaluate_target_health: true,
|
478
|
+
# hosted_zone_id: "Z3AADJGX6KTTL2",
|
479
|
+
# },
|
480
|
+
# name: "example.com",
|
481
|
+
# set_identifier: "Ohio region",
|
482
|
+
# type: "A",
|
483
|
+
# weight: 100,
|
484
|
+
# },
|
485
|
+
# },
|
486
|
+
# {
|
487
|
+
# action: "CREATE",
|
488
|
+
# resource_record_set: {
|
489
|
+
# alias_target: {
|
490
|
+
# dns_name: "example-com-987654321.us-west-2.elb.amazonaws.com ",
|
491
|
+
# evaluate_target_health: true,
|
492
|
+
# hosted_zone_id: "Z1H1FL5HABSF5",
|
493
|
+
# },
|
494
|
+
# name: "example.com",
|
495
|
+
# set_identifier: "Oregon region",
|
496
|
+
# type: "A",
|
497
|
+
# weight: 200,
|
498
|
+
# },
|
499
|
+
# },
|
500
|
+
# ],
|
501
|
+
# comment: "ELB load balancers for example.com",
|
502
|
+
# },
|
503
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE", # Depends on the type of resource that you want to route traffic to
|
504
|
+
# })
|
505
|
+
#
|
506
|
+
# resp.to_h outputs the following:
|
507
|
+
# {
|
508
|
+
# change_info: {
|
509
|
+
# comment: "ELB load balancers for example.com",
|
510
|
+
# id: "/change/C2682N5HXP0BZ4",
|
511
|
+
# status: "PENDING",
|
512
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
513
|
+
# },
|
514
|
+
# }
|
515
|
+
#
|
516
|
+
# @example Example: To create latency resource record sets
|
517
|
+
#
|
518
|
+
# # 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.
|
519
|
+
#
|
520
|
+
# resp = client.change_resource_record_sets({
|
521
|
+
# change_batch: {
|
522
|
+
# changes: [
|
523
|
+
# {
|
524
|
+
# action: "CREATE",
|
525
|
+
# resource_record_set: {
|
526
|
+
# health_check_id: "abcdef11-2222-3333-4444-555555fedcba",
|
527
|
+
# name: "example.com",
|
528
|
+
# region: "us-east-2",
|
529
|
+
# resource_records: [
|
530
|
+
# {
|
531
|
+
# value: "192.0.2.44",
|
532
|
+
# },
|
533
|
+
# ],
|
534
|
+
# set_identifier: "Ohio region",
|
535
|
+
# ttl: 60,
|
536
|
+
# type: "A",
|
537
|
+
# },
|
538
|
+
# },
|
539
|
+
# {
|
540
|
+
# action: "CREATE",
|
541
|
+
# resource_record_set: {
|
542
|
+
# health_check_id: "abcdef66-7777-8888-9999-000000fedcba",
|
543
|
+
# name: "example.com",
|
544
|
+
# region: "us-west-2",
|
545
|
+
# resource_records: [
|
546
|
+
# {
|
547
|
+
# value: "192.0.2.45",
|
548
|
+
# },
|
549
|
+
# ],
|
550
|
+
# set_identifier: "Oregon region",
|
551
|
+
# ttl: 60,
|
552
|
+
# type: "A",
|
553
|
+
# },
|
554
|
+
# },
|
555
|
+
# ],
|
556
|
+
# comment: "EC2 instances for example.com",
|
557
|
+
# },
|
558
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE",
|
559
|
+
# })
|
560
|
+
#
|
561
|
+
# resp.to_h outputs the following:
|
562
|
+
# {
|
563
|
+
# change_info: {
|
564
|
+
# comment: "EC2 instances for example.com",
|
565
|
+
# id: "/change/C2682N5HXP0BZ4",
|
566
|
+
# status: "PENDING",
|
567
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
568
|
+
# },
|
569
|
+
# }
|
570
|
+
#
|
571
|
+
# @example Example: To create latency alias resource record sets
|
572
|
+
#
|
573
|
+
# # 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.
|
574
|
+
#
|
575
|
+
# resp = client.change_resource_record_sets({
|
576
|
+
# change_batch: {
|
577
|
+
# changes: [
|
578
|
+
# {
|
579
|
+
# action: "CREATE",
|
580
|
+
# resource_record_set: {
|
581
|
+
# alias_target: {
|
582
|
+
# dns_name: "example-com-123456789.us-east-2.elb.amazonaws.com ",
|
583
|
+
# evaluate_target_health: true,
|
584
|
+
# hosted_zone_id: "Z3AADJGX6KTTL2",
|
585
|
+
# },
|
586
|
+
# name: "example.com",
|
587
|
+
# region: "us-east-2",
|
588
|
+
# set_identifier: "Ohio region",
|
589
|
+
# type: "A",
|
590
|
+
# },
|
591
|
+
# },
|
592
|
+
# {
|
593
|
+
# action: "CREATE",
|
594
|
+
# resource_record_set: {
|
595
|
+
# alias_target: {
|
596
|
+
# dns_name: "example-com-987654321.us-west-2.elb.amazonaws.com ",
|
597
|
+
# evaluate_target_health: true,
|
598
|
+
# hosted_zone_id: "Z1H1FL5HABSF5",
|
599
|
+
# },
|
600
|
+
# name: "example.com",
|
601
|
+
# region: "us-west-2",
|
602
|
+
# set_identifier: "Oregon region",
|
603
|
+
# type: "A",
|
604
|
+
# },
|
605
|
+
# },
|
606
|
+
# ],
|
607
|
+
# comment: "ELB load balancers for example.com",
|
608
|
+
# },
|
609
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE", # Depends on the type of resource that you want to route traffic to
|
610
|
+
# })
|
611
|
+
#
|
612
|
+
# resp.to_h outputs the following:
|
613
|
+
# {
|
614
|
+
# change_info: {
|
615
|
+
# comment: "ELB load balancers for example.com",
|
616
|
+
# id: "/change/C2682N5HXP0BZ4",
|
617
|
+
# status: "PENDING",
|
618
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
619
|
+
# },
|
620
|
+
# }
|
621
|
+
#
|
622
|
+
# @example Example: To create failover resource record sets
|
623
|
+
#
|
624
|
+
# # 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.
|
625
|
+
#
|
626
|
+
# resp = client.change_resource_record_sets({
|
627
|
+
# change_batch: {
|
628
|
+
# changes: [
|
629
|
+
# {
|
630
|
+
# action: "CREATE",
|
631
|
+
# resource_record_set: {
|
632
|
+
# failover: "PRIMARY",
|
633
|
+
# health_check_id: "abcdef11-2222-3333-4444-555555fedcba",
|
634
|
+
# name: "example.com",
|
635
|
+
# resource_records: [
|
636
|
+
# {
|
637
|
+
# value: "192.0.2.44",
|
638
|
+
# },
|
639
|
+
# ],
|
640
|
+
# set_identifier: "Ohio region",
|
641
|
+
# ttl: 60,
|
642
|
+
# type: "A",
|
643
|
+
# },
|
644
|
+
# },
|
645
|
+
# {
|
646
|
+
# action: "CREATE",
|
647
|
+
# resource_record_set: {
|
648
|
+
# failover: "SECONDARY",
|
649
|
+
# health_check_id: "abcdef66-7777-8888-9999-000000fedcba",
|
650
|
+
# name: "example.com",
|
651
|
+
# resource_records: [
|
652
|
+
# {
|
653
|
+
# value: "192.0.2.45",
|
654
|
+
# },
|
655
|
+
# ],
|
656
|
+
# set_identifier: "Oregon region",
|
657
|
+
# ttl: 60,
|
658
|
+
# type: "A",
|
659
|
+
# },
|
660
|
+
# },
|
661
|
+
# ],
|
662
|
+
# comment: "Failover configuration for example.com",
|
663
|
+
# },
|
664
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE",
|
665
|
+
# })
|
666
|
+
#
|
667
|
+
# resp.to_h outputs the following:
|
668
|
+
# {
|
669
|
+
# change_info: {
|
670
|
+
# comment: "Failover configuration for example.com",
|
671
|
+
# id: "/change/C2682N5HXP0BZ4",
|
672
|
+
# status: "PENDING",
|
673
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
674
|
+
# },
|
675
|
+
# }
|
676
|
+
#
|
677
|
+
# @example Example: To create failover alias resource record sets
|
678
|
+
#
|
679
|
+
# # 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.
|
680
|
+
#
|
681
|
+
# resp = client.change_resource_record_sets({
|
682
|
+
# change_batch: {
|
683
|
+
# changes: [
|
684
|
+
# {
|
685
|
+
# action: "CREATE",
|
686
|
+
# resource_record_set: {
|
687
|
+
# alias_target: {
|
688
|
+
# dns_name: "example-com-123456789.us-east-2.elb.amazonaws.com ",
|
689
|
+
# evaluate_target_health: true,
|
690
|
+
# hosted_zone_id: "Z3AADJGX6KTTL2",
|
691
|
+
# },
|
692
|
+
# failover: "PRIMARY",
|
693
|
+
# name: "example.com",
|
694
|
+
# set_identifier: "Ohio region",
|
695
|
+
# type: "A",
|
696
|
+
# },
|
697
|
+
# },
|
698
|
+
# {
|
699
|
+
# action: "CREATE",
|
700
|
+
# resource_record_set: {
|
701
|
+
# alias_target: {
|
702
|
+
# dns_name: "example-com-987654321.us-west-2.elb.amazonaws.com ",
|
703
|
+
# evaluate_target_health: true,
|
704
|
+
# hosted_zone_id: "Z1H1FL5HABSF5",
|
705
|
+
# },
|
706
|
+
# failover: "SECONDARY",
|
707
|
+
# name: "example.com",
|
708
|
+
# set_identifier: "Oregon region",
|
709
|
+
# type: "A",
|
710
|
+
# },
|
711
|
+
# },
|
712
|
+
# ],
|
713
|
+
# comment: "Failover alias configuration for example.com",
|
714
|
+
# },
|
715
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE", # Depends on the type of resource that you want to route traffic to
|
716
|
+
# })
|
717
|
+
#
|
718
|
+
# resp.to_h outputs the following:
|
719
|
+
# {
|
720
|
+
# change_info: {
|
721
|
+
# comment: "Failover alias configuration for example.com",
|
722
|
+
# id: "/change/C2682N5HXP0BZ4",
|
723
|
+
# status: "PENDING",
|
724
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
725
|
+
# },
|
726
|
+
# }
|
727
|
+
#
|
728
|
+
# @example Example: To create geolocation resource record sets
|
729
|
+
#
|
730
|
+
# # 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 (*).
|
731
|
+
#
|
732
|
+
# resp = client.change_resource_record_sets({
|
733
|
+
# change_batch: {
|
734
|
+
# changes: [
|
735
|
+
# {
|
736
|
+
# action: "CREATE",
|
737
|
+
# resource_record_set: {
|
738
|
+
# geo_location: {
|
739
|
+
# continent_code: "NA",
|
740
|
+
# },
|
741
|
+
# name: "example.com",
|
742
|
+
# resource_records: [
|
743
|
+
# {
|
744
|
+
# value: "192.0.2.44",
|
745
|
+
# },
|
746
|
+
# ],
|
747
|
+
# set_identifier: "North America",
|
748
|
+
# ttl: 60,
|
749
|
+
# type: "A",
|
750
|
+
# },
|
751
|
+
# },
|
752
|
+
# {
|
753
|
+
# action: "CREATE",
|
754
|
+
# resource_record_set: {
|
755
|
+
# geo_location: {
|
756
|
+
# continent_code: "SA",
|
757
|
+
# },
|
758
|
+
# name: "example.com",
|
759
|
+
# resource_records: [
|
760
|
+
# {
|
761
|
+
# value: "192.0.2.45",
|
762
|
+
# },
|
763
|
+
# ],
|
764
|
+
# set_identifier: "South America",
|
765
|
+
# ttl: 60,
|
766
|
+
# type: "A",
|
767
|
+
# },
|
768
|
+
# },
|
769
|
+
# {
|
770
|
+
# action: "CREATE",
|
771
|
+
# resource_record_set: {
|
772
|
+
# geo_location: {
|
773
|
+
# continent_code: "EU",
|
774
|
+
# },
|
775
|
+
# name: "example.com",
|
776
|
+
# resource_records: [
|
777
|
+
# {
|
778
|
+
# value: "192.0.2.46",
|
779
|
+
# },
|
780
|
+
# ],
|
781
|
+
# set_identifier: "Europe",
|
782
|
+
# ttl: 60,
|
783
|
+
# type: "A",
|
784
|
+
# },
|
785
|
+
# },
|
786
|
+
# {
|
787
|
+
# action: "CREATE",
|
788
|
+
# resource_record_set: {
|
789
|
+
# geo_location: {
|
790
|
+
# country_code: "*",
|
791
|
+
# },
|
792
|
+
# name: "example.com",
|
793
|
+
# resource_records: [
|
794
|
+
# {
|
795
|
+
# value: "192.0.2.47",
|
796
|
+
# },
|
797
|
+
# ],
|
798
|
+
# set_identifier: "Other locations",
|
799
|
+
# ttl: 60,
|
800
|
+
# type: "A",
|
801
|
+
# },
|
802
|
+
# },
|
803
|
+
# ],
|
804
|
+
# comment: "Geolocation configuration for example.com",
|
805
|
+
# },
|
806
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE",
|
807
|
+
# })
|
808
|
+
#
|
809
|
+
# resp.to_h outputs the following:
|
810
|
+
# {
|
811
|
+
# change_info: {
|
812
|
+
# comment: "Geolocation configuration for example.com",
|
813
|
+
# id: "/change/C2682N5HXP0BZ4",
|
814
|
+
# status: "PENDING",
|
815
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
816
|
+
# },
|
817
|
+
# }
|
818
|
+
#
|
819
|
+
# @example Example: To create geolocation alias resource record sets
|
820
|
+
#
|
821
|
+
# # 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 (*).
|
822
|
+
#
|
823
|
+
# resp = client.change_resource_record_sets({
|
824
|
+
# change_batch: {
|
825
|
+
# changes: [
|
826
|
+
# {
|
827
|
+
# action: "CREATE",
|
828
|
+
# resource_record_set: {
|
829
|
+
# alias_target: {
|
830
|
+
# dns_name: "example-com-123456789.us-east-2.elb.amazonaws.com ",
|
831
|
+
# evaluate_target_health: true,
|
832
|
+
# hosted_zone_id: "Z3AADJGX6KTTL2",
|
833
|
+
# },
|
834
|
+
# geo_location: {
|
835
|
+
# continent_code: "NA",
|
836
|
+
# },
|
837
|
+
# name: "example.com",
|
838
|
+
# set_identifier: "North America",
|
839
|
+
# type: "A",
|
840
|
+
# },
|
841
|
+
# },
|
842
|
+
# {
|
843
|
+
# action: "CREATE",
|
844
|
+
# resource_record_set: {
|
845
|
+
# alias_target: {
|
846
|
+
# dns_name: "example-com-234567890.sa-east-1.elb.amazonaws.com ",
|
847
|
+
# evaluate_target_health: true,
|
848
|
+
# hosted_zone_id: "Z2P70J7HTTTPLU",
|
849
|
+
# },
|
850
|
+
# geo_location: {
|
851
|
+
# continent_code: "SA",
|
852
|
+
# },
|
853
|
+
# name: "example.com",
|
854
|
+
# set_identifier: "South America",
|
855
|
+
# type: "A",
|
856
|
+
# },
|
857
|
+
# },
|
858
|
+
# {
|
859
|
+
# action: "CREATE",
|
860
|
+
# resource_record_set: {
|
861
|
+
# alias_target: {
|
862
|
+
# dns_name: "example-com-234567890.eu-central-1.elb.amazonaws.com ",
|
863
|
+
# evaluate_target_health: true,
|
864
|
+
# hosted_zone_id: "Z215JYRZR1TBD5",
|
865
|
+
# },
|
866
|
+
# geo_location: {
|
867
|
+
# continent_code: "EU",
|
868
|
+
# },
|
869
|
+
# name: "example.com",
|
870
|
+
# set_identifier: "Europe",
|
871
|
+
# type: "A",
|
872
|
+
# },
|
873
|
+
# },
|
874
|
+
# {
|
875
|
+
# action: "CREATE",
|
876
|
+
# resource_record_set: {
|
877
|
+
# alias_target: {
|
878
|
+
# dns_name: "example-com-234567890.ap-southeast-1.elb.amazonaws.com ",
|
879
|
+
# evaluate_target_health: true,
|
880
|
+
# hosted_zone_id: "Z1LMS91P8CMLE5",
|
881
|
+
# },
|
882
|
+
# geo_location: {
|
883
|
+
# country_code: "*",
|
884
|
+
# },
|
885
|
+
# name: "example.com",
|
886
|
+
# set_identifier: "Other locations",
|
887
|
+
# type: "A",
|
888
|
+
# },
|
889
|
+
# },
|
890
|
+
# ],
|
891
|
+
# comment: "Geolocation alias configuration for example.com",
|
892
|
+
# },
|
893
|
+
# hosted_zone_id: "Z3M3LMPEXAMPLE", # Depends on the type of resource that you want to route traffic to
|
894
|
+
# })
|
895
|
+
#
|
896
|
+
# resp.to_h outputs the following:
|
897
|
+
# {
|
898
|
+
# change_info: {
|
899
|
+
# comment: "Geolocation alias configuration for example.com",
|
900
|
+
# id: "/change/C2682N5HXP0BZ4",
|
901
|
+
# status: "PENDING",
|
902
|
+
# submitted_at: Time.parse("2017-02-10T01:36:41.958Z"),
|
903
|
+
# },
|
904
|
+
# }
|
905
|
+
#
|
314
906
|
# @example Request syntax with placeholder values
|
315
907
|
#
|
316
908
|
# resp = client.change_resource_record_sets({
|
@@ -403,6 +995,33 @@ module Aws::Route53
|
|
403
995
|
#
|
404
996
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
405
997
|
#
|
998
|
+
#
|
999
|
+
# @example Example: To add or remove tags from a hosted zone or health check
|
1000
|
+
#
|
1001
|
+
# # The following example adds two tags and removes one tag from the hosted zone with ID Z3M3LMPEXAMPLE.
|
1002
|
+
#
|
1003
|
+
# resp = client.change_tags_for_resource({
|
1004
|
+
# add_tags: [
|
1005
|
+
# {
|
1006
|
+
# key: "apex",
|
1007
|
+
# value: "3874",
|
1008
|
+
# },
|
1009
|
+
# {
|
1010
|
+
# key: "acme",
|
1011
|
+
# value: "4938",
|
1012
|
+
# },
|
1013
|
+
# ],
|
1014
|
+
# remove_tag_keys: [
|
1015
|
+
# "Nadir",
|
1016
|
+
# ],
|
1017
|
+
# resource_id: "Z3M3LMPEXAMPLE",
|
1018
|
+
# resource_type: "hostedzone", # Valid values are healthcheck and hostedzone.
|
1019
|
+
# })
|
1020
|
+
#
|
1021
|
+
# resp.to_h outputs the following:
|
1022
|
+
# {
|
1023
|
+
# }
|
1024
|
+
#
|
406
1025
|
# @example Request syntax with placeholder values
|
407
1026
|
#
|
408
1027
|
# resp = client.change_tags_for_resource({
|
@@ -1598,6 +2217,36 @@ module Aws::Route53
|
|
1598
2217
|
# * {Types::GetHostedZoneResponse#delegation_set #delegation_set} => Types::DelegationSet
|
1599
2218
|
# * {Types::GetHostedZoneResponse#vp_cs #vp_cs} => Array<Types::VPC>
|
1600
2219
|
#
|
2220
|
+
#
|
2221
|
+
# @example Example: To get information about a hosted zone
|
2222
|
+
#
|
2223
|
+
# # The following example gets information about the Z3M3LMPEXAMPLE hosted zone.
|
2224
|
+
#
|
2225
|
+
# resp = client.get_hosted_zone({
|
2226
|
+
# id: "Z3M3LMPEXAMPLE",
|
2227
|
+
# })
|
2228
|
+
#
|
2229
|
+
# resp.to_h outputs the following:
|
2230
|
+
# {
|
2231
|
+
# delegation_set: {
|
2232
|
+
# name_servers: [
|
2233
|
+
# "ns-2048.awsdns-64.com",
|
2234
|
+
# "ns-2049.awsdns-65.net",
|
2235
|
+
# "ns-2050.awsdns-66.org",
|
2236
|
+
# "ns-2051.awsdns-67.co.uk",
|
2237
|
+
# ],
|
2238
|
+
# },
|
2239
|
+
# hosted_zone: {
|
2240
|
+
# caller_reference: "C741617D-04E4-F8DE-B9D7-0D150FC61C2E",
|
2241
|
+
# config: {
|
2242
|
+
# private_zone: false,
|
2243
|
+
# },
|
2244
|
+
# id: "/hostedzone/Z3M3LMPEXAMPLE",
|
2245
|
+
# name: "myawsbucket.com.",
|
2246
|
+
# resource_record_set_count: 8,
|
2247
|
+
# },
|
2248
|
+
# }
|
2249
|
+
#
|
1601
2250
|
# @example Request syntax with placeholder values
|
1602
2251
|
#
|
1603
2252
|
# resp = client.get_hosted_zone({
|
@@ -3573,7 +4222,7 @@ module Aws::Route53
|
|
3573
4222
|
params: params,
|
3574
4223
|
config: config)
|
3575
4224
|
context[:gem_name] = 'aws-sdk-route53'
|
3576
|
-
context[:gem_version] = '1.0.0.
|
4225
|
+
context[:gem_version] = '1.0.0.rc9'
|
3577
4226
|
Seahorse::Client::Request.new(handlers, context)
|
3578
4227
|
end
|
3579
4228
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-route53
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc14
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|