forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pulumiTypes.go
2408 lines (1970 loc) · 89.9 KB
/
pulumiTypes.go
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
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package peering
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = utilities.GetEnvOrDefault
// The properties that define a BGP session.
type BgpSession struct {
// The maximum number of prefixes advertised over the IPv4 session.
MaxPrefixesAdvertisedV4 *int `pulumi:"maxPrefixesAdvertisedV4"`
// The maximum number of prefixes advertised over the IPv6 session.
MaxPrefixesAdvertisedV6 *int `pulumi:"maxPrefixesAdvertisedV6"`
// The MD5 authentication key of the session.
Md5AuthenticationKey *string `pulumi:"md5AuthenticationKey"`
// The IPv4 session address on Microsoft's end.
MicrosoftSessionIPv4Address *string `pulumi:"microsoftSessionIPv4Address"`
// The IPv6 session address on Microsoft's end.
MicrosoftSessionIPv6Address *string `pulumi:"microsoftSessionIPv6Address"`
// The IPv4 session address on peer's end.
PeerSessionIPv4Address *string `pulumi:"peerSessionIPv4Address"`
// The IPv6 session address on peer's end.
PeerSessionIPv6Address *string `pulumi:"peerSessionIPv6Address"`
// The IPv4 prefix that contains both ends' IPv4 addresses.
SessionPrefixV4 *string `pulumi:"sessionPrefixV4"`
// The IPv6 prefix that contains both ends' IPv6 addresses.
SessionPrefixV6 *string `pulumi:"sessionPrefixV6"`
}
// BgpSessionInput is an input type that accepts BgpSessionArgs and BgpSessionOutput values.
// You can construct a concrete instance of `BgpSessionInput` via:
//
// BgpSessionArgs{...}
type BgpSessionInput interface {
pulumi.Input
ToBgpSessionOutput() BgpSessionOutput
ToBgpSessionOutputWithContext(context.Context) BgpSessionOutput
}
// The properties that define a BGP session.
type BgpSessionArgs struct {
// The maximum number of prefixes advertised over the IPv4 session.
MaxPrefixesAdvertisedV4 pulumi.IntPtrInput `pulumi:"maxPrefixesAdvertisedV4"`
// The maximum number of prefixes advertised over the IPv6 session.
MaxPrefixesAdvertisedV6 pulumi.IntPtrInput `pulumi:"maxPrefixesAdvertisedV6"`
// The MD5 authentication key of the session.
Md5AuthenticationKey pulumi.StringPtrInput `pulumi:"md5AuthenticationKey"`
// The IPv4 session address on Microsoft's end.
MicrosoftSessionIPv4Address pulumi.StringPtrInput `pulumi:"microsoftSessionIPv4Address"`
// The IPv6 session address on Microsoft's end.
MicrosoftSessionIPv6Address pulumi.StringPtrInput `pulumi:"microsoftSessionIPv6Address"`
// The IPv4 session address on peer's end.
PeerSessionIPv4Address pulumi.StringPtrInput `pulumi:"peerSessionIPv4Address"`
// The IPv6 session address on peer's end.
PeerSessionIPv6Address pulumi.StringPtrInput `pulumi:"peerSessionIPv6Address"`
// The IPv4 prefix that contains both ends' IPv4 addresses.
SessionPrefixV4 pulumi.StringPtrInput `pulumi:"sessionPrefixV4"`
// The IPv6 prefix that contains both ends' IPv6 addresses.
SessionPrefixV6 pulumi.StringPtrInput `pulumi:"sessionPrefixV6"`
}
func (BgpSessionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BgpSession)(nil)).Elem()
}
func (i BgpSessionArgs) ToBgpSessionOutput() BgpSessionOutput {
return i.ToBgpSessionOutputWithContext(context.Background())
}
func (i BgpSessionArgs) ToBgpSessionOutputWithContext(ctx context.Context) BgpSessionOutput {
return pulumi.ToOutputWithContext(ctx, i).(BgpSessionOutput)
}
func (i BgpSessionArgs) ToBgpSessionPtrOutput() BgpSessionPtrOutput {
return i.ToBgpSessionPtrOutputWithContext(context.Background())
}
func (i BgpSessionArgs) ToBgpSessionPtrOutputWithContext(ctx context.Context) BgpSessionPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BgpSessionOutput).ToBgpSessionPtrOutputWithContext(ctx)
}
// BgpSessionPtrInput is an input type that accepts BgpSessionArgs, BgpSessionPtr and BgpSessionPtrOutput values.
// You can construct a concrete instance of `BgpSessionPtrInput` via:
//
// BgpSessionArgs{...}
//
// or:
//
// nil
type BgpSessionPtrInput interface {
pulumi.Input
ToBgpSessionPtrOutput() BgpSessionPtrOutput
ToBgpSessionPtrOutputWithContext(context.Context) BgpSessionPtrOutput
}
type bgpSessionPtrType BgpSessionArgs
func BgpSessionPtr(v *BgpSessionArgs) BgpSessionPtrInput {
return (*bgpSessionPtrType)(v)
}
func (*bgpSessionPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**BgpSession)(nil)).Elem()
}
func (i *bgpSessionPtrType) ToBgpSessionPtrOutput() BgpSessionPtrOutput {
return i.ToBgpSessionPtrOutputWithContext(context.Background())
}
func (i *bgpSessionPtrType) ToBgpSessionPtrOutputWithContext(ctx context.Context) BgpSessionPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BgpSessionPtrOutput)
}
// The properties that define a BGP session.
type BgpSessionOutput struct{ *pulumi.OutputState }
func (BgpSessionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BgpSession)(nil)).Elem()
}
func (o BgpSessionOutput) ToBgpSessionOutput() BgpSessionOutput {
return o
}
func (o BgpSessionOutput) ToBgpSessionOutputWithContext(ctx context.Context) BgpSessionOutput {
return o
}
func (o BgpSessionOutput) ToBgpSessionPtrOutput() BgpSessionPtrOutput {
return o.ToBgpSessionPtrOutputWithContext(context.Background())
}
func (o BgpSessionOutput) ToBgpSessionPtrOutputWithContext(ctx context.Context) BgpSessionPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v BgpSession) *BgpSession {
return &v
}).(BgpSessionPtrOutput)
}
// The maximum number of prefixes advertised over the IPv4 session.
func (o BgpSessionOutput) MaxPrefixesAdvertisedV4() pulumi.IntPtrOutput {
return o.ApplyT(func(v BgpSession) *int { return v.MaxPrefixesAdvertisedV4 }).(pulumi.IntPtrOutput)
}
// The maximum number of prefixes advertised over the IPv6 session.
func (o BgpSessionOutput) MaxPrefixesAdvertisedV6() pulumi.IntPtrOutput {
return o.ApplyT(func(v BgpSession) *int { return v.MaxPrefixesAdvertisedV6 }).(pulumi.IntPtrOutput)
}
// The MD5 authentication key of the session.
func (o BgpSessionOutput) Md5AuthenticationKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSession) *string { return v.Md5AuthenticationKey }).(pulumi.StringPtrOutput)
}
// The IPv4 session address on Microsoft's end.
func (o BgpSessionOutput) MicrosoftSessionIPv4Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSession) *string { return v.MicrosoftSessionIPv4Address }).(pulumi.StringPtrOutput)
}
// The IPv6 session address on Microsoft's end.
func (o BgpSessionOutput) MicrosoftSessionIPv6Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSession) *string { return v.MicrosoftSessionIPv6Address }).(pulumi.StringPtrOutput)
}
// The IPv4 session address on peer's end.
func (o BgpSessionOutput) PeerSessionIPv4Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSession) *string { return v.PeerSessionIPv4Address }).(pulumi.StringPtrOutput)
}
// The IPv6 session address on peer's end.
func (o BgpSessionOutput) PeerSessionIPv6Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSession) *string { return v.PeerSessionIPv6Address }).(pulumi.StringPtrOutput)
}
// The IPv4 prefix that contains both ends' IPv4 addresses.
func (o BgpSessionOutput) SessionPrefixV4() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSession) *string { return v.SessionPrefixV4 }).(pulumi.StringPtrOutput)
}
// The IPv6 prefix that contains both ends' IPv6 addresses.
func (o BgpSessionOutput) SessionPrefixV6() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSession) *string { return v.SessionPrefixV6 }).(pulumi.StringPtrOutput)
}
type BgpSessionPtrOutput struct{ *pulumi.OutputState }
func (BgpSessionPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BgpSession)(nil)).Elem()
}
func (o BgpSessionPtrOutput) ToBgpSessionPtrOutput() BgpSessionPtrOutput {
return o
}
func (o BgpSessionPtrOutput) ToBgpSessionPtrOutputWithContext(ctx context.Context) BgpSessionPtrOutput {
return o
}
func (o BgpSessionPtrOutput) Elem() BgpSessionOutput {
return o.ApplyT(func(v *BgpSession) BgpSession {
if v != nil {
return *v
}
var ret BgpSession
return ret
}).(BgpSessionOutput)
}
// The maximum number of prefixes advertised over the IPv4 session.
func (o BgpSessionPtrOutput) MaxPrefixesAdvertisedV4() pulumi.IntPtrOutput {
return o.ApplyT(func(v *BgpSession) *int {
if v == nil {
return nil
}
return v.MaxPrefixesAdvertisedV4
}).(pulumi.IntPtrOutput)
}
// The maximum number of prefixes advertised over the IPv6 session.
func (o BgpSessionPtrOutput) MaxPrefixesAdvertisedV6() pulumi.IntPtrOutput {
return o.ApplyT(func(v *BgpSession) *int {
if v == nil {
return nil
}
return v.MaxPrefixesAdvertisedV6
}).(pulumi.IntPtrOutput)
}
// The MD5 authentication key of the session.
func (o BgpSessionPtrOutput) Md5AuthenticationKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSession) *string {
if v == nil {
return nil
}
return v.Md5AuthenticationKey
}).(pulumi.StringPtrOutput)
}
// The IPv4 session address on Microsoft's end.
func (o BgpSessionPtrOutput) MicrosoftSessionIPv4Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSession) *string {
if v == nil {
return nil
}
return v.MicrosoftSessionIPv4Address
}).(pulumi.StringPtrOutput)
}
// The IPv6 session address on Microsoft's end.
func (o BgpSessionPtrOutput) MicrosoftSessionIPv6Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSession) *string {
if v == nil {
return nil
}
return v.MicrosoftSessionIPv6Address
}).(pulumi.StringPtrOutput)
}
// The IPv4 session address on peer's end.
func (o BgpSessionPtrOutput) PeerSessionIPv4Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSession) *string {
if v == nil {
return nil
}
return v.PeerSessionIPv4Address
}).(pulumi.StringPtrOutput)
}
// The IPv6 session address on peer's end.
func (o BgpSessionPtrOutput) PeerSessionIPv6Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSession) *string {
if v == nil {
return nil
}
return v.PeerSessionIPv6Address
}).(pulumi.StringPtrOutput)
}
// The IPv4 prefix that contains both ends' IPv4 addresses.
func (o BgpSessionPtrOutput) SessionPrefixV4() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSession) *string {
if v == nil {
return nil
}
return v.SessionPrefixV4
}).(pulumi.StringPtrOutput)
}
// The IPv6 prefix that contains both ends' IPv6 addresses.
func (o BgpSessionPtrOutput) SessionPrefixV6() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSession) *string {
if v == nil {
return nil
}
return v.SessionPrefixV6
}).(pulumi.StringPtrOutput)
}
// The properties that define a BGP session.
type BgpSessionResponse struct {
// The maximum number of prefixes advertised over the IPv4 session.
MaxPrefixesAdvertisedV4 *int `pulumi:"maxPrefixesAdvertisedV4"`
// The maximum number of prefixes advertised over the IPv6 session.
MaxPrefixesAdvertisedV6 *int `pulumi:"maxPrefixesAdvertisedV6"`
// The MD5 authentication key of the session.
Md5AuthenticationKey *string `pulumi:"md5AuthenticationKey"`
// The IPv4 session address on Microsoft's end.
MicrosoftSessionIPv4Address *string `pulumi:"microsoftSessionIPv4Address"`
// The IPv6 session address on Microsoft's end.
MicrosoftSessionIPv6Address *string `pulumi:"microsoftSessionIPv6Address"`
// The IPv4 session address on peer's end.
PeerSessionIPv4Address *string `pulumi:"peerSessionIPv4Address"`
// The IPv6 session address on peer's end.
PeerSessionIPv6Address *string `pulumi:"peerSessionIPv6Address"`
// The IPv4 prefix that contains both ends' IPv4 addresses.
SessionPrefixV4 *string `pulumi:"sessionPrefixV4"`
// The IPv6 prefix that contains both ends' IPv6 addresses.
SessionPrefixV6 *string `pulumi:"sessionPrefixV6"`
// The state of the IPv4 session.
SessionStateV4 string `pulumi:"sessionStateV4"`
// The state of the IPv6 session.
SessionStateV6 string `pulumi:"sessionStateV6"`
}
// The properties that define a BGP session.
type BgpSessionResponseOutput struct{ *pulumi.OutputState }
func (BgpSessionResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BgpSessionResponse)(nil)).Elem()
}
func (o BgpSessionResponseOutput) ToBgpSessionResponseOutput() BgpSessionResponseOutput {
return o
}
func (o BgpSessionResponseOutput) ToBgpSessionResponseOutputWithContext(ctx context.Context) BgpSessionResponseOutput {
return o
}
// The maximum number of prefixes advertised over the IPv4 session.
func (o BgpSessionResponseOutput) MaxPrefixesAdvertisedV4() pulumi.IntPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *int { return v.MaxPrefixesAdvertisedV4 }).(pulumi.IntPtrOutput)
}
// The maximum number of prefixes advertised over the IPv6 session.
func (o BgpSessionResponseOutput) MaxPrefixesAdvertisedV6() pulumi.IntPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *int { return v.MaxPrefixesAdvertisedV6 }).(pulumi.IntPtrOutput)
}
// The MD5 authentication key of the session.
func (o BgpSessionResponseOutput) Md5AuthenticationKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *string { return v.Md5AuthenticationKey }).(pulumi.StringPtrOutput)
}
// The IPv4 session address on Microsoft's end.
func (o BgpSessionResponseOutput) MicrosoftSessionIPv4Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *string { return v.MicrosoftSessionIPv4Address }).(pulumi.StringPtrOutput)
}
// The IPv6 session address on Microsoft's end.
func (o BgpSessionResponseOutput) MicrosoftSessionIPv6Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *string { return v.MicrosoftSessionIPv6Address }).(pulumi.StringPtrOutput)
}
// The IPv4 session address on peer's end.
func (o BgpSessionResponseOutput) PeerSessionIPv4Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *string { return v.PeerSessionIPv4Address }).(pulumi.StringPtrOutput)
}
// The IPv6 session address on peer's end.
func (o BgpSessionResponseOutput) PeerSessionIPv6Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *string { return v.PeerSessionIPv6Address }).(pulumi.StringPtrOutput)
}
// The IPv4 prefix that contains both ends' IPv4 addresses.
func (o BgpSessionResponseOutput) SessionPrefixV4() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *string { return v.SessionPrefixV4 }).(pulumi.StringPtrOutput)
}
// The IPv6 prefix that contains both ends' IPv6 addresses.
func (o BgpSessionResponseOutput) SessionPrefixV6() pulumi.StringPtrOutput {
return o.ApplyT(func(v BgpSessionResponse) *string { return v.SessionPrefixV6 }).(pulumi.StringPtrOutput)
}
// The state of the IPv4 session.
func (o BgpSessionResponseOutput) SessionStateV4() pulumi.StringOutput {
return o.ApplyT(func(v BgpSessionResponse) string { return v.SessionStateV4 }).(pulumi.StringOutput)
}
// The state of the IPv6 session.
func (o BgpSessionResponseOutput) SessionStateV6() pulumi.StringOutput {
return o.ApplyT(func(v BgpSessionResponse) string { return v.SessionStateV6 }).(pulumi.StringOutput)
}
type BgpSessionResponsePtrOutput struct{ *pulumi.OutputState }
func (BgpSessionResponsePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BgpSessionResponse)(nil)).Elem()
}
func (o BgpSessionResponsePtrOutput) ToBgpSessionResponsePtrOutput() BgpSessionResponsePtrOutput {
return o
}
func (o BgpSessionResponsePtrOutput) ToBgpSessionResponsePtrOutputWithContext(ctx context.Context) BgpSessionResponsePtrOutput {
return o
}
func (o BgpSessionResponsePtrOutput) Elem() BgpSessionResponseOutput {
return o.ApplyT(func(v *BgpSessionResponse) BgpSessionResponse {
if v != nil {
return *v
}
var ret BgpSessionResponse
return ret
}).(BgpSessionResponseOutput)
}
// The maximum number of prefixes advertised over the IPv4 session.
func (o BgpSessionResponsePtrOutput) MaxPrefixesAdvertisedV4() pulumi.IntPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *int {
if v == nil {
return nil
}
return v.MaxPrefixesAdvertisedV4
}).(pulumi.IntPtrOutput)
}
// The maximum number of prefixes advertised over the IPv6 session.
func (o BgpSessionResponsePtrOutput) MaxPrefixesAdvertisedV6() pulumi.IntPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *int {
if v == nil {
return nil
}
return v.MaxPrefixesAdvertisedV6
}).(pulumi.IntPtrOutput)
}
// The MD5 authentication key of the session.
func (o BgpSessionResponsePtrOutput) Md5AuthenticationKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return v.Md5AuthenticationKey
}).(pulumi.StringPtrOutput)
}
// The IPv4 session address on Microsoft's end.
func (o BgpSessionResponsePtrOutput) MicrosoftSessionIPv4Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return v.MicrosoftSessionIPv4Address
}).(pulumi.StringPtrOutput)
}
// The IPv6 session address on Microsoft's end.
func (o BgpSessionResponsePtrOutput) MicrosoftSessionIPv6Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return v.MicrosoftSessionIPv6Address
}).(pulumi.StringPtrOutput)
}
// The IPv4 session address on peer's end.
func (o BgpSessionResponsePtrOutput) PeerSessionIPv4Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return v.PeerSessionIPv4Address
}).(pulumi.StringPtrOutput)
}
// The IPv6 session address on peer's end.
func (o BgpSessionResponsePtrOutput) PeerSessionIPv6Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return v.PeerSessionIPv6Address
}).(pulumi.StringPtrOutput)
}
// The IPv4 prefix that contains both ends' IPv4 addresses.
func (o BgpSessionResponsePtrOutput) SessionPrefixV4() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return v.SessionPrefixV4
}).(pulumi.StringPtrOutput)
}
// The IPv6 prefix that contains both ends' IPv6 addresses.
func (o BgpSessionResponsePtrOutput) SessionPrefixV6() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return v.SessionPrefixV6
}).(pulumi.StringPtrOutput)
}
// The state of the IPv4 session.
func (o BgpSessionResponsePtrOutput) SessionStateV4() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return &v.SessionStateV4
}).(pulumi.StringPtrOutput)
}
// The state of the IPv6 session.
func (o BgpSessionResponsePtrOutput) SessionStateV6() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BgpSessionResponse) *string {
if v == nil {
return nil
}
return &v.SessionStateV6
}).(pulumi.StringPtrOutput)
}
// The contact detail class.
type ContactDetail struct {
// The e-mail address of the contact.
Email *string `pulumi:"email"`
// The phone number of the contact.
Phone *string `pulumi:"phone"`
// The role of the contact.
Role *string `pulumi:"role"`
}
// ContactDetailInput is an input type that accepts ContactDetailArgs and ContactDetailOutput values.
// You can construct a concrete instance of `ContactDetailInput` via:
//
// ContactDetailArgs{...}
type ContactDetailInput interface {
pulumi.Input
ToContactDetailOutput() ContactDetailOutput
ToContactDetailOutputWithContext(context.Context) ContactDetailOutput
}
// The contact detail class.
type ContactDetailArgs struct {
// The e-mail address of the contact.
Email pulumi.StringPtrInput `pulumi:"email"`
// The phone number of the contact.
Phone pulumi.StringPtrInput `pulumi:"phone"`
// The role of the contact.
Role pulumi.StringPtrInput `pulumi:"role"`
}
func (ContactDetailArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ContactDetail)(nil)).Elem()
}
func (i ContactDetailArgs) ToContactDetailOutput() ContactDetailOutput {
return i.ToContactDetailOutputWithContext(context.Background())
}
func (i ContactDetailArgs) ToContactDetailOutputWithContext(ctx context.Context) ContactDetailOutput {
return pulumi.ToOutputWithContext(ctx, i).(ContactDetailOutput)
}
// ContactDetailArrayInput is an input type that accepts ContactDetailArray and ContactDetailArrayOutput values.
// You can construct a concrete instance of `ContactDetailArrayInput` via:
//
// ContactDetailArray{ ContactDetailArgs{...} }
type ContactDetailArrayInput interface {
pulumi.Input
ToContactDetailArrayOutput() ContactDetailArrayOutput
ToContactDetailArrayOutputWithContext(context.Context) ContactDetailArrayOutput
}
type ContactDetailArray []ContactDetailInput
func (ContactDetailArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ContactDetail)(nil)).Elem()
}
func (i ContactDetailArray) ToContactDetailArrayOutput() ContactDetailArrayOutput {
return i.ToContactDetailArrayOutputWithContext(context.Background())
}
func (i ContactDetailArray) ToContactDetailArrayOutputWithContext(ctx context.Context) ContactDetailArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ContactDetailArrayOutput)
}
// The contact detail class.
type ContactDetailOutput struct{ *pulumi.OutputState }
func (ContactDetailOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ContactDetail)(nil)).Elem()
}
func (o ContactDetailOutput) ToContactDetailOutput() ContactDetailOutput {
return o
}
func (o ContactDetailOutput) ToContactDetailOutputWithContext(ctx context.Context) ContactDetailOutput {
return o
}
// The e-mail address of the contact.
func (o ContactDetailOutput) Email() pulumi.StringPtrOutput {
return o.ApplyT(func(v ContactDetail) *string { return v.Email }).(pulumi.StringPtrOutput)
}
// The phone number of the contact.
func (o ContactDetailOutput) Phone() pulumi.StringPtrOutput {
return o.ApplyT(func(v ContactDetail) *string { return v.Phone }).(pulumi.StringPtrOutput)
}
// The role of the contact.
func (o ContactDetailOutput) Role() pulumi.StringPtrOutput {
return o.ApplyT(func(v ContactDetail) *string { return v.Role }).(pulumi.StringPtrOutput)
}
type ContactDetailArrayOutput struct{ *pulumi.OutputState }
func (ContactDetailArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ContactDetail)(nil)).Elem()
}
func (o ContactDetailArrayOutput) ToContactDetailArrayOutput() ContactDetailArrayOutput {
return o
}
func (o ContactDetailArrayOutput) ToContactDetailArrayOutputWithContext(ctx context.Context) ContactDetailArrayOutput {
return o
}
func (o ContactDetailArrayOutput) Index(i pulumi.IntInput) ContactDetailOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContactDetail {
return vs[0].([]ContactDetail)[vs[1].(int)]
}).(ContactDetailOutput)
}
// The contact detail class.
type ContactDetailResponse struct {
// The e-mail address of the contact.
Email *string `pulumi:"email"`
// The phone number of the contact.
Phone *string `pulumi:"phone"`
// The role of the contact.
Role *string `pulumi:"role"`
}
// The contact detail class.
type ContactDetailResponseOutput struct{ *pulumi.OutputState }
func (ContactDetailResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ContactDetailResponse)(nil)).Elem()
}
func (o ContactDetailResponseOutput) ToContactDetailResponseOutput() ContactDetailResponseOutput {
return o
}
func (o ContactDetailResponseOutput) ToContactDetailResponseOutputWithContext(ctx context.Context) ContactDetailResponseOutput {
return o
}
// The e-mail address of the contact.
func (o ContactDetailResponseOutput) Email() pulumi.StringPtrOutput {
return o.ApplyT(func(v ContactDetailResponse) *string { return v.Email }).(pulumi.StringPtrOutput)
}
// The phone number of the contact.
func (o ContactDetailResponseOutput) Phone() pulumi.StringPtrOutput {
return o.ApplyT(func(v ContactDetailResponse) *string { return v.Phone }).(pulumi.StringPtrOutput)
}
// The role of the contact.
func (o ContactDetailResponseOutput) Role() pulumi.StringPtrOutput {
return o.ApplyT(func(v ContactDetailResponse) *string { return v.Role }).(pulumi.StringPtrOutput)
}
type ContactDetailResponseArrayOutput struct{ *pulumi.OutputState }
func (ContactDetailResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ContactDetailResponse)(nil)).Elem()
}
func (o ContactDetailResponseArrayOutput) ToContactDetailResponseArrayOutput() ContactDetailResponseArrayOutput {
return o
}
func (o ContactDetailResponseArrayOutput) ToContactDetailResponseArrayOutputWithContext(ctx context.Context) ContactDetailResponseArrayOutput {
return o
}
func (o ContactDetailResponseArrayOutput) Index(i pulumi.IntInput) ContactDetailResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContactDetailResponse {
return vs[0].([]ContactDetailResponse)[vs[1].(int)]
}).(ContactDetailResponseOutput)
}
// The properties that define a direct connection.
type DirectConnection struct {
// The bandwidth of the connection.
BandwidthInMbps *int `pulumi:"bandwidthInMbps"`
// The BGP session associated with the connection.
BgpSession *BgpSession `pulumi:"bgpSession"`
// The unique identifier (GUID) for the connection.
ConnectionIdentifier *string `pulumi:"connectionIdentifier"`
// The PeeringDB.com ID of the facility at which the connection has to be set up.
PeeringDBFacilityId *int `pulumi:"peeringDBFacilityId"`
// The field indicating if Microsoft provides session ip addresses.
SessionAddressProvider *string `pulumi:"sessionAddressProvider"`
// The flag that indicates whether or not the connection is used for peering service.
UseForPeeringService *bool `pulumi:"useForPeeringService"`
}
// DirectConnectionInput is an input type that accepts DirectConnectionArgs and DirectConnectionOutput values.
// You can construct a concrete instance of `DirectConnectionInput` via:
//
// DirectConnectionArgs{...}
type DirectConnectionInput interface {
pulumi.Input
ToDirectConnectionOutput() DirectConnectionOutput
ToDirectConnectionOutputWithContext(context.Context) DirectConnectionOutput
}
// The properties that define a direct connection.
type DirectConnectionArgs struct {
// The bandwidth of the connection.
BandwidthInMbps pulumi.IntPtrInput `pulumi:"bandwidthInMbps"`
// The BGP session associated with the connection.
BgpSession BgpSessionPtrInput `pulumi:"bgpSession"`
// The unique identifier (GUID) for the connection.
ConnectionIdentifier pulumi.StringPtrInput `pulumi:"connectionIdentifier"`
// The PeeringDB.com ID of the facility at which the connection has to be set up.
PeeringDBFacilityId pulumi.IntPtrInput `pulumi:"peeringDBFacilityId"`
// The field indicating if Microsoft provides session ip addresses.
SessionAddressProvider pulumi.StringPtrInput `pulumi:"sessionAddressProvider"`
// The flag that indicates whether or not the connection is used for peering service.
UseForPeeringService pulumi.BoolPtrInput `pulumi:"useForPeeringService"`
}
func (DirectConnectionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DirectConnection)(nil)).Elem()
}
func (i DirectConnectionArgs) ToDirectConnectionOutput() DirectConnectionOutput {
return i.ToDirectConnectionOutputWithContext(context.Background())
}
func (i DirectConnectionArgs) ToDirectConnectionOutputWithContext(ctx context.Context) DirectConnectionOutput {
return pulumi.ToOutputWithContext(ctx, i).(DirectConnectionOutput)
}
// DirectConnectionArrayInput is an input type that accepts DirectConnectionArray and DirectConnectionArrayOutput values.
// You can construct a concrete instance of `DirectConnectionArrayInput` via:
//
// DirectConnectionArray{ DirectConnectionArgs{...} }
type DirectConnectionArrayInput interface {
pulumi.Input
ToDirectConnectionArrayOutput() DirectConnectionArrayOutput
ToDirectConnectionArrayOutputWithContext(context.Context) DirectConnectionArrayOutput
}
type DirectConnectionArray []DirectConnectionInput
func (DirectConnectionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]DirectConnection)(nil)).Elem()
}
func (i DirectConnectionArray) ToDirectConnectionArrayOutput() DirectConnectionArrayOutput {
return i.ToDirectConnectionArrayOutputWithContext(context.Background())
}
func (i DirectConnectionArray) ToDirectConnectionArrayOutputWithContext(ctx context.Context) DirectConnectionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DirectConnectionArrayOutput)
}
// The properties that define a direct connection.
type DirectConnectionOutput struct{ *pulumi.OutputState }
func (DirectConnectionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DirectConnection)(nil)).Elem()
}
func (o DirectConnectionOutput) ToDirectConnectionOutput() DirectConnectionOutput {
return o
}
func (o DirectConnectionOutput) ToDirectConnectionOutputWithContext(ctx context.Context) DirectConnectionOutput {
return o
}
// The bandwidth of the connection.
func (o DirectConnectionOutput) BandwidthInMbps() pulumi.IntPtrOutput {
return o.ApplyT(func(v DirectConnection) *int { return v.BandwidthInMbps }).(pulumi.IntPtrOutput)
}
// The BGP session associated with the connection.
func (o DirectConnectionOutput) BgpSession() BgpSessionPtrOutput {
return o.ApplyT(func(v DirectConnection) *BgpSession { return v.BgpSession }).(BgpSessionPtrOutput)
}
// The unique identifier (GUID) for the connection.
func (o DirectConnectionOutput) ConnectionIdentifier() pulumi.StringPtrOutput {
return o.ApplyT(func(v DirectConnection) *string { return v.ConnectionIdentifier }).(pulumi.StringPtrOutput)
}
// The PeeringDB.com ID of the facility at which the connection has to be set up.
func (o DirectConnectionOutput) PeeringDBFacilityId() pulumi.IntPtrOutput {
return o.ApplyT(func(v DirectConnection) *int { return v.PeeringDBFacilityId }).(pulumi.IntPtrOutput)
}
// The field indicating if Microsoft provides session ip addresses.
func (o DirectConnectionOutput) SessionAddressProvider() pulumi.StringPtrOutput {
return o.ApplyT(func(v DirectConnection) *string { return v.SessionAddressProvider }).(pulumi.StringPtrOutput)
}
// The flag that indicates whether or not the connection is used for peering service.
func (o DirectConnectionOutput) UseForPeeringService() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DirectConnection) *bool { return v.UseForPeeringService }).(pulumi.BoolPtrOutput)
}
type DirectConnectionArrayOutput struct{ *pulumi.OutputState }
func (DirectConnectionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]DirectConnection)(nil)).Elem()
}
func (o DirectConnectionArrayOutput) ToDirectConnectionArrayOutput() DirectConnectionArrayOutput {
return o
}
func (o DirectConnectionArrayOutput) ToDirectConnectionArrayOutputWithContext(ctx context.Context) DirectConnectionArrayOutput {
return o
}
func (o DirectConnectionArrayOutput) Index(i pulumi.IntInput) DirectConnectionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) DirectConnection {
return vs[0].([]DirectConnection)[vs[1].(int)]
}).(DirectConnectionOutput)
}
// The properties that define a direct connection.
type DirectConnectionResponse struct {
// The bandwidth of the connection.
BandwidthInMbps *int `pulumi:"bandwidthInMbps"`
// The BGP session associated with the connection.
BgpSession *BgpSessionResponse `pulumi:"bgpSession"`
// The unique identifier (GUID) for the connection.
ConnectionIdentifier *string `pulumi:"connectionIdentifier"`
// The state of the connection.
ConnectionState string `pulumi:"connectionState"`
// The error message related to the connection state, if any.
ErrorMessage string `pulumi:"errorMessage"`
// The ID used within Microsoft's peering provisioning system to track the connection
MicrosoftTrackingId string `pulumi:"microsoftTrackingId"`
// The PeeringDB.com ID of the facility at which the connection has to be set up.
PeeringDBFacilityId *int `pulumi:"peeringDBFacilityId"`
// The bandwidth that is actually provisioned.
ProvisionedBandwidthInMbps int `pulumi:"provisionedBandwidthInMbps"`
// The field indicating if Microsoft provides session ip addresses.
SessionAddressProvider *string `pulumi:"sessionAddressProvider"`
// The flag that indicates whether or not the connection is used for peering service.
UseForPeeringService *bool `pulumi:"useForPeeringService"`
}
// The properties that define a direct connection.
type DirectConnectionResponseOutput struct{ *pulumi.OutputState }
func (DirectConnectionResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DirectConnectionResponse)(nil)).Elem()
}
func (o DirectConnectionResponseOutput) ToDirectConnectionResponseOutput() DirectConnectionResponseOutput {
return o
}
func (o DirectConnectionResponseOutput) ToDirectConnectionResponseOutputWithContext(ctx context.Context) DirectConnectionResponseOutput {
return o
}
// The bandwidth of the connection.
func (o DirectConnectionResponseOutput) BandwidthInMbps() pulumi.IntPtrOutput {
return o.ApplyT(func(v DirectConnectionResponse) *int { return v.BandwidthInMbps }).(pulumi.IntPtrOutput)
}
// The BGP session associated with the connection.
func (o DirectConnectionResponseOutput) BgpSession() BgpSessionResponsePtrOutput {
return o.ApplyT(func(v DirectConnectionResponse) *BgpSessionResponse { return v.BgpSession }).(BgpSessionResponsePtrOutput)
}
// The unique identifier (GUID) for the connection.
func (o DirectConnectionResponseOutput) ConnectionIdentifier() pulumi.StringPtrOutput {
return o.ApplyT(func(v DirectConnectionResponse) *string { return v.ConnectionIdentifier }).(pulumi.StringPtrOutput)
}
// The state of the connection.
func (o DirectConnectionResponseOutput) ConnectionState() pulumi.StringOutput {
return o.ApplyT(func(v DirectConnectionResponse) string { return v.ConnectionState }).(pulumi.StringOutput)
}
// The error message related to the connection state, if any.
func (o DirectConnectionResponseOutput) ErrorMessage() pulumi.StringOutput {
return o.ApplyT(func(v DirectConnectionResponse) string { return v.ErrorMessage }).(pulumi.StringOutput)
}
// The ID used within Microsoft's peering provisioning system to track the connection
func (o DirectConnectionResponseOutput) MicrosoftTrackingId() pulumi.StringOutput {
return o.ApplyT(func(v DirectConnectionResponse) string { return v.MicrosoftTrackingId }).(pulumi.StringOutput)
}
// The PeeringDB.com ID of the facility at which the connection has to be set up.
func (o DirectConnectionResponseOutput) PeeringDBFacilityId() pulumi.IntPtrOutput {
return o.ApplyT(func(v DirectConnectionResponse) *int { return v.PeeringDBFacilityId }).(pulumi.IntPtrOutput)
}
// The bandwidth that is actually provisioned.
func (o DirectConnectionResponseOutput) ProvisionedBandwidthInMbps() pulumi.IntOutput {
return o.ApplyT(func(v DirectConnectionResponse) int { return v.ProvisionedBandwidthInMbps }).(pulumi.IntOutput)
}
// The field indicating if Microsoft provides session ip addresses.
func (o DirectConnectionResponseOutput) SessionAddressProvider() pulumi.StringPtrOutput {
return o.ApplyT(func(v DirectConnectionResponse) *string { return v.SessionAddressProvider }).(pulumi.StringPtrOutput)
}
// The flag that indicates whether or not the connection is used for peering service.
func (o DirectConnectionResponseOutput) UseForPeeringService() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DirectConnectionResponse) *bool { return v.UseForPeeringService }).(pulumi.BoolPtrOutput)
}
type DirectConnectionResponseArrayOutput struct{ *pulumi.OutputState }
func (DirectConnectionResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]DirectConnectionResponse)(nil)).Elem()
}
func (o DirectConnectionResponseArrayOutput) ToDirectConnectionResponseArrayOutput() DirectConnectionResponseArrayOutput {
return o
}
func (o DirectConnectionResponseArrayOutput) ToDirectConnectionResponseArrayOutputWithContext(ctx context.Context) DirectConnectionResponseArrayOutput {
return o
}
func (o DirectConnectionResponseArrayOutput) Index(i pulumi.IntInput) DirectConnectionResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) DirectConnectionResponse {
return vs[0].([]DirectConnectionResponse)[vs[1].(int)]
}).(DirectConnectionResponseOutput)
}
// The properties that define an exchange connection.
type ExchangeConnection struct {
// The BGP session associated with the connection.
BgpSession *BgpSession `pulumi:"bgpSession"`
// The unique identifier (GUID) for the connection.
ConnectionIdentifier *string `pulumi:"connectionIdentifier"`
// The PeeringDB.com ID of the facility at which the connection has to be set up.
PeeringDBFacilityId *int `pulumi:"peeringDBFacilityId"`
}
// ExchangeConnectionInput is an input type that accepts ExchangeConnectionArgs and ExchangeConnectionOutput values.
// You can construct a concrete instance of `ExchangeConnectionInput` via:
//
// ExchangeConnectionArgs{...}
type ExchangeConnectionInput interface {
pulumi.Input
ToExchangeConnectionOutput() ExchangeConnectionOutput
ToExchangeConnectionOutputWithContext(context.Context) ExchangeConnectionOutput
}
// The properties that define an exchange connection.
type ExchangeConnectionArgs struct {
// The BGP session associated with the connection.
BgpSession BgpSessionPtrInput `pulumi:"bgpSession"`
// The unique identifier (GUID) for the connection.
ConnectionIdentifier pulumi.StringPtrInput `pulumi:"connectionIdentifier"`
// The PeeringDB.com ID of the facility at which the connection has to be set up.
PeeringDBFacilityId pulumi.IntPtrInput `pulumi:"peeringDBFacilityId"`
}