route53resolver.d.ts
47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Route53Resolver extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Route53Resolver.Types.ClientConfiguration)
config: Config & Route53Resolver.Types.ClientConfiguration;
/**
* Adds IP addresses to an inbound or an outbound resolver endpoint. If you want to adding more than one IP address, submit one AssociateResolverEndpointIpAddress request for each IP address. To remove an IP address from an endpoint, see DisassociateResolverEndpointIpAddress.
*/
associateResolverEndpointIpAddress(params: Route53Resolver.Types.AssociateResolverEndpointIpAddressRequest, callback?: (err: AWSError, data: Route53Resolver.Types.AssociateResolverEndpointIpAddressResponse) => void): Request<Route53Resolver.Types.AssociateResolverEndpointIpAddressResponse, AWSError>;
/**
* Adds IP addresses to an inbound or an outbound resolver endpoint. If you want to adding more than one IP address, submit one AssociateResolverEndpointIpAddress request for each IP address. To remove an IP address from an endpoint, see DisassociateResolverEndpointIpAddress.
*/
associateResolverEndpointIpAddress(callback?: (err: AWSError, data: Route53Resolver.Types.AssociateResolverEndpointIpAddressResponse) => void): Request<Route53Resolver.Types.AssociateResolverEndpointIpAddressResponse, AWSError>;
/**
* Associates a resolver rule with a VPC. When you associate a rule with a VPC, Resolver forwards all DNS queries for the domain name that is specified in the rule and that originate in the VPC. The queries are forwarded to the IP addresses for the DNS resolvers that are specified in the rule. For more information about rules, see CreateResolverRule.
*/
associateResolverRule(params: Route53Resolver.Types.AssociateResolverRuleRequest, callback?: (err: AWSError, data: Route53Resolver.Types.AssociateResolverRuleResponse) => void): Request<Route53Resolver.Types.AssociateResolverRuleResponse, AWSError>;
/**
* Associates a resolver rule with a VPC. When you associate a rule with a VPC, Resolver forwards all DNS queries for the domain name that is specified in the rule and that originate in the VPC. The queries are forwarded to the IP addresses for the DNS resolvers that are specified in the rule. For more information about rules, see CreateResolverRule.
*/
associateResolverRule(callback?: (err: AWSError, data: Route53Resolver.Types.AssociateResolverRuleResponse) => void): Request<Route53Resolver.Types.AssociateResolverRuleResponse, AWSError>;
/**
* Creates a resolver endpoint. There are two types of resolver endpoints, inbound and outbound: An inbound resolver endpoint forwards DNS queries to the DNS service for a VPC from your network or another VPC. An outbound resolver endpoint forwards DNS queries from the DNS service for a VPC to your network or another VPC.
*/
createResolverEndpoint(params: Route53Resolver.Types.CreateResolverEndpointRequest, callback?: (err: AWSError, data: Route53Resolver.Types.CreateResolverEndpointResponse) => void): Request<Route53Resolver.Types.CreateResolverEndpointResponse, AWSError>;
/**
* Creates a resolver endpoint. There are two types of resolver endpoints, inbound and outbound: An inbound resolver endpoint forwards DNS queries to the DNS service for a VPC from your network or another VPC. An outbound resolver endpoint forwards DNS queries from the DNS service for a VPC to your network or another VPC.
*/
createResolverEndpoint(callback?: (err: AWSError, data: Route53Resolver.Types.CreateResolverEndpointResponse) => void): Request<Route53Resolver.Types.CreateResolverEndpointResponse, AWSError>;
/**
* For DNS queries that originate in your VPCs, specifies which resolver endpoint the queries pass through, one domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network.
*/
createResolverRule(params: Route53Resolver.Types.CreateResolverRuleRequest, callback?: (err: AWSError, data: Route53Resolver.Types.CreateResolverRuleResponse) => void): Request<Route53Resolver.Types.CreateResolverRuleResponse, AWSError>;
/**
* For DNS queries that originate in your VPCs, specifies which resolver endpoint the queries pass through, one domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network.
*/
createResolverRule(callback?: (err: AWSError, data: Route53Resolver.Types.CreateResolverRuleResponse) => void): Request<Route53Resolver.Types.CreateResolverRuleResponse, AWSError>;
/**
* Deletes a resolver endpoint. The effect of deleting a resolver endpoint depends on whether it's an inbound or an outbound resolver endpoint: Inbound: DNS queries from your network or another VPC are no longer routed to the DNS service for the specified VPC. Outbound: DNS queries from a VPC are no longer routed to your network or to another VPC.
*/
deleteResolverEndpoint(params: Route53Resolver.Types.DeleteResolverEndpointRequest, callback?: (err: AWSError, data: Route53Resolver.Types.DeleteResolverEndpointResponse) => void): Request<Route53Resolver.Types.DeleteResolverEndpointResponse, AWSError>;
/**
* Deletes a resolver endpoint. The effect of deleting a resolver endpoint depends on whether it's an inbound or an outbound resolver endpoint: Inbound: DNS queries from your network or another VPC are no longer routed to the DNS service for the specified VPC. Outbound: DNS queries from a VPC are no longer routed to your network or to another VPC.
*/
deleteResolverEndpoint(callback?: (err: AWSError, data: Route53Resolver.Types.DeleteResolverEndpointResponse) => void): Request<Route53Resolver.Types.DeleteResolverEndpointResponse, AWSError>;
/**
* Deletes a resolver rule. Before you can delete a resolver rule, you must disassociate it from all the VPCs that you associated the resolver rule with. For more infomation, see DisassociateResolverRule.
*/
deleteResolverRule(params: Route53Resolver.Types.DeleteResolverRuleRequest, callback?: (err: AWSError, data: Route53Resolver.Types.DeleteResolverRuleResponse) => void): Request<Route53Resolver.Types.DeleteResolverRuleResponse, AWSError>;
/**
* Deletes a resolver rule. Before you can delete a resolver rule, you must disassociate it from all the VPCs that you associated the resolver rule with. For more infomation, see DisassociateResolverRule.
*/
deleteResolverRule(callback?: (err: AWSError, data: Route53Resolver.Types.DeleteResolverRuleResponse) => void): Request<Route53Resolver.Types.DeleteResolverRuleResponse, AWSError>;
/**
* Removes IP addresses from an inbound or an outbound resolver endpoint. If you want to remove more than one IP address, submit one DisassociateResolverEndpointIpAddress request for each IP address. To add an IP address to an endpoint, see AssociateResolverEndpointIpAddress.
*/
disassociateResolverEndpointIpAddress(params: Route53Resolver.Types.DisassociateResolverEndpointIpAddressRequest, callback?: (err: AWSError, data: Route53Resolver.Types.DisassociateResolverEndpointIpAddressResponse) => void): Request<Route53Resolver.Types.DisassociateResolverEndpointIpAddressResponse, AWSError>;
/**
* Removes IP addresses from an inbound or an outbound resolver endpoint. If you want to remove more than one IP address, submit one DisassociateResolverEndpointIpAddress request for each IP address. To add an IP address to an endpoint, see AssociateResolverEndpointIpAddress.
*/
disassociateResolverEndpointIpAddress(callback?: (err: AWSError, data: Route53Resolver.Types.DisassociateResolverEndpointIpAddressResponse) => void): Request<Route53Resolver.Types.DisassociateResolverEndpointIpAddressResponse, AWSError>;
/**
* Removes the association between a specified resolver rule and a specified VPC. If you disassociate a resolver rule from a VPC, Resolver stops forwarding DNS queries for the domain name that you specified in the resolver rule.
*/
disassociateResolverRule(params: Route53Resolver.Types.DisassociateResolverRuleRequest, callback?: (err: AWSError, data: Route53Resolver.Types.DisassociateResolverRuleResponse) => void): Request<Route53Resolver.Types.DisassociateResolverRuleResponse, AWSError>;
/**
* Removes the association between a specified resolver rule and a specified VPC. If you disassociate a resolver rule from a VPC, Resolver stops forwarding DNS queries for the domain name that you specified in the resolver rule.
*/
disassociateResolverRule(callback?: (err: AWSError, data: Route53Resolver.Types.DisassociateResolverRuleResponse) => void): Request<Route53Resolver.Types.DisassociateResolverRuleResponse, AWSError>;
/**
* Gets information about a specified resolver endpoint, such as whether it's an inbound or an outbound resolver endpoint, and the current status of the endpoint.
*/
getResolverEndpoint(params: Route53Resolver.Types.GetResolverEndpointRequest, callback?: (err: AWSError, data: Route53Resolver.Types.GetResolverEndpointResponse) => void): Request<Route53Resolver.Types.GetResolverEndpointResponse, AWSError>;
/**
* Gets information about a specified resolver endpoint, such as whether it's an inbound or an outbound resolver endpoint, and the current status of the endpoint.
*/
getResolverEndpoint(callback?: (err: AWSError, data: Route53Resolver.Types.GetResolverEndpointResponse) => void): Request<Route53Resolver.Types.GetResolverEndpointResponse, AWSError>;
/**
* Gets information about a specified resolver rule, such as the domain name that the rule forwards DNS queries for and the ID of the outbound resolver endpoint that the rule is associated with.
*/
getResolverRule(params: Route53Resolver.Types.GetResolverRuleRequest, callback?: (err: AWSError, data: Route53Resolver.Types.GetResolverRuleResponse) => void): Request<Route53Resolver.Types.GetResolverRuleResponse, AWSError>;
/**
* Gets information about a specified resolver rule, such as the domain name that the rule forwards DNS queries for and the ID of the outbound resolver endpoint that the rule is associated with.
*/
getResolverRule(callback?: (err: AWSError, data: Route53Resolver.Types.GetResolverRuleResponse) => void): Request<Route53Resolver.Types.GetResolverRuleResponse, AWSError>;
/**
* Gets information about an association between a specified resolver rule and a VPC. You associate a resolver rule and a VPC using AssociateResolverRule.
*/
getResolverRuleAssociation(params: Route53Resolver.Types.GetResolverRuleAssociationRequest, callback?: (err: AWSError, data: Route53Resolver.Types.GetResolverRuleAssociationResponse) => void): Request<Route53Resolver.Types.GetResolverRuleAssociationResponse, AWSError>;
/**
* Gets information about an association between a specified resolver rule and a VPC. You associate a resolver rule and a VPC using AssociateResolverRule.
*/
getResolverRuleAssociation(callback?: (err: AWSError, data: Route53Resolver.Types.GetResolverRuleAssociationResponse) => void): Request<Route53Resolver.Types.GetResolverRuleAssociationResponse, AWSError>;
/**
* Gets information about a resolver rule policy. A resolver rule policy specifies the Resolver operations and resources that you want to allow another AWS account to be able to use.
*/
getResolverRulePolicy(params: Route53Resolver.Types.GetResolverRulePolicyRequest, callback?: (err: AWSError, data: Route53Resolver.Types.GetResolverRulePolicyResponse) => void): Request<Route53Resolver.Types.GetResolverRulePolicyResponse, AWSError>;
/**
* Gets information about a resolver rule policy. A resolver rule policy specifies the Resolver operations and resources that you want to allow another AWS account to be able to use.
*/
getResolverRulePolicy(callback?: (err: AWSError, data: Route53Resolver.Types.GetResolverRulePolicyResponse) => void): Request<Route53Resolver.Types.GetResolverRulePolicyResponse, AWSError>;
/**
* Gets the IP addresses for a specified resolver endpoint.
*/
listResolverEndpointIpAddresses(params: Route53Resolver.Types.ListResolverEndpointIpAddressesRequest, callback?: (err: AWSError, data: Route53Resolver.Types.ListResolverEndpointIpAddressesResponse) => void): Request<Route53Resolver.Types.ListResolverEndpointIpAddressesResponse, AWSError>;
/**
* Gets the IP addresses for a specified resolver endpoint.
*/
listResolverEndpointIpAddresses(callback?: (err: AWSError, data: Route53Resolver.Types.ListResolverEndpointIpAddressesResponse) => void): Request<Route53Resolver.Types.ListResolverEndpointIpAddressesResponse, AWSError>;
/**
* Lists all the resolver endpoints that were created using the current AWS account.
*/
listResolverEndpoints(params: Route53Resolver.Types.ListResolverEndpointsRequest, callback?: (err: AWSError, data: Route53Resolver.Types.ListResolverEndpointsResponse) => void): Request<Route53Resolver.Types.ListResolverEndpointsResponse, AWSError>;
/**
* Lists all the resolver endpoints that were created using the current AWS account.
*/
listResolverEndpoints(callback?: (err: AWSError, data: Route53Resolver.Types.ListResolverEndpointsResponse) => void): Request<Route53Resolver.Types.ListResolverEndpointsResponse, AWSError>;
/**
* Lists the associations that were created between resolver rules and VPCs using the current AWS account.
*/
listResolverRuleAssociations(params: Route53Resolver.Types.ListResolverRuleAssociationsRequest, callback?: (err: AWSError, data: Route53Resolver.Types.ListResolverRuleAssociationsResponse) => void): Request<Route53Resolver.Types.ListResolverRuleAssociationsResponse, AWSError>;
/**
* Lists the associations that were created between resolver rules and VPCs using the current AWS account.
*/
listResolverRuleAssociations(callback?: (err: AWSError, data: Route53Resolver.Types.ListResolverRuleAssociationsResponse) => void): Request<Route53Resolver.Types.ListResolverRuleAssociationsResponse, AWSError>;
/**
* Lists the resolver rules that were created using the current AWS account.
*/
listResolverRules(params: Route53Resolver.Types.ListResolverRulesRequest, callback?: (err: AWSError, data: Route53Resolver.Types.ListResolverRulesResponse) => void): Request<Route53Resolver.Types.ListResolverRulesResponse, AWSError>;
/**
* Lists the resolver rules that were created using the current AWS account.
*/
listResolverRules(callback?: (err: AWSError, data: Route53Resolver.Types.ListResolverRulesResponse) => void): Request<Route53Resolver.Types.ListResolverRulesResponse, AWSError>;
/**
* Lists the tags that you associated with the specified resource.
*/
listTagsForResource(params: Route53Resolver.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Route53Resolver.Types.ListTagsForResourceResponse) => void): Request<Route53Resolver.Types.ListTagsForResourceResponse, AWSError>;
/**
* Lists the tags that you associated with the specified resource.
*/
listTagsForResource(callback?: (err: AWSError, data: Route53Resolver.Types.ListTagsForResourceResponse) => void): Request<Route53Resolver.Types.ListTagsForResourceResponse, AWSError>;
/**
* Specifies the Resolver operations and resources that you want to allow another AWS account to be able to use.
*/
putResolverRulePolicy(params: Route53Resolver.Types.PutResolverRulePolicyRequest, callback?: (err: AWSError, data: Route53Resolver.Types.PutResolverRulePolicyResponse) => void): Request<Route53Resolver.Types.PutResolverRulePolicyResponse, AWSError>;
/**
* Specifies the Resolver operations and resources that you want to allow another AWS account to be able to use.
*/
putResolverRulePolicy(callback?: (err: AWSError, data: Route53Resolver.Types.PutResolverRulePolicyResponse) => void): Request<Route53Resolver.Types.PutResolverRulePolicyResponse, AWSError>;
/**
* Adds one or more tags to a specified resource.
*/
tagResource(params: Route53Resolver.Types.TagResourceRequest, callback?: (err: AWSError, data: Route53Resolver.Types.TagResourceResponse) => void): Request<Route53Resolver.Types.TagResourceResponse, AWSError>;
/**
* Adds one or more tags to a specified resource.
*/
tagResource(callback?: (err: AWSError, data: Route53Resolver.Types.TagResourceResponse) => void): Request<Route53Resolver.Types.TagResourceResponse, AWSError>;
/**
* Removes one or more tags from a specified resource.
*/
untagResource(params: Route53Resolver.Types.UntagResourceRequest, callback?: (err: AWSError, data: Route53Resolver.Types.UntagResourceResponse) => void): Request<Route53Resolver.Types.UntagResourceResponse, AWSError>;
/**
* Removes one or more tags from a specified resource.
*/
untagResource(callback?: (err: AWSError, data: Route53Resolver.Types.UntagResourceResponse) => void): Request<Route53Resolver.Types.UntagResourceResponse, AWSError>;
/**
* Updates the name of an inbound or an outbound resolver endpoint.
*/
updateResolverEndpoint(params: Route53Resolver.Types.UpdateResolverEndpointRequest, callback?: (err: AWSError, data: Route53Resolver.Types.UpdateResolverEndpointResponse) => void): Request<Route53Resolver.Types.UpdateResolverEndpointResponse, AWSError>;
/**
* Updates the name of an inbound or an outbound resolver endpoint.
*/
updateResolverEndpoint(callback?: (err: AWSError, data: Route53Resolver.Types.UpdateResolverEndpointResponse) => void): Request<Route53Resolver.Types.UpdateResolverEndpointResponse, AWSError>;
/**
* Updates settings for a specified resolver rule. ResolverRuleId is required, and all other parameters are optional. If you don't specify a parameter, it retains its current value.
*/
updateResolverRule(params: Route53Resolver.Types.UpdateResolverRuleRequest, callback?: (err: AWSError, data: Route53Resolver.Types.UpdateResolverRuleResponse) => void): Request<Route53Resolver.Types.UpdateResolverRuleResponse, AWSError>;
/**
* Updates settings for a specified resolver rule. ResolverRuleId is required, and all other parameters are optional. If you don't specify a parameter, it retains its current value.
*/
updateResolverRule(callback?: (err: AWSError, data: Route53Resolver.Types.UpdateResolverRuleResponse) => void): Request<Route53Resolver.Types.UpdateResolverRuleResponse, AWSError>;
}
declare namespace Route53Resolver {
export type AccountId = string;
export type Arn = string;
export interface AssociateResolverEndpointIpAddressRequest {
/**
* The ID of the resolver endpoint that you want to associate IP addresses with.
*/
ResolverEndpointId: ResourceId;
/**
* Either the IPv4 address that you want to add to a resolver endpoint or a subnet ID. If you specify a subnet ID, Resolver chooses an IP address for you from the available IPs in the specified subnet.
*/
IpAddress: IpAddressUpdate;
}
export interface AssociateResolverEndpointIpAddressResponse {
/**
* The response to an AssociateResolverEndpointIpAddress request.
*/
ResolverEndpoint?: ResolverEndpoint;
}
export interface AssociateResolverRuleRequest {
/**
* The ID of the resolver rule that you want to associate with the VPC. To list the existing resolver rules, use ListResolverRules.
*/
ResolverRuleId: ResourceId;
/**
* A name for the association that you're creating between a resolver rule and a VPC.
*/
Name?: Name;
/**
* The ID of the VPC that you want to associate the resolver rule with.
*/
VPCId: ResourceId;
}
export interface AssociateResolverRuleResponse {
/**
* Information about the AssociateResolverRule request, including the status of the request.
*/
ResolverRuleAssociation?: ResolverRuleAssociation;
}
export type Boolean = boolean;
export interface CreateResolverEndpointRequest {
/**
* A unique string that identifies the request and that allows failed requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.
*/
CreatorRequestId: CreatorRequestId;
/**
* A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.
*/
Name?: Name;
/**
* The ID of one or more security groups that you want to use to control access to this VPC. The security group that you specify must include one or more inbound rules (for inbound resolver endpoints) or outbound rules (for outbound resolver endpoints).
*/
SecurityGroupIds: SecurityGroupIds;
/**
* Specify the applicable value: INBOUND: Resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC OUTBOUND: Resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC
*/
Direction: ResolverEndpointDirection;
/**
* The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound resolver endpoints).
*/
IpAddresses: IpAddressesRequest;
/**
* A list of the tag keys and values that you want to associate with the endpoint.
*/
Tags?: TagList;
}
export interface CreateResolverEndpointResponse {
/**
* Information about the CreateResolverEndpoint request, including the status of the request.
*/
ResolverEndpoint?: ResolverEndpoint;
}
export interface CreateResolverRuleRequest {
/**
* A unique string that identifies the request and that allows failed requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.
*/
CreatorRequestId: CreatorRequestId;
/**
* A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.
*/
Name?: Name;
/**
* Specify FORWARD. Other resolver rule types aren't supported.
*/
RuleType: RuleTypeOption;
/**
* DNS queries for this domain name are forwarded to the IP addresses that you specify in TargetIps. If a query matches multiple resolver rules (example.com and www.example.com), outbound DNS queries are routed using the resolver rule that contains the most specific domain name (www.example.com).
*/
DomainName: DomainName;
/**
* The IPs that you want Resolver to forward DNS queries to. You can specify only IPv4 addresses. Separate IP addresses with a comma.
*/
TargetIps?: TargetList;
/**
* The ID of the outbound resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.
*/
ResolverEndpointId?: ResourceId;
/**
* A list of the tag keys and values that you want to associate with the endpoint.
*/
Tags?: TagList;
}
export interface CreateResolverRuleResponse {
/**
* Information about the CreateResolverRule request, including the status of the request.
*/
ResolverRule?: ResolverRule;
}
export type CreatorRequestId = string;
export interface DeleteResolverEndpointRequest {
/**
* The ID of the resolver endpoint that you want to delete.
*/
ResolverEndpointId: ResourceId;
}
export interface DeleteResolverEndpointResponse {
/**
* Information about the DeleteResolverEndpoint request, including the status of the request.
*/
ResolverEndpoint?: ResolverEndpoint;
}
export interface DeleteResolverRuleRequest {
/**
* The ID of the resolver rule that you want to delete.
*/
ResolverRuleId: ResourceId;
}
export interface DeleteResolverRuleResponse {
/**
* Information about the DeleteResolverRule request, including the status of the request.
*/
ResolverRule?: ResolverRule;
}
export interface DisassociateResolverEndpointIpAddressRequest {
/**
* The ID of the resolver endpoint that you want to disassociate an IP address from.
*/
ResolverEndpointId: ResourceId;
/**
* The IPv4 address that you want to remove from a resolver endpoint.
*/
IpAddress: IpAddressUpdate;
}
export interface DisassociateResolverEndpointIpAddressResponse {
/**
* The response to an DisassociateResolverEndpointIpAddress request.
*/
ResolverEndpoint?: ResolverEndpoint;
}
export interface DisassociateResolverRuleRequest {
/**
* The ID of the VPC that you want to disassociate the resolver rule from.
*/
VPCId: ResourceId;
/**
* The ID of the resolver rule that you want to disassociate from the specified VPC.
*/
ResolverRuleId: ResourceId;
}
export interface DisassociateResolverRuleResponse {
/**
* Information about the DisassociateResolverRule request, including the status of the request.
*/
ResolverRuleAssociation?: ResolverRuleAssociation;
}
export type DomainName = string;
export interface Filter {
/**
* When you're using a List operation and you want the operation to return a subset of objects, such as resolver endpoints or resolver rules, the name of the parameter that you want to use to filter objects. For example, to list only inbound resolver endpoints, specify Direction for the value of Name.
*/
Name?: FilterName;
/**
* When you're using a List operation and you want the operation to return a subset of objects, such as resolver endpoints or resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound resolver endpoints, specify INBOUND for the value of Values.
*/
Values?: FilterValues;
}
export type FilterName = string;
export type FilterValue = string;
export type FilterValues = FilterValue[];
export type Filters = Filter[];
export interface GetResolverEndpointRequest {
/**
* The ID of the resolver endpoint that you want to get information about.
*/
ResolverEndpointId: ResourceId;
}
export interface GetResolverEndpointResponse {
/**
* Information about the resolver endpoint that you specified in a GetResolverEndpoint request.
*/
ResolverEndpoint?: ResolverEndpoint;
}
export interface GetResolverRuleAssociationRequest {
/**
* The ID of the resolver rule association that you want to get information about.
*/
ResolverRuleAssociationId: ResourceId;
}
export interface GetResolverRuleAssociationResponse {
/**
* Information about the resolver rule association that you specified in a GetResolverRuleAssociation request.
*/
ResolverRuleAssociation?: ResolverRuleAssociation;
}
export interface GetResolverRulePolicyRequest {
/**
* The ID of the resolver rule policy that you want to get information about.
*/
Arn: Arn;
}
export interface GetResolverRulePolicyResponse {
/**
* Information about the resolver rule policy that you specified in a GetResolverRulePolicy request.
*/
ResolverRulePolicy?: ResolverRulePolicy;
}
export interface GetResolverRuleRequest {
/**
* The ID of the resolver rule that you want to get information about.
*/
ResolverRuleId: ResourceId;
}
export interface GetResolverRuleResponse {
/**
* Information about the resolver rule that you specified in a GetResolverRule request.
*/
ResolverRule?: ResolverRule;
}
export type Ip = string;
export type IpAddressCount = number;
export interface IpAddressRequest {
/**
* The subnet that contains the IP address.
*/
SubnetId: SubnetId;
/**
* The IP address that you want to use for DNS queries.
*/
Ip?: Ip;
}
export interface IpAddressResponse {
/**
* The ID of one IP address.
*/
IpId?: ResourceId;
/**
* The ID of one subnet.
*/
SubnetId?: SubnetId;
/**
* One IP address that the resolver endpoint uses for DNS queries.
*/
Ip?: Ip;
/**
* A status code that gives the current status of the request.
*/
Status?: IpAddressStatus;
/**
* A message that provides additional information about the status of the request.
*/
StatusMessage?: StatusMessage;
/**
* The date and time that the IP address was created, in Unix time format and Coordinated Universal Time (UTC).
*/
CreationTime?: Rfc3339TimeString;
/**
* The date and time that the IP address was last modified, in Unix time format and Coordinated Universal Time (UTC).
*/
ModificationTime?: Rfc3339TimeString;
}
export type IpAddressStatus = "CREATING"|"FAILED_CREATION"|"ATTACHING"|"ATTACHED"|"REMAP_DETACHING"|"REMAP_ATTACHING"|"DETACHING"|"FAILED_RESOURCE_GONE"|"DELETING"|"DELETE_FAILED_FAS_EXPIRED"|string;
export interface IpAddressUpdate {
/**
* Only when removing an IP address from a resolver endpoint: The ID of the IP address that you want to remove. To get this ID, use GetResolverEndpoint.
*/
IpId?: ResourceId;
/**
* The ID of the subnet that includes the IP address that you want to update. To get this ID, use GetResolverEndpoint.
*/
SubnetId?: SubnetId;
/**
* The new IP address.
*/
Ip?: Ip;
}
export type IpAddressesRequest = IpAddressRequest[];
export type IpAddressesResponse = IpAddressResponse[];
export interface ListResolverEndpointIpAddressesRequest {
/**
* The ID of the resolver endpoint that you want to get IP addresses for.
*/
ResolverEndpointId: ResourceId;
/**
* The maximum number of IP addresses that you want to return in the response to a ListResolverEndpointIpAddresses request. If you don't specify a value for MaxResults, Resolver returns up to 100 IP addresses.
*/
MaxResults?: MaxResults;
/**
* For the first ListResolverEndpointIpAddresses request, omit this value. If the specified resolver endpoint has more than MaxResults IP addresses, you can submit another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
}
export interface ListResolverEndpointIpAddressesResponse {
/**
* If the specified endpoint has more than MaxResults IP addresses, you can submit another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
/**
* The value that you specified for MaxResults in the request.
*/
MaxResults?: MaxResults;
/**
* The IP addresses that DNS queries pass through on their way to your network (outbound endpoint) or on the way to Resolver (inbound endpoint).
*/
IpAddresses?: IpAddressesResponse;
}
export interface ListResolverEndpointsRequest {
/**
* The maximum number of resolver endpoints that you want to return in the response to a ListResolverEndpoints request. If you don't specify a value for MaxResults, Resolver returns up to 100 resolver endpoints.
*/
MaxResults?: MaxResults;
/**
* For the first ListResolverEndpoints request, omit this value. If you have more than MaxResults resolver endpoints, you can submit another ListResolverEndpoints request to get the next group of resolver endpoints. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
/**
* An optional specification to return a subset of resolver endpoints, such as all inbound resolver endpoints. If you submit a second or subsequent ListResolverEndpoints request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.
*/
Filters?: Filters;
}
export interface ListResolverEndpointsResponse {
/**
* If more than MaxResults IP addresses match the specified criteria, you can submit another ListResolverEndpoint request to get the next group of results. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
/**
* The value that you specified for MaxResults in the request.
*/
MaxResults?: MaxResults;
/**
* The resolver endpoints that were created by using the current AWS account, and that match the specified filters, if any.
*/
ResolverEndpoints?: ResolverEndpoints;
}
export interface ListResolverRuleAssociationsRequest {
/**
* The maximum number of rule associations that you want to return in the response to a ListResolverRuleAssociations request. If you don't specify a value for MaxResults, Resolver returns up to 100 rule associations.
*/
MaxResults?: MaxResults;
/**
* For the first ListResolverRuleAssociation request, omit this value. If you have more than MaxResults rule associations, you can submit another ListResolverRuleAssociation request to get the next group of rule associations. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
/**
* An optional specification to return a subset of resolver rules, such as resolver rules that are associated with the same VPC ID. If you submit a second or subsequent ListResolverRuleAssociations request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.
*/
Filters?: Filters;
}
export interface ListResolverRuleAssociationsResponse {
/**
* If more than MaxResults rule associations match the specified criteria, you can submit another ListResolverRuleAssociation request to get the next group of results. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
/**
* The value that you specified for MaxResults in the request.
*/
MaxResults?: MaxResults;
/**
* The associations that were created between resolver rules and VPCs using the current AWS account, and that match the specified filters, if any.
*/
ResolverRuleAssociations?: ResolverRuleAssociations;
}
export interface ListResolverRulesRequest {
/**
* The maximum number of resolver rules that you want to return in the response to a ListResolverRules request. If you don't specify a value for MaxResults, Resolver returns up to 100 resolver rules.
*/
MaxResults?: MaxResults;
/**
* For the first ListResolverRules request, omit this value. If you have more than MaxResults resolver rules, you can submit another ListResolverRules request to get the next group of resolver rules. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
/**
* An optional specification to return a subset of resolver rules, such as all resolver rules that are associated with the same resolver endpoint. If you submit a second or subsequent ListResolverRules request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.
*/
Filters?: Filters;
}
export interface ListResolverRulesResponse {
/**
* If more than MaxResults resolver rules match the specified criteria, you can submit another ListResolverRules request to get the next group of results. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
/**
* The value that you specified for MaxResults in the request.
*/
MaxResults?: MaxResults;
/**
* The resolver rules that were created using the current AWS account and that match the specified filters, if any.
*/
ResolverRules?: ResolverRules;
}
export interface ListTagsForResourceRequest {
/**
* The Amazon Resource Name (ARN) for the resource that you want to list tags for.
*/
ResourceArn: Arn;
/**
* The maximum number of tags that you want to return in the response to a ListTagsForResource request. If you don't specify a value for MaxResults, Resolver returns up to 100 tags.
*/
MaxResults?: MaxResults;
/**
* For the first ListTagsForResource request, omit this value. If you have more than MaxResults tags, you can submit another ListTagsForResource request to get the next group of tags for the resource. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
}
export interface ListTagsForResourceResponse {
/**
* The tags that are associated with the resource that you specified in the ListTagsForResource request.
*/
Tags?: TagList;
/**
* If more than MaxResults tags match the specified criteria, you can submit another ListTagsForResource request to get the next group of results. In the next request, specify the value of NextToken from the previous response.
*/
NextToken?: NextToken;
}
export type MaxResults = number;
export type Name = string;
export type NextToken = string;
export type Port = number;
export interface PutResolverRulePolicyRequest {
/**
* The Amazon Resource Name (ARN) of the account that you want to grant permissions to.
*/
Arn: Arn;
/**
* An AWS Identity and Access Management policy statement that lists the permissions that you want to grant to another AWS account.
*/
ResolverRulePolicy: ResolverRulePolicy;
}
export interface PutResolverRulePolicyResponse {
/**
* Whether the PutResolverRulePolicy request was successful.
*/
ReturnValue?: Boolean;
}
export interface ResolverEndpoint {
/**
* The ID of the resolver endpoint.
*/
Id?: ResourceId;
/**
* A unique string that identifies the request that created the resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
*/
CreatorRequestId?: CreatorRequestId;
/**
* The ARN (Amazon Resource Name) for the resolver endpoint.
*/
Arn?: Arn;
/**
* The name that you assigned to the resolver endpoint when you submitted a CreateResolverEndpoint request.
*/
Name?: Name;
/**
* The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound resolver rules.
*/
SecurityGroupIds?: SecurityGroupIds;
/**
* Indicates whether the resolver endpoint allows inbound or outbound DNS queries: INBOUND: allows DNS queries to your VPC from your network or another VPC OUTBOUND: allows DNS queries from your VPC to your network or another VPC
*/
Direction?: ResolverEndpointDirection;
/**
* The number of IP addresses that the resolver endpoint can use for DNS queries.
*/
IpAddressCount?: IpAddressCount;
/**
* The ID of the VPC that you want to create the resolver endpoint in.
*/
HostVPCId?: ResourceId;
/**
* A code that specifies the current status of the resolver endpoint.
*/
Status?: ResolverEndpointStatus;
/**
* A detailed description of the status of the resolver endpoint.
*/
StatusMessage?: StatusMessage;
/**
* The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
*/
CreationTime?: Rfc3339TimeString;
/**
* The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
*/
ModificationTime?: Rfc3339TimeString;
}
export type ResolverEndpointDirection = "INBOUND"|"OUTBOUND"|string;
export type ResolverEndpointStatus = "CREATING"|"OPERATIONAL"|"UPDATING"|"AUTO_RECOVERING"|"ACTION_NEEDED"|"DELETING"|string;
export type ResolverEndpoints = ResolverEndpoint[];
export interface ResolverRule {
/**
* The ID that Resolver assigned to the resolver rule when you created it.
*/
Id?: ResourceId;
/**
* A unique string that you specified when you created the resolver rule. CreatorRequestIdidentifies the request and allows failed requests to be retried without the risk of executing the operation twice.
*/
CreatorRequestId?: CreatorRequestId;
/**
* The ARN (Amazon Resource Name) for the resolver rule specified by Id.
*/
Arn?: Arn;
/**
* DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps. If a query matches multiple resolver rules (example.com and www.example.com), the query is routed using the resolver rule that contains the most specific domain name (www.example.com).
*/
DomainName?: DomainName;
/**
* A code that specifies the current status of the resolver rule.
*/
Status?: ResolverRuleStatus;
/**
* A detailed description of the status of a resolver rule.
*/
StatusMessage?: StatusMessage;
/**
* This value is always FORWARD. Other resolver rule types aren't supported.
*/
RuleType?: RuleTypeOption;
/**
* The name for the resolver rule, which you specified when you created the resolver rule.
*/
Name?: Name;
/**
* An array that contains the IP addresses and ports that you want to forward
*/
TargetIps?: TargetList;
/**
* The ID of the endpoint that the rule is associated with.
*/
ResolverEndpointId?: ResourceId;
/**
* When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
*/
OwnerId?: AccountId;
/**
* Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
*/
ShareStatus?: ShareStatus;
}
export interface ResolverRuleAssociation {
/**
* The ID of the association between a resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.
*/
Id?: ResourceId;
/**
* The ID of the resolver rule that you associated with the VPC that is specified by VPCId.
*/
ResolverRuleId?: ResourceId;
/**
* The name of an association between a resolver rule and a VPC.
*/
Name?: Name;
/**
* The ID of the VPC that you associated the resolver rule with.
*/
VPCId?: ResourceId;
/**
* A code that specifies the current status of the association between a resolver rule and a VPC.
*/
Status?: ResolverRuleAssociationStatus;
/**
* A detailed description of the status of the association between a resolver rule and a VPC.
*/
StatusMessage?: StatusMessage;
}
export type ResolverRuleAssociationStatus = "CREATING"|"COMPLETE"|"DELETING"|"FAILED"|"OVERRIDDEN"|string;
export type ResolverRuleAssociations = ResolverRuleAssociation[];
export interface ResolverRuleConfig {
/**
* The new name for the resolver rule. The name that you specify appears in the Resolver dashboard in the Route 53 console.
*/
Name?: Name;
/**
* For DNS queries that originate in your VPC, the new IP addresses that you want to route outbound DNS queries to.
*/
TargetIps?: TargetList;
/**
* The ID of the new outbound resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.
*/
ResolverEndpointId?: ResourceId;
}
export type ResolverRulePolicy = string;
export type ResolverRuleStatus = "COMPLETE"|"DELETING"|"UPDATING"|"FAILED"|string;
export type ResolverRules = ResolverRule[];
export type ResourceId = string;
export type Rfc3339TimeString = string;
export type RuleTypeOption = "FORWARD"|"SYSTEM"|"RECURSIVE"|string;
export type SecurityGroupIds = ResourceId[];
export type ShareStatus = "NOT_SHARED"|"SHARED_WITH_ME"|"SHARED_BY_ME"|string;
export type StatusMessage = string;
export type SubnetId = string;
export interface Tag {
/**
* The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.
*/
Key?: TagKey;
/**
* The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.
*/
Value?: TagValue;
}
export type TagKey = string;
export type TagKeyList = TagKey[];
export type TagList = Tag[];
export interface TagResourceRequest {
/**
* The Amazon Resource Name (ARN) for the resource that you want to add tags to. To get the ARN for a resource, use the applicable Get or List command: GetResolverEndpoint GetResolverRule GetResolverRuleAssociation ListResolverEndpoints ListResolverRuleAssociations ListResolverRules
*/
ResourceArn: Arn;
/**
* The tags that you want to add to the specified resource.
*/
Tags: TagList;
}
export interface TagResourceResponse {
}
export type TagValue = string;
export interface TargetAddress {
/**
* One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
*/
Ip: Ip;
/**
* The port at Ip that you want to forward DNS queries to.
*/
Port?: Port;
}
export type TargetList = TargetAddress[];
export interface UntagResourceRequest {
/**
* The Amazon Resource Name (ARN) for the resource that you want to remove tags from. To get the ARN for a resource, use the applicable Get or List command: GetResolverEndpoint GetResolverRule GetResolverRuleAssociation ListResolverEndpoints ListResolverRuleAssociations ListResolverRules
*/
ResourceArn: Arn;
/**
* The tags that you want to remove to the specified resource.
*/
TagKeys: TagKeyList;
}
export interface UntagResourceResponse {
}
export interface UpdateResolverEndpointRequest {
/**
* The ID of the resolver endpoint that you want to update.
*/
ResolverEndpointId: ResourceId;
/**
* The name of the resolver endpoint that you want to update.
*/
Name?: Name;
}
export interface UpdateResolverEndpointResponse {
/**
* The response to an UpdateResolverEndpoint request.
*/
ResolverEndpoint?: ResolverEndpoint;
}
export interface UpdateResolverRuleRequest {
/**
* The ID of the resolver rule that you want to update.
*/
ResolverRuleId: ResourceId;
/**
* The new settings for the resolver rule.
*/
Config: ResolverRuleConfig;
}
export interface UpdateResolverRuleResponse {
/**
* The response to an UpdateResolverRule request.
*/
ResolverRule?: ResolverRule;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2018-04-01"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Route53Resolver client.
*/
export import Types = Route53Resolver;
}
export = Route53Resolver;