aws-sdk-route53 1.30.0 → 1.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-route53.rb +7 -4
- data/lib/aws-sdk-route53/client.rb +214 -108
- data/lib/aws-sdk-route53/client_api.rb +6 -0
- data/lib/aws-sdk-route53/errors.rb +73 -51
- data/lib/aws-sdk-route53/resource.rb +1 -0
- data/lib/aws-sdk-route53/types.rb +173 -112
- data/lib/aws-sdk-route53/waiters.rb +61 -0
- metadata +3 -3
@@ -1753,6 +1753,12 @@ module Aws::Route53
|
|
1753
1753
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
1754
1754
|
o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationToken)
|
1755
1755
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchHostedZone)
|
1756
|
+
o[:pager] = Aws::Pager.new(
|
1757
|
+
limit_key: "max_results",
|
1758
|
+
tokens: {
|
1759
|
+
"next_token" => "next_token"
|
1760
|
+
}
|
1761
|
+
)
|
1756
1762
|
end)
|
1757
1763
|
|
1758
1764
|
api.add_operation(:list_resource_record_sets, Seahorse::Model::Operation.new.tap do |o|
|
@@ -6,6 +6,79 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Route53
|
9
|
+
|
10
|
+
# When Route53 returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::Route53::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all Route53 errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::Route53::Errors::ServiceError
|
18
|
+
# # rescues all Route53 API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {ConcurrentModification}
|
29
|
+
# * {ConflictingDomainExists}
|
30
|
+
# * {ConflictingTypes}
|
31
|
+
# * {DelegationSetAlreadyCreated}
|
32
|
+
# * {DelegationSetAlreadyReusable}
|
33
|
+
# * {DelegationSetInUse}
|
34
|
+
# * {DelegationSetNotAvailable}
|
35
|
+
# * {DelegationSetNotReusable}
|
36
|
+
# * {HealthCheckAlreadyExists}
|
37
|
+
# * {HealthCheckInUse}
|
38
|
+
# * {HealthCheckVersionMismatch}
|
39
|
+
# * {HostedZoneAlreadyExists}
|
40
|
+
# * {HostedZoneNotEmpty}
|
41
|
+
# * {HostedZoneNotFound}
|
42
|
+
# * {HostedZoneNotPrivate}
|
43
|
+
# * {IncompatibleVersion}
|
44
|
+
# * {InsufficientCloudWatchLogsResourcePolicy}
|
45
|
+
# * {InvalidArgument}
|
46
|
+
# * {InvalidChangeBatch}
|
47
|
+
# * {InvalidDomainName}
|
48
|
+
# * {InvalidInput}
|
49
|
+
# * {InvalidPaginationToken}
|
50
|
+
# * {InvalidTrafficPolicyDocument}
|
51
|
+
# * {InvalidVPCId}
|
52
|
+
# * {LastVPCAssociation}
|
53
|
+
# * {LimitsExceeded}
|
54
|
+
# * {NoSuchChange}
|
55
|
+
# * {NoSuchCloudWatchLogsLogGroup}
|
56
|
+
# * {NoSuchDelegationSet}
|
57
|
+
# * {NoSuchGeoLocation}
|
58
|
+
# * {NoSuchHealthCheck}
|
59
|
+
# * {NoSuchHostedZone}
|
60
|
+
# * {NoSuchQueryLoggingConfig}
|
61
|
+
# * {NoSuchTrafficPolicy}
|
62
|
+
# * {NoSuchTrafficPolicyInstance}
|
63
|
+
# * {NotAuthorizedException}
|
64
|
+
# * {PriorRequestNotComplete}
|
65
|
+
# * {PublicZoneVPCAssociation}
|
66
|
+
# * {QueryLoggingConfigAlreadyExists}
|
67
|
+
# * {ThrottlingException}
|
68
|
+
# * {TooManyHealthChecks}
|
69
|
+
# * {TooManyHostedZones}
|
70
|
+
# * {TooManyTrafficPolicies}
|
71
|
+
# * {TooManyTrafficPolicyInstances}
|
72
|
+
# * {TooManyTrafficPolicyVersionsForCurrentPolicy}
|
73
|
+
# * {TooManyVPCAssociationAuthorizations}
|
74
|
+
# * {TrafficPolicyAlreadyExists}
|
75
|
+
# * {TrafficPolicyInUse}
|
76
|
+
# * {TrafficPolicyInstanceAlreadyExists}
|
77
|
+
# * {VPCAssociationAuthorizationNotFound}
|
78
|
+
# * {VPCAssociationNotFound}
|
79
|
+
#
|
80
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
81
|
+
# if they are not defined above.
|
9
82
|
module Errors
|
10
83
|
|
11
84
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +96,6 @@ module Aws::Route53
|
|
23
96
|
def message
|
24
97
|
@message || @data[:message]
|
25
98
|
end
|
26
|
-
|
27
99
|
end
|
28
100
|
|
29
101
|
class ConflictingDomainExists < ServiceError
|
@@ -39,7 +111,6 @@ module Aws::Route53
|
|
39
111
|
def message
|
40
112
|
@message || @data[:message]
|
41
113
|
end
|
42
|
-
|
43
114
|
end
|
44
115
|
|
45
116
|
class ConflictingTypes < ServiceError
|
@@ -55,7 +126,6 @@ module Aws::Route53
|
|
55
126
|
def message
|
56
127
|
@message || @data[:message]
|
57
128
|
end
|
58
|
-
|
59
129
|
end
|
60
130
|
|
61
131
|
class DelegationSetAlreadyCreated < ServiceError
|
@@ -71,7 +141,6 @@ module Aws::Route53
|
|
71
141
|
def message
|
72
142
|
@message || @data[:message]
|
73
143
|
end
|
74
|
-
|
75
144
|
end
|
76
145
|
|
77
146
|
class DelegationSetAlreadyReusable < ServiceError
|
@@ -87,7 +156,6 @@ module Aws::Route53
|
|
87
156
|
def message
|
88
157
|
@message || @data[:message]
|
89
158
|
end
|
90
|
-
|
91
159
|
end
|
92
160
|
|
93
161
|
class DelegationSetInUse < ServiceError
|
@@ -103,7 +171,6 @@ module Aws::Route53
|
|
103
171
|
def message
|
104
172
|
@message || @data[:message]
|
105
173
|
end
|
106
|
-
|
107
174
|
end
|
108
175
|
|
109
176
|
class DelegationSetNotAvailable < ServiceError
|
@@ -119,7 +186,6 @@ module Aws::Route53
|
|
119
186
|
def message
|
120
187
|
@message || @data[:message]
|
121
188
|
end
|
122
|
-
|
123
189
|
end
|
124
190
|
|
125
191
|
class DelegationSetNotReusable < ServiceError
|
@@ -135,7 +201,6 @@ module Aws::Route53
|
|
135
201
|
def message
|
136
202
|
@message || @data[:message]
|
137
203
|
end
|
138
|
-
|
139
204
|
end
|
140
205
|
|
141
206
|
class HealthCheckAlreadyExists < ServiceError
|
@@ -151,7 +216,6 @@ module Aws::Route53
|
|
151
216
|
def message
|
152
217
|
@message || @data[:message]
|
153
218
|
end
|
154
|
-
|
155
219
|
end
|
156
220
|
|
157
221
|
class HealthCheckInUse < ServiceError
|
@@ -167,7 +231,6 @@ module Aws::Route53
|
|
167
231
|
def message
|
168
232
|
@message || @data[:message]
|
169
233
|
end
|
170
|
-
|
171
234
|
end
|
172
235
|
|
173
236
|
class HealthCheckVersionMismatch < ServiceError
|
@@ -183,7 +246,6 @@ module Aws::Route53
|
|
183
246
|
def message
|
184
247
|
@message || @data[:message]
|
185
248
|
end
|
186
|
-
|
187
249
|
end
|
188
250
|
|
189
251
|
class HostedZoneAlreadyExists < ServiceError
|
@@ -199,7 +261,6 @@ module Aws::Route53
|
|
199
261
|
def message
|
200
262
|
@message || @data[:message]
|
201
263
|
end
|
202
|
-
|
203
264
|
end
|
204
265
|
|
205
266
|
class HostedZoneNotEmpty < ServiceError
|
@@ -215,7 +276,6 @@ module Aws::Route53
|
|
215
276
|
def message
|
216
277
|
@message || @data[:message]
|
217
278
|
end
|
218
|
-
|
219
279
|
end
|
220
280
|
|
221
281
|
class HostedZoneNotFound < ServiceError
|
@@ -231,7 +291,6 @@ module Aws::Route53
|
|
231
291
|
def message
|
232
292
|
@message || @data[:message]
|
233
293
|
end
|
234
|
-
|
235
294
|
end
|
236
295
|
|
237
296
|
class HostedZoneNotPrivate < ServiceError
|
@@ -247,7 +306,6 @@ module Aws::Route53
|
|
247
306
|
def message
|
248
307
|
@message || @data[:message]
|
249
308
|
end
|
250
|
-
|
251
309
|
end
|
252
310
|
|
253
311
|
class IncompatibleVersion < ServiceError
|
@@ -263,7 +321,6 @@ module Aws::Route53
|
|
263
321
|
def message
|
264
322
|
@message || @data[:message]
|
265
323
|
end
|
266
|
-
|
267
324
|
end
|
268
325
|
|
269
326
|
class InsufficientCloudWatchLogsResourcePolicy < ServiceError
|
@@ -279,7 +336,6 @@ module Aws::Route53
|
|
279
336
|
def message
|
280
337
|
@message || @data[:message]
|
281
338
|
end
|
282
|
-
|
283
339
|
end
|
284
340
|
|
285
341
|
class InvalidArgument < ServiceError
|
@@ -295,7 +351,6 @@ module Aws::Route53
|
|
295
351
|
def message
|
296
352
|
@message || @data[:message]
|
297
353
|
end
|
298
|
-
|
299
354
|
end
|
300
355
|
|
301
356
|
class InvalidChangeBatch < ServiceError
|
@@ -316,7 +371,6 @@ module Aws::Route53
|
|
316
371
|
def message
|
317
372
|
@message || @data[:message]
|
318
373
|
end
|
319
|
-
|
320
374
|
end
|
321
375
|
|
322
376
|
class InvalidDomainName < ServiceError
|
@@ -332,7 +386,6 @@ module Aws::Route53
|
|
332
386
|
def message
|
333
387
|
@message || @data[:message]
|
334
388
|
end
|
335
|
-
|
336
389
|
end
|
337
390
|
|
338
391
|
class InvalidInput < ServiceError
|
@@ -348,7 +401,6 @@ module Aws::Route53
|
|
348
401
|
def message
|
349
402
|
@message || @data[:message]
|
350
403
|
end
|
351
|
-
|
352
404
|
end
|
353
405
|
|
354
406
|
class InvalidPaginationToken < ServiceError
|
@@ -364,7 +416,6 @@ module Aws::Route53
|
|
364
416
|
def message
|
365
417
|
@message || @data[:message]
|
366
418
|
end
|
367
|
-
|
368
419
|
end
|
369
420
|
|
370
421
|
class InvalidTrafficPolicyDocument < ServiceError
|
@@ -380,7 +431,6 @@ module Aws::Route53
|
|
380
431
|
def message
|
381
432
|
@message || @data[:message]
|
382
433
|
end
|
383
|
-
|
384
434
|
end
|
385
435
|
|
386
436
|
class InvalidVPCId < ServiceError
|
@@ -396,7 +446,6 @@ module Aws::Route53
|
|
396
446
|
def message
|
397
447
|
@message || @data[:message]
|
398
448
|
end
|
399
|
-
|
400
449
|
end
|
401
450
|
|
402
451
|
class LastVPCAssociation < ServiceError
|
@@ -412,7 +461,6 @@ module Aws::Route53
|
|
412
461
|
def message
|
413
462
|
@message || @data[:message]
|
414
463
|
end
|
415
|
-
|
416
464
|
end
|
417
465
|
|
418
466
|
class LimitsExceeded < ServiceError
|
@@ -428,7 +476,6 @@ module Aws::Route53
|
|
428
476
|
def message
|
429
477
|
@message || @data[:message]
|
430
478
|
end
|
431
|
-
|
432
479
|
end
|
433
480
|
|
434
481
|
class NoSuchChange < ServiceError
|
@@ -444,7 +491,6 @@ module Aws::Route53
|
|
444
491
|
def message
|
445
492
|
@message || @data[:message]
|
446
493
|
end
|
447
|
-
|
448
494
|
end
|
449
495
|
|
450
496
|
class NoSuchCloudWatchLogsLogGroup < ServiceError
|
@@ -460,7 +506,6 @@ module Aws::Route53
|
|
460
506
|
def message
|
461
507
|
@message || @data[:message]
|
462
508
|
end
|
463
|
-
|
464
509
|
end
|
465
510
|
|
466
511
|
class NoSuchDelegationSet < ServiceError
|
@@ -476,7 +521,6 @@ module Aws::Route53
|
|
476
521
|
def message
|
477
522
|
@message || @data[:message]
|
478
523
|
end
|
479
|
-
|
480
524
|
end
|
481
525
|
|
482
526
|
class NoSuchGeoLocation < ServiceError
|
@@ -492,7 +536,6 @@ module Aws::Route53
|
|
492
536
|
def message
|
493
537
|
@message || @data[:message]
|
494
538
|
end
|
495
|
-
|
496
539
|
end
|
497
540
|
|
498
541
|
class NoSuchHealthCheck < ServiceError
|
@@ -508,7 +551,6 @@ module Aws::Route53
|
|
508
551
|
def message
|
509
552
|
@message || @data[:message]
|
510
553
|
end
|
511
|
-
|
512
554
|
end
|
513
555
|
|
514
556
|
class NoSuchHostedZone < ServiceError
|
@@ -524,7 +566,6 @@ module Aws::Route53
|
|
524
566
|
def message
|
525
567
|
@message || @data[:message]
|
526
568
|
end
|
527
|
-
|
528
569
|
end
|
529
570
|
|
530
571
|
class NoSuchQueryLoggingConfig < ServiceError
|
@@ -540,7 +581,6 @@ module Aws::Route53
|
|
540
581
|
def message
|
541
582
|
@message || @data[:message]
|
542
583
|
end
|
543
|
-
|
544
584
|
end
|
545
585
|
|
546
586
|
class NoSuchTrafficPolicy < ServiceError
|
@@ -556,7 +596,6 @@ module Aws::Route53
|
|
556
596
|
def message
|
557
597
|
@message || @data[:message]
|
558
598
|
end
|
559
|
-
|
560
599
|
end
|
561
600
|
|
562
601
|
class NoSuchTrafficPolicyInstance < ServiceError
|
@@ -572,7 +611,6 @@ module Aws::Route53
|
|
572
611
|
def message
|
573
612
|
@message || @data[:message]
|
574
613
|
end
|
575
|
-
|
576
614
|
end
|
577
615
|
|
578
616
|
class NotAuthorizedException < ServiceError
|
@@ -588,7 +626,6 @@ module Aws::Route53
|
|
588
626
|
def message
|
589
627
|
@message || @data[:message]
|
590
628
|
end
|
591
|
-
|
592
629
|
end
|
593
630
|
|
594
631
|
class PriorRequestNotComplete < ServiceError
|
@@ -604,7 +641,6 @@ module Aws::Route53
|
|
604
641
|
def message
|
605
642
|
@message || @data[:message]
|
606
643
|
end
|
607
|
-
|
608
644
|
end
|
609
645
|
|
610
646
|
class PublicZoneVPCAssociation < ServiceError
|
@@ -620,7 +656,6 @@ module Aws::Route53
|
|
620
656
|
def message
|
621
657
|
@message || @data[:message]
|
622
658
|
end
|
623
|
-
|
624
659
|
end
|
625
660
|
|
626
661
|
class QueryLoggingConfigAlreadyExists < ServiceError
|
@@ -636,7 +671,6 @@ module Aws::Route53
|
|
636
671
|
def message
|
637
672
|
@message || @data[:message]
|
638
673
|
end
|
639
|
-
|
640
674
|
end
|
641
675
|
|
642
676
|
class ThrottlingException < ServiceError
|
@@ -652,7 +686,6 @@ module Aws::Route53
|
|
652
686
|
def message
|
653
687
|
@message || @data[:message]
|
654
688
|
end
|
655
|
-
|
656
689
|
end
|
657
690
|
|
658
691
|
class TooManyHealthChecks < ServiceError
|
@@ -668,7 +701,6 @@ module Aws::Route53
|
|
668
701
|
def message
|
669
702
|
@message || @data[:message]
|
670
703
|
end
|
671
|
-
|
672
704
|
end
|
673
705
|
|
674
706
|
class TooManyHostedZones < ServiceError
|
@@ -684,7 +716,6 @@ module Aws::Route53
|
|
684
716
|
def message
|
685
717
|
@message || @data[:message]
|
686
718
|
end
|
687
|
-
|
688
719
|
end
|
689
720
|
|
690
721
|
class TooManyTrafficPolicies < ServiceError
|
@@ -700,7 +731,6 @@ module Aws::Route53
|
|
700
731
|
def message
|
701
732
|
@message || @data[:message]
|
702
733
|
end
|
703
|
-
|
704
734
|
end
|
705
735
|
|
706
736
|
class TooManyTrafficPolicyInstances < ServiceError
|
@@ -716,7 +746,6 @@ module Aws::Route53
|
|
716
746
|
def message
|
717
747
|
@message || @data[:message]
|
718
748
|
end
|
719
|
-
|
720
749
|
end
|
721
750
|
|
722
751
|
class TooManyTrafficPolicyVersionsForCurrentPolicy < ServiceError
|
@@ -732,7 +761,6 @@ module Aws::Route53
|
|
732
761
|
def message
|
733
762
|
@message || @data[:message]
|
734
763
|
end
|
735
|
-
|
736
764
|
end
|
737
765
|
|
738
766
|
class TooManyVPCAssociationAuthorizations < ServiceError
|
@@ -748,7 +776,6 @@ module Aws::Route53
|
|
748
776
|
def message
|
749
777
|
@message || @data[:message]
|
750
778
|
end
|
751
|
-
|
752
779
|
end
|
753
780
|
|
754
781
|
class TrafficPolicyAlreadyExists < ServiceError
|
@@ -764,7 +791,6 @@ module Aws::Route53
|
|
764
791
|
def message
|
765
792
|
@message || @data[:message]
|
766
793
|
end
|
767
|
-
|
768
794
|
end
|
769
795
|
|
770
796
|
class TrafficPolicyInUse < ServiceError
|
@@ -780,7 +806,6 @@ module Aws::Route53
|
|
780
806
|
def message
|
781
807
|
@message || @data[:message]
|
782
808
|
end
|
783
|
-
|
784
809
|
end
|
785
810
|
|
786
811
|
class TrafficPolicyInstanceAlreadyExists < ServiceError
|
@@ -796,7 +821,6 @@ module Aws::Route53
|
|
796
821
|
def message
|
797
822
|
@message || @data[:message]
|
798
823
|
end
|
799
|
-
|
800
824
|
end
|
801
825
|
|
802
826
|
class VPCAssociationAuthorizationNotFound < ServiceError
|
@@ -812,7 +836,6 @@ module Aws::Route53
|
|
812
836
|
def message
|
813
837
|
@message || @data[:message]
|
814
838
|
end
|
815
|
-
|
816
839
|
end
|
817
840
|
|
818
841
|
class VPCAssociationNotFound < ServiceError
|
@@ -828,7 +851,6 @@ module Aws::Route53
|
|
828
851
|
def message
|
829
852
|
@message || @data[:message]
|
830
853
|
end
|
831
|
-
|
832
854
|
end
|
833
855
|
|
834
856
|
end
|