This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
pulumiTypes.go
2418 lines (1994 loc) · 103 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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20201001preview
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// The approval settings.
type ApprovalSettings struct {
// The type of rule
ApprovalMode *string `pulumi:"approvalMode"`
// The approval stages of the request.
ApprovalStages []ApprovalStage `pulumi:"approvalStages"`
// Determine whether approval is required or not.
IsApprovalRequired *bool `pulumi:"isApprovalRequired"`
// Determine whether approval is required for assignment extension.
IsApprovalRequiredForExtension *bool `pulumi:"isApprovalRequiredForExtension"`
// Determine whether requestor justification required.
IsRequestorJustificationRequired *bool `pulumi:"isRequestorJustificationRequired"`
}
// ApprovalSettingsInput is an input type that accepts ApprovalSettingsArgs and ApprovalSettingsOutput values.
// You can construct a concrete instance of `ApprovalSettingsInput` via:
//
// ApprovalSettingsArgs{...}
type ApprovalSettingsInput interface {
pulumi.Input
ToApprovalSettingsOutput() ApprovalSettingsOutput
ToApprovalSettingsOutputWithContext(context.Context) ApprovalSettingsOutput
}
// The approval settings.
type ApprovalSettingsArgs struct {
// The type of rule
ApprovalMode pulumi.StringPtrInput `pulumi:"approvalMode"`
// The approval stages of the request.
ApprovalStages ApprovalStageArrayInput `pulumi:"approvalStages"`
// Determine whether approval is required or not.
IsApprovalRequired pulumi.BoolPtrInput `pulumi:"isApprovalRequired"`
// Determine whether approval is required for assignment extension.
IsApprovalRequiredForExtension pulumi.BoolPtrInput `pulumi:"isApprovalRequiredForExtension"`
// Determine whether requestor justification required.
IsRequestorJustificationRequired pulumi.BoolPtrInput `pulumi:"isRequestorJustificationRequired"`
}
func (ApprovalSettingsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ApprovalSettings)(nil)).Elem()
}
func (i ApprovalSettingsArgs) ToApprovalSettingsOutput() ApprovalSettingsOutput {
return i.ToApprovalSettingsOutputWithContext(context.Background())
}
func (i ApprovalSettingsArgs) ToApprovalSettingsOutputWithContext(ctx context.Context) ApprovalSettingsOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalSettingsOutput)
}
func (i ApprovalSettingsArgs) ToApprovalSettingsPtrOutput() ApprovalSettingsPtrOutput {
return i.ToApprovalSettingsPtrOutputWithContext(context.Background())
}
func (i ApprovalSettingsArgs) ToApprovalSettingsPtrOutputWithContext(ctx context.Context) ApprovalSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalSettingsOutput).ToApprovalSettingsPtrOutputWithContext(ctx)
}
// ApprovalSettingsPtrInput is an input type that accepts ApprovalSettingsArgs, ApprovalSettingsPtr and ApprovalSettingsPtrOutput values.
// You can construct a concrete instance of `ApprovalSettingsPtrInput` via:
//
// ApprovalSettingsArgs{...}
//
// or:
//
// nil
type ApprovalSettingsPtrInput interface {
pulumi.Input
ToApprovalSettingsPtrOutput() ApprovalSettingsPtrOutput
ToApprovalSettingsPtrOutputWithContext(context.Context) ApprovalSettingsPtrOutput
}
type approvalSettingsPtrType ApprovalSettingsArgs
func ApprovalSettingsPtr(v *ApprovalSettingsArgs) ApprovalSettingsPtrInput {
return (*approvalSettingsPtrType)(v)
}
func (*approvalSettingsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ApprovalSettings)(nil)).Elem()
}
func (i *approvalSettingsPtrType) ToApprovalSettingsPtrOutput() ApprovalSettingsPtrOutput {
return i.ToApprovalSettingsPtrOutputWithContext(context.Background())
}
func (i *approvalSettingsPtrType) ToApprovalSettingsPtrOutputWithContext(ctx context.Context) ApprovalSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalSettingsPtrOutput)
}
// The approval settings.
type ApprovalSettingsOutput struct{ *pulumi.OutputState }
func (ApprovalSettingsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApprovalSettings)(nil)).Elem()
}
func (o ApprovalSettingsOutput) ToApprovalSettingsOutput() ApprovalSettingsOutput {
return o
}
func (o ApprovalSettingsOutput) ToApprovalSettingsOutputWithContext(ctx context.Context) ApprovalSettingsOutput {
return o
}
func (o ApprovalSettingsOutput) ToApprovalSettingsPtrOutput() ApprovalSettingsPtrOutput {
return o.ToApprovalSettingsPtrOutputWithContext(context.Background())
}
func (o ApprovalSettingsOutput) ToApprovalSettingsPtrOutputWithContext(ctx context.Context) ApprovalSettingsPtrOutput {
return o.ApplyT(func(v ApprovalSettings) *ApprovalSettings {
return &v
}).(ApprovalSettingsPtrOutput)
}
// The type of rule
func (o ApprovalSettingsOutput) ApprovalMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v ApprovalSettings) *string { return v.ApprovalMode }).(pulumi.StringPtrOutput)
}
// The approval stages of the request.
func (o ApprovalSettingsOutput) ApprovalStages() ApprovalStageArrayOutput {
return o.ApplyT(func(v ApprovalSettings) []ApprovalStage { return v.ApprovalStages }).(ApprovalStageArrayOutput)
}
// Determine whether approval is required or not.
func (o ApprovalSettingsOutput) IsApprovalRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalSettings) *bool { return v.IsApprovalRequired }).(pulumi.BoolPtrOutput)
}
// Determine whether approval is required for assignment extension.
func (o ApprovalSettingsOutput) IsApprovalRequiredForExtension() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalSettings) *bool { return v.IsApprovalRequiredForExtension }).(pulumi.BoolPtrOutput)
}
// Determine whether requestor justification required.
func (o ApprovalSettingsOutput) IsRequestorJustificationRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalSettings) *bool { return v.IsRequestorJustificationRequired }).(pulumi.BoolPtrOutput)
}
type ApprovalSettingsPtrOutput struct{ *pulumi.OutputState }
func (ApprovalSettingsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ApprovalSettings)(nil)).Elem()
}
func (o ApprovalSettingsPtrOutput) ToApprovalSettingsPtrOutput() ApprovalSettingsPtrOutput {
return o
}
func (o ApprovalSettingsPtrOutput) ToApprovalSettingsPtrOutputWithContext(ctx context.Context) ApprovalSettingsPtrOutput {
return o
}
func (o ApprovalSettingsPtrOutput) Elem() ApprovalSettingsOutput {
return o.ApplyT(func(v *ApprovalSettings) ApprovalSettings { return *v }).(ApprovalSettingsOutput)
}
// The type of rule
func (o ApprovalSettingsPtrOutput) ApprovalMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ApprovalSettings) *string {
if v == nil {
return nil
}
return v.ApprovalMode
}).(pulumi.StringPtrOutput)
}
// The approval stages of the request.
func (o ApprovalSettingsPtrOutput) ApprovalStages() ApprovalStageArrayOutput {
return o.ApplyT(func(v *ApprovalSettings) []ApprovalStage {
if v == nil {
return nil
}
return v.ApprovalStages
}).(ApprovalStageArrayOutput)
}
// Determine whether approval is required or not.
func (o ApprovalSettingsPtrOutput) IsApprovalRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ApprovalSettings) *bool {
if v == nil {
return nil
}
return v.IsApprovalRequired
}).(pulumi.BoolPtrOutput)
}
// Determine whether approval is required for assignment extension.
func (o ApprovalSettingsPtrOutput) IsApprovalRequiredForExtension() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ApprovalSettings) *bool {
if v == nil {
return nil
}
return v.IsApprovalRequiredForExtension
}).(pulumi.BoolPtrOutput)
}
// Determine whether requestor justification required.
func (o ApprovalSettingsPtrOutput) IsRequestorJustificationRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ApprovalSettings) *bool {
if v == nil {
return nil
}
return v.IsRequestorJustificationRequired
}).(pulumi.BoolPtrOutput)
}
// The approval settings.
type ApprovalSettingsResponse struct {
// The type of rule
ApprovalMode *string `pulumi:"approvalMode"`
// The approval stages of the request.
ApprovalStages []ApprovalStageResponse `pulumi:"approvalStages"`
// Determine whether approval is required or not.
IsApprovalRequired *bool `pulumi:"isApprovalRequired"`
// Determine whether approval is required for assignment extension.
IsApprovalRequiredForExtension *bool `pulumi:"isApprovalRequiredForExtension"`
// Determine whether requestor justification required.
IsRequestorJustificationRequired *bool `pulumi:"isRequestorJustificationRequired"`
}
// ApprovalSettingsResponseInput is an input type that accepts ApprovalSettingsResponseArgs and ApprovalSettingsResponseOutput values.
// You can construct a concrete instance of `ApprovalSettingsResponseInput` via:
//
// ApprovalSettingsResponseArgs{...}
type ApprovalSettingsResponseInput interface {
pulumi.Input
ToApprovalSettingsResponseOutput() ApprovalSettingsResponseOutput
ToApprovalSettingsResponseOutputWithContext(context.Context) ApprovalSettingsResponseOutput
}
// The approval settings.
type ApprovalSettingsResponseArgs struct {
// The type of rule
ApprovalMode pulumi.StringPtrInput `pulumi:"approvalMode"`
// The approval stages of the request.
ApprovalStages ApprovalStageResponseArrayInput `pulumi:"approvalStages"`
// Determine whether approval is required or not.
IsApprovalRequired pulumi.BoolPtrInput `pulumi:"isApprovalRequired"`
// Determine whether approval is required for assignment extension.
IsApprovalRequiredForExtension pulumi.BoolPtrInput `pulumi:"isApprovalRequiredForExtension"`
// Determine whether requestor justification required.
IsRequestorJustificationRequired pulumi.BoolPtrInput `pulumi:"isRequestorJustificationRequired"`
}
func (ApprovalSettingsResponseArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ApprovalSettingsResponse)(nil)).Elem()
}
func (i ApprovalSettingsResponseArgs) ToApprovalSettingsResponseOutput() ApprovalSettingsResponseOutput {
return i.ToApprovalSettingsResponseOutputWithContext(context.Background())
}
func (i ApprovalSettingsResponseArgs) ToApprovalSettingsResponseOutputWithContext(ctx context.Context) ApprovalSettingsResponseOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalSettingsResponseOutput)
}
func (i ApprovalSettingsResponseArgs) ToApprovalSettingsResponsePtrOutput() ApprovalSettingsResponsePtrOutput {
return i.ToApprovalSettingsResponsePtrOutputWithContext(context.Background())
}
func (i ApprovalSettingsResponseArgs) ToApprovalSettingsResponsePtrOutputWithContext(ctx context.Context) ApprovalSettingsResponsePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalSettingsResponseOutput).ToApprovalSettingsResponsePtrOutputWithContext(ctx)
}
// ApprovalSettingsResponsePtrInput is an input type that accepts ApprovalSettingsResponseArgs, ApprovalSettingsResponsePtr and ApprovalSettingsResponsePtrOutput values.
// You can construct a concrete instance of `ApprovalSettingsResponsePtrInput` via:
//
// ApprovalSettingsResponseArgs{...}
//
// or:
//
// nil
type ApprovalSettingsResponsePtrInput interface {
pulumi.Input
ToApprovalSettingsResponsePtrOutput() ApprovalSettingsResponsePtrOutput
ToApprovalSettingsResponsePtrOutputWithContext(context.Context) ApprovalSettingsResponsePtrOutput
}
type approvalSettingsResponsePtrType ApprovalSettingsResponseArgs
func ApprovalSettingsResponsePtr(v *ApprovalSettingsResponseArgs) ApprovalSettingsResponsePtrInput {
return (*approvalSettingsResponsePtrType)(v)
}
func (*approvalSettingsResponsePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ApprovalSettingsResponse)(nil)).Elem()
}
func (i *approvalSettingsResponsePtrType) ToApprovalSettingsResponsePtrOutput() ApprovalSettingsResponsePtrOutput {
return i.ToApprovalSettingsResponsePtrOutputWithContext(context.Background())
}
func (i *approvalSettingsResponsePtrType) ToApprovalSettingsResponsePtrOutputWithContext(ctx context.Context) ApprovalSettingsResponsePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalSettingsResponsePtrOutput)
}
// The approval settings.
type ApprovalSettingsResponseOutput struct{ *pulumi.OutputState }
func (ApprovalSettingsResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApprovalSettingsResponse)(nil)).Elem()
}
func (o ApprovalSettingsResponseOutput) ToApprovalSettingsResponseOutput() ApprovalSettingsResponseOutput {
return o
}
func (o ApprovalSettingsResponseOutput) ToApprovalSettingsResponseOutputWithContext(ctx context.Context) ApprovalSettingsResponseOutput {
return o
}
func (o ApprovalSettingsResponseOutput) ToApprovalSettingsResponsePtrOutput() ApprovalSettingsResponsePtrOutput {
return o.ToApprovalSettingsResponsePtrOutputWithContext(context.Background())
}
func (o ApprovalSettingsResponseOutput) ToApprovalSettingsResponsePtrOutputWithContext(ctx context.Context) ApprovalSettingsResponsePtrOutput {
return o.ApplyT(func(v ApprovalSettingsResponse) *ApprovalSettingsResponse {
return &v
}).(ApprovalSettingsResponsePtrOutput)
}
// The type of rule
func (o ApprovalSettingsResponseOutput) ApprovalMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v ApprovalSettingsResponse) *string { return v.ApprovalMode }).(pulumi.StringPtrOutput)
}
// The approval stages of the request.
func (o ApprovalSettingsResponseOutput) ApprovalStages() ApprovalStageResponseArrayOutput {
return o.ApplyT(func(v ApprovalSettingsResponse) []ApprovalStageResponse { return v.ApprovalStages }).(ApprovalStageResponseArrayOutput)
}
// Determine whether approval is required or not.
func (o ApprovalSettingsResponseOutput) IsApprovalRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalSettingsResponse) *bool { return v.IsApprovalRequired }).(pulumi.BoolPtrOutput)
}
// Determine whether approval is required for assignment extension.
func (o ApprovalSettingsResponseOutput) IsApprovalRequiredForExtension() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalSettingsResponse) *bool { return v.IsApprovalRequiredForExtension }).(pulumi.BoolPtrOutput)
}
// Determine whether requestor justification required.
func (o ApprovalSettingsResponseOutput) IsRequestorJustificationRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalSettingsResponse) *bool { return v.IsRequestorJustificationRequired }).(pulumi.BoolPtrOutput)
}
type ApprovalSettingsResponsePtrOutput struct{ *pulumi.OutputState }
func (ApprovalSettingsResponsePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ApprovalSettingsResponse)(nil)).Elem()
}
func (o ApprovalSettingsResponsePtrOutput) ToApprovalSettingsResponsePtrOutput() ApprovalSettingsResponsePtrOutput {
return o
}
func (o ApprovalSettingsResponsePtrOutput) ToApprovalSettingsResponsePtrOutputWithContext(ctx context.Context) ApprovalSettingsResponsePtrOutput {
return o
}
func (o ApprovalSettingsResponsePtrOutput) Elem() ApprovalSettingsResponseOutput {
return o.ApplyT(func(v *ApprovalSettingsResponse) ApprovalSettingsResponse { return *v }).(ApprovalSettingsResponseOutput)
}
// The type of rule
func (o ApprovalSettingsResponsePtrOutput) ApprovalMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ApprovalSettingsResponse) *string {
if v == nil {
return nil
}
return v.ApprovalMode
}).(pulumi.StringPtrOutput)
}
// The approval stages of the request.
func (o ApprovalSettingsResponsePtrOutput) ApprovalStages() ApprovalStageResponseArrayOutput {
return o.ApplyT(func(v *ApprovalSettingsResponse) []ApprovalStageResponse {
if v == nil {
return nil
}
return v.ApprovalStages
}).(ApprovalStageResponseArrayOutput)
}
// Determine whether approval is required or not.
func (o ApprovalSettingsResponsePtrOutput) IsApprovalRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ApprovalSettingsResponse) *bool {
if v == nil {
return nil
}
return v.IsApprovalRequired
}).(pulumi.BoolPtrOutput)
}
// Determine whether approval is required for assignment extension.
func (o ApprovalSettingsResponsePtrOutput) IsApprovalRequiredForExtension() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ApprovalSettingsResponse) *bool {
if v == nil {
return nil
}
return v.IsApprovalRequiredForExtension
}).(pulumi.BoolPtrOutput)
}
// Determine whether requestor justification required.
func (o ApprovalSettingsResponsePtrOutput) IsRequestorJustificationRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ApprovalSettingsResponse) *bool {
if v == nil {
return nil
}
return v.IsRequestorJustificationRequired
}).(pulumi.BoolPtrOutput)
}
// The approval stage.
type ApprovalStage struct {
// The time in days when approval request would be timed out.
ApprovalStageTimeOutInDays *int `pulumi:"approvalStageTimeOutInDays"`
// The escalation approver of the request.
EscalationApprovers []SingleUser `pulumi:"escalationApprovers"`
// The time in minutes when the approval request would be escalated if the primary approver does not approves.
EscalationTimeInMinutes *int `pulumi:"escalationTimeInMinutes"`
// Determine whether approver need to provide justification for his decision.
IsApproverJustificationRequired *bool `pulumi:"isApproverJustificationRequired"`
// The value determine whether escalation feature is enabled.
IsEscalationEnabled *bool `pulumi:"isEscalationEnabled"`
// The primary approver of the request.
PrimaryApprovers []SingleUser `pulumi:"primaryApprovers"`
}
// ApprovalStageInput is an input type that accepts ApprovalStageArgs and ApprovalStageOutput values.
// You can construct a concrete instance of `ApprovalStageInput` via:
//
// ApprovalStageArgs{...}
type ApprovalStageInput interface {
pulumi.Input
ToApprovalStageOutput() ApprovalStageOutput
ToApprovalStageOutputWithContext(context.Context) ApprovalStageOutput
}
// The approval stage.
type ApprovalStageArgs struct {
// The time in days when approval request would be timed out.
ApprovalStageTimeOutInDays pulumi.IntPtrInput `pulumi:"approvalStageTimeOutInDays"`
// The escalation approver of the request.
EscalationApprovers SingleUserArrayInput `pulumi:"escalationApprovers"`
// The time in minutes when the approval request would be escalated if the primary approver does not approves.
EscalationTimeInMinutes pulumi.IntPtrInput `pulumi:"escalationTimeInMinutes"`
// Determine whether approver need to provide justification for his decision.
IsApproverJustificationRequired pulumi.BoolPtrInput `pulumi:"isApproverJustificationRequired"`
// The value determine whether escalation feature is enabled.
IsEscalationEnabled pulumi.BoolPtrInput `pulumi:"isEscalationEnabled"`
// The primary approver of the request.
PrimaryApprovers SingleUserArrayInput `pulumi:"primaryApprovers"`
}
func (ApprovalStageArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ApprovalStage)(nil)).Elem()
}
func (i ApprovalStageArgs) ToApprovalStageOutput() ApprovalStageOutput {
return i.ToApprovalStageOutputWithContext(context.Background())
}
func (i ApprovalStageArgs) ToApprovalStageOutputWithContext(ctx context.Context) ApprovalStageOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalStageOutput)
}
// ApprovalStageArrayInput is an input type that accepts ApprovalStageArray and ApprovalStageArrayOutput values.
// You can construct a concrete instance of `ApprovalStageArrayInput` via:
//
// ApprovalStageArray{ ApprovalStageArgs{...} }
type ApprovalStageArrayInput interface {
pulumi.Input
ToApprovalStageArrayOutput() ApprovalStageArrayOutput
ToApprovalStageArrayOutputWithContext(context.Context) ApprovalStageArrayOutput
}
type ApprovalStageArray []ApprovalStageInput
func (ApprovalStageArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ApprovalStage)(nil)).Elem()
}
func (i ApprovalStageArray) ToApprovalStageArrayOutput() ApprovalStageArrayOutput {
return i.ToApprovalStageArrayOutputWithContext(context.Background())
}
func (i ApprovalStageArray) ToApprovalStageArrayOutputWithContext(ctx context.Context) ApprovalStageArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalStageArrayOutput)
}
// The approval stage.
type ApprovalStageOutput struct{ *pulumi.OutputState }
func (ApprovalStageOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApprovalStage)(nil)).Elem()
}
func (o ApprovalStageOutput) ToApprovalStageOutput() ApprovalStageOutput {
return o
}
func (o ApprovalStageOutput) ToApprovalStageOutputWithContext(ctx context.Context) ApprovalStageOutput {
return o
}
// The time in days when approval request would be timed out.
func (o ApprovalStageOutput) ApprovalStageTimeOutInDays() pulumi.IntPtrOutput {
return o.ApplyT(func(v ApprovalStage) *int { return v.ApprovalStageTimeOutInDays }).(pulumi.IntPtrOutput)
}
// The escalation approver of the request.
func (o ApprovalStageOutput) EscalationApprovers() SingleUserArrayOutput {
return o.ApplyT(func(v ApprovalStage) []SingleUser { return v.EscalationApprovers }).(SingleUserArrayOutput)
}
// The time in minutes when the approval request would be escalated if the primary approver does not approves.
func (o ApprovalStageOutput) EscalationTimeInMinutes() pulumi.IntPtrOutput {
return o.ApplyT(func(v ApprovalStage) *int { return v.EscalationTimeInMinutes }).(pulumi.IntPtrOutput)
}
// Determine whether approver need to provide justification for his decision.
func (o ApprovalStageOutput) IsApproverJustificationRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalStage) *bool { return v.IsApproverJustificationRequired }).(pulumi.BoolPtrOutput)
}
// The value determine whether escalation feature is enabled.
func (o ApprovalStageOutput) IsEscalationEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalStage) *bool { return v.IsEscalationEnabled }).(pulumi.BoolPtrOutput)
}
// The primary approver of the request.
func (o ApprovalStageOutput) PrimaryApprovers() SingleUserArrayOutput {
return o.ApplyT(func(v ApprovalStage) []SingleUser { return v.PrimaryApprovers }).(SingleUserArrayOutput)
}
type ApprovalStageArrayOutput struct{ *pulumi.OutputState }
func (ApprovalStageArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ApprovalStage)(nil)).Elem()
}
func (o ApprovalStageArrayOutput) ToApprovalStageArrayOutput() ApprovalStageArrayOutput {
return o
}
func (o ApprovalStageArrayOutput) ToApprovalStageArrayOutputWithContext(ctx context.Context) ApprovalStageArrayOutput {
return o
}
func (o ApprovalStageArrayOutput) Index(i pulumi.IntInput) ApprovalStageOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ApprovalStage {
return vs[0].([]ApprovalStage)[vs[1].(int)]
}).(ApprovalStageOutput)
}
// The approval stage.
type ApprovalStageResponse struct {
// The time in days when approval request would be timed out.
ApprovalStageTimeOutInDays *int `pulumi:"approvalStageTimeOutInDays"`
// The escalation approver of the request.
EscalationApprovers []SingleUserResponse `pulumi:"escalationApprovers"`
// The time in minutes when the approval request would be escalated if the primary approver does not approves.
EscalationTimeInMinutes *int `pulumi:"escalationTimeInMinutes"`
// Determine whether approver need to provide justification for his decision.
IsApproverJustificationRequired *bool `pulumi:"isApproverJustificationRequired"`
// The value determine whether escalation feature is enabled.
IsEscalationEnabled *bool `pulumi:"isEscalationEnabled"`
// The primary approver of the request.
PrimaryApprovers []SingleUserResponse `pulumi:"primaryApprovers"`
}
// ApprovalStageResponseInput is an input type that accepts ApprovalStageResponseArgs and ApprovalStageResponseOutput values.
// You can construct a concrete instance of `ApprovalStageResponseInput` via:
//
// ApprovalStageResponseArgs{...}
type ApprovalStageResponseInput interface {
pulumi.Input
ToApprovalStageResponseOutput() ApprovalStageResponseOutput
ToApprovalStageResponseOutputWithContext(context.Context) ApprovalStageResponseOutput
}
// The approval stage.
type ApprovalStageResponseArgs struct {
// The time in days when approval request would be timed out.
ApprovalStageTimeOutInDays pulumi.IntPtrInput `pulumi:"approvalStageTimeOutInDays"`
// The escalation approver of the request.
EscalationApprovers SingleUserResponseArrayInput `pulumi:"escalationApprovers"`
// The time in minutes when the approval request would be escalated if the primary approver does not approves.
EscalationTimeInMinutes pulumi.IntPtrInput `pulumi:"escalationTimeInMinutes"`
// Determine whether approver need to provide justification for his decision.
IsApproverJustificationRequired pulumi.BoolPtrInput `pulumi:"isApproverJustificationRequired"`
// The value determine whether escalation feature is enabled.
IsEscalationEnabled pulumi.BoolPtrInput `pulumi:"isEscalationEnabled"`
// The primary approver of the request.
PrimaryApprovers SingleUserResponseArrayInput `pulumi:"primaryApprovers"`
}
func (ApprovalStageResponseArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ApprovalStageResponse)(nil)).Elem()
}
func (i ApprovalStageResponseArgs) ToApprovalStageResponseOutput() ApprovalStageResponseOutput {
return i.ToApprovalStageResponseOutputWithContext(context.Background())
}
func (i ApprovalStageResponseArgs) ToApprovalStageResponseOutputWithContext(ctx context.Context) ApprovalStageResponseOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalStageResponseOutput)
}
// ApprovalStageResponseArrayInput is an input type that accepts ApprovalStageResponseArray and ApprovalStageResponseArrayOutput values.
// You can construct a concrete instance of `ApprovalStageResponseArrayInput` via:
//
// ApprovalStageResponseArray{ ApprovalStageResponseArgs{...} }
type ApprovalStageResponseArrayInput interface {
pulumi.Input
ToApprovalStageResponseArrayOutput() ApprovalStageResponseArrayOutput
ToApprovalStageResponseArrayOutputWithContext(context.Context) ApprovalStageResponseArrayOutput
}
type ApprovalStageResponseArray []ApprovalStageResponseInput
func (ApprovalStageResponseArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ApprovalStageResponse)(nil)).Elem()
}
func (i ApprovalStageResponseArray) ToApprovalStageResponseArrayOutput() ApprovalStageResponseArrayOutput {
return i.ToApprovalStageResponseArrayOutputWithContext(context.Background())
}
func (i ApprovalStageResponseArray) ToApprovalStageResponseArrayOutputWithContext(ctx context.Context) ApprovalStageResponseArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApprovalStageResponseArrayOutput)
}
// The approval stage.
type ApprovalStageResponseOutput struct{ *pulumi.OutputState }
func (ApprovalStageResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApprovalStageResponse)(nil)).Elem()
}
func (o ApprovalStageResponseOutput) ToApprovalStageResponseOutput() ApprovalStageResponseOutput {
return o
}
func (o ApprovalStageResponseOutput) ToApprovalStageResponseOutputWithContext(ctx context.Context) ApprovalStageResponseOutput {
return o
}
// The time in days when approval request would be timed out.
func (o ApprovalStageResponseOutput) ApprovalStageTimeOutInDays() pulumi.IntPtrOutput {
return o.ApplyT(func(v ApprovalStageResponse) *int { return v.ApprovalStageTimeOutInDays }).(pulumi.IntPtrOutput)
}
// The escalation approver of the request.
func (o ApprovalStageResponseOutput) EscalationApprovers() SingleUserResponseArrayOutput {
return o.ApplyT(func(v ApprovalStageResponse) []SingleUserResponse { return v.EscalationApprovers }).(SingleUserResponseArrayOutput)
}
// The time in minutes when the approval request would be escalated if the primary approver does not approves.
func (o ApprovalStageResponseOutput) EscalationTimeInMinutes() pulumi.IntPtrOutput {
return o.ApplyT(func(v ApprovalStageResponse) *int { return v.EscalationTimeInMinutes }).(pulumi.IntPtrOutput)
}
// Determine whether approver need to provide justification for his decision.
func (o ApprovalStageResponseOutput) IsApproverJustificationRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalStageResponse) *bool { return v.IsApproverJustificationRequired }).(pulumi.BoolPtrOutput)
}
// The value determine whether escalation feature is enabled.
func (o ApprovalStageResponseOutput) IsEscalationEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ApprovalStageResponse) *bool { return v.IsEscalationEnabled }).(pulumi.BoolPtrOutput)
}
// The primary approver of the request.
func (o ApprovalStageResponseOutput) PrimaryApprovers() SingleUserResponseArrayOutput {
return o.ApplyT(func(v ApprovalStageResponse) []SingleUserResponse { return v.PrimaryApprovers }).(SingleUserResponseArrayOutput)
}
type ApprovalStageResponseArrayOutput struct{ *pulumi.OutputState }
func (ApprovalStageResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ApprovalStageResponse)(nil)).Elem()
}
func (o ApprovalStageResponseArrayOutput) ToApprovalStageResponseArrayOutput() ApprovalStageResponseArrayOutput {
return o
}
func (o ApprovalStageResponseArrayOutput) ToApprovalStageResponseArrayOutputWithContext(ctx context.Context) ApprovalStageResponseArrayOutput {
return o
}
func (o ApprovalStageResponseArrayOutput) Index(i pulumi.IntInput) ApprovalStageResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ApprovalStageResponse {
return vs[0].([]ApprovalStageResponse)[vs[1].(int)]
}).(ApprovalStageResponseOutput)
}
// The role management policy rule.
type RoleManagementPolicyApprovalRule struct {
// The id of the rule.
Id *string `pulumi:"id"`
// The type of rule
// Expected value is 'RoleManagementPolicyApprovalRule'.
RuleType string `pulumi:"ruleType"`
// The approval setting
Setting *ApprovalSettings `pulumi:"setting"`
// The target of the current rule.
Target *RoleManagementPolicyRuleTarget `pulumi:"target"`
}
// RoleManagementPolicyApprovalRuleInput is an input type that accepts RoleManagementPolicyApprovalRuleArgs and RoleManagementPolicyApprovalRuleOutput values.
// You can construct a concrete instance of `RoleManagementPolicyApprovalRuleInput` via:
//
// RoleManagementPolicyApprovalRuleArgs{...}
type RoleManagementPolicyApprovalRuleInput interface {
pulumi.Input
ToRoleManagementPolicyApprovalRuleOutput() RoleManagementPolicyApprovalRuleOutput
ToRoleManagementPolicyApprovalRuleOutputWithContext(context.Context) RoleManagementPolicyApprovalRuleOutput
}
// The role management policy rule.
type RoleManagementPolicyApprovalRuleArgs struct {
// The id of the rule.
Id pulumi.StringPtrInput `pulumi:"id"`
// The type of rule
// Expected value is 'RoleManagementPolicyApprovalRule'.
RuleType pulumi.StringInput `pulumi:"ruleType"`
// The approval setting
Setting ApprovalSettingsPtrInput `pulumi:"setting"`
// The target of the current rule.
Target RoleManagementPolicyRuleTargetPtrInput `pulumi:"target"`
}
func (RoleManagementPolicyApprovalRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*RoleManagementPolicyApprovalRule)(nil)).Elem()
}
func (i RoleManagementPolicyApprovalRuleArgs) ToRoleManagementPolicyApprovalRuleOutput() RoleManagementPolicyApprovalRuleOutput {
return i.ToRoleManagementPolicyApprovalRuleOutputWithContext(context.Background())
}
func (i RoleManagementPolicyApprovalRuleArgs) ToRoleManagementPolicyApprovalRuleOutputWithContext(ctx context.Context) RoleManagementPolicyApprovalRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(RoleManagementPolicyApprovalRuleOutput)
}
// The role management policy rule.
type RoleManagementPolicyApprovalRuleOutput struct{ *pulumi.OutputState }
func (RoleManagementPolicyApprovalRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*RoleManagementPolicyApprovalRule)(nil)).Elem()
}
func (o RoleManagementPolicyApprovalRuleOutput) ToRoleManagementPolicyApprovalRuleOutput() RoleManagementPolicyApprovalRuleOutput {
return o
}
func (o RoleManagementPolicyApprovalRuleOutput) ToRoleManagementPolicyApprovalRuleOutputWithContext(ctx context.Context) RoleManagementPolicyApprovalRuleOutput {
return o
}
// The id of the rule.
func (o RoleManagementPolicyApprovalRuleOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v RoleManagementPolicyApprovalRule) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The type of rule
// Expected value is 'RoleManagementPolicyApprovalRule'.
func (o RoleManagementPolicyApprovalRuleOutput) RuleType() pulumi.StringOutput {
return o.ApplyT(func(v RoleManagementPolicyApprovalRule) string { return v.RuleType }).(pulumi.StringOutput)
}
// The approval setting
func (o RoleManagementPolicyApprovalRuleOutput) Setting() ApprovalSettingsPtrOutput {
return o.ApplyT(func(v RoleManagementPolicyApprovalRule) *ApprovalSettings { return v.Setting }).(ApprovalSettingsPtrOutput)
}
// The target of the current rule.
func (o RoleManagementPolicyApprovalRuleOutput) Target() RoleManagementPolicyRuleTargetPtrOutput {
return o.ApplyT(func(v RoleManagementPolicyApprovalRule) *RoleManagementPolicyRuleTarget { return v.Target }).(RoleManagementPolicyRuleTargetPtrOutput)
}
// The role management policy rule.
type RoleManagementPolicyApprovalRuleResponse struct {
// The id of the rule.
Id *string `pulumi:"id"`
// The type of rule
// Expected value is 'RoleManagementPolicyApprovalRule'.
RuleType string `pulumi:"ruleType"`
// The approval setting
Setting *ApprovalSettingsResponse `pulumi:"setting"`
// The target of the current rule.
Target *RoleManagementPolicyRuleTargetResponse `pulumi:"target"`
}
// RoleManagementPolicyApprovalRuleResponseInput is an input type that accepts RoleManagementPolicyApprovalRuleResponseArgs and RoleManagementPolicyApprovalRuleResponseOutput values.
// You can construct a concrete instance of `RoleManagementPolicyApprovalRuleResponseInput` via:
//
// RoleManagementPolicyApprovalRuleResponseArgs{...}
type RoleManagementPolicyApprovalRuleResponseInput interface {
pulumi.Input
ToRoleManagementPolicyApprovalRuleResponseOutput() RoleManagementPolicyApprovalRuleResponseOutput
ToRoleManagementPolicyApprovalRuleResponseOutputWithContext(context.Context) RoleManagementPolicyApprovalRuleResponseOutput
}
// The role management policy rule.
type RoleManagementPolicyApprovalRuleResponseArgs struct {
// The id of the rule.
Id pulumi.StringPtrInput `pulumi:"id"`
// The type of rule
// Expected value is 'RoleManagementPolicyApprovalRule'.
RuleType pulumi.StringInput `pulumi:"ruleType"`
// The approval setting
Setting ApprovalSettingsResponsePtrInput `pulumi:"setting"`
// The target of the current rule.
Target RoleManagementPolicyRuleTargetResponsePtrInput `pulumi:"target"`
}
func (RoleManagementPolicyApprovalRuleResponseArgs) ElementType() reflect.Type {
return reflect.TypeOf((*RoleManagementPolicyApprovalRuleResponse)(nil)).Elem()
}
func (i RoleManagementPolicyApprovalRuleResponseArgs) ToRoleManagementPolicyApprovalRuleResponseOutput() RoleManagementPolicyApprovalRuleResponseOutput {
return i.ToRoleManagementPolicyApprovalRuleResponseOutputWithContext(context.Background())
}
func (i RoleManagementPolicyApprovalRuleResponseArgs) ToRoleManagementPolicyApprovalRuleResponseOutputWithContext(ctx context.Context) RoleManagementPolicyApprovalRuleResponseOutput {
return pulumi.ToOutputWithContext(ctx, i).(RoleManagementPolicyApprovalRuleResponseOutput)
}
// The role management policy rule.
type RoleManagementPolicyApprovalRuleResponseOutput struct{ *pulumi.OutputState }
func (RoleManagementPolicyApprovalRuleResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*RoleManagementPolicyApprovalRuleResponse)(nil)).Elem()
}
func (o RoleManagementPolicyApprovalRuleResponseOutput) ToRoleManagementPolicyApprovalRuleResponseOutput() RoleManagementPolicyApprovalRuleResponseOutput {
return o
}
func (o RoleManagementPolicyApprovalRuleResponseOutput) ToRoleManagementPolicyApprovalRuleResponseOutputWithContext(ctx context.Context) RoleManagementPolicyApprovalRuleResponseOutput {
return o
}
// The id of the rule.
func (o RoleManagementPolicyApprovalRuleResponseOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v RoleManagementPolicyApprovalRuleResponse) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The type of rule
// Expected value is 'RoleManagementPolicyApprovalRule'.
func (o RoleManagementPolicyApprovalRuleResponseOutput) RuleType() pulumi.StringOutput {
return o.ApplyT(func(v RoleManagementPolicyApprovalRuleResponse) string { return v.RuleType }).(pulumi.StringOutput)
}
// The approval setting
func (o RoleManagementPolicyApprovalRuleResponseOutput) Setting() ApprovalSettingsResponsePtrOutput {
return o.ApplyT(func(v RoleManagementPolicyApprovalRuleResponse) *ApprovalSettingsResponse { return v.Setting }).(ApprovalSettingsResponsePtrOutput)
}
// The target of the current rule.
func (o RoleManagementPolicyApprovalRuleResponseOutput) Target() RoleManagementPolicyRuleTargetResponsePtrOutput {
return o.ApplyT(func(v RoleManagementPolicyApprovalRuleResponse) *RoleManagementPolicyRuleTargetResponse {
return v.Target
}).(RoleManagementPolicyRuleTargetResponsePtrOutput)
}
// The role management policy rule.
type RoleManagementPolicyAuthenticationContextRule struct {
// The claim value.
ClaimValue *string `pulumi:"claimValue"`
// The id of the rule.
Id *string `pulumi:"id"`
// The value indicating if rule is enabled.
IsEnabled *bool `pulumi:"isEnabled"`
// The type of rule
// Expected value is 'RoleManagementPolicyAuthenticationContextRule'.
RuleType string `pulumi:"ruleType"`
// The target of the current rule.
Target *RoleManagementPolicyRuleTarget `pulumi:"target"`
}
// RoleManagementPolicyAuthenticationContextRuleInput is an input type that accepts RoleManagementPolicyAuthenticationContextRuleArgs and RoleManagementPolicyAuthenticationContextRuleOutput values.
// You can construct a concrete instance of `RoleManagementPolicyAuthenticationContextRuleInput` via:
//
// RoleManagementPolicyAuthenticationContextRuleArgs{...}
type RoleManagementPolicyAuthenticationContextRuleInput interface {
pulumi.Input
ToRoleManagementPolicyAuthenticationContextRuleOutput() RoleManagementPolicyAuthenticationContextRuleOutput
ToRoleManagementPolicyAuthenticationContextRuleOutputWithContext(context.Context) RoleManagementPolicyAuthenticationContextRuleOutput
}
// The role management policy rule.
type RoleManagementPolicyAuthenticationContextRuleArgs struct {
// The claim value.
ClaimValue pulumi.StringPtrInput `pulumi:"claimValue"`
// The id of the rule.
Id pulumi.StringPtrInput `pulumi:"id"`
// The value indicating if rule is enabled.
IsEnabled pulumi.BoolPtrInput `pulumi:"isEnabled"`
// The type of rule
// Expected value is 'RoleManagementPolicyAuthenticationContextRule'.
RuleType pulumi.StringInput `pulumi:"ruleType"`
// The target of the current rule.
Target RoleManagementPolicyRuleTargetPtrInput `pulumi:"target"`
}
func (RoleManagementPolicyAuthenticationContextRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*RoleManagementPolicyAuthenticationContextRule)(nil)).Elem()
}
func (i RoleManagementPolicyAuthenticationContextRuleArgs) ToRoleManagementPolicyAuthenticationContextRuleOutput() RoleManagementPolicyAuthenticationContextRuleOutput {
return i.ToRoleManagementPolicyAuthenticationContextRuleOutputWithContext(context.Background())
}
func (i RoleManagementPolicyAuthenticationContextRuleArgs) ToRoleManagementPolicyAuthenticationContextRuleOutputWithContext(ctx context.Context) RoleManagementPolicyAuthenticationContextRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(RoleManagementPolicyAuthenticationContextRuleOutput)
}
// The role management policy rule.
type RoleManagementPolicyAuthenticationContextRuleOutput struct{ *pulumi.OutputState }
func (RoleManagementPolicyAuthenticationContextRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*RoleManagementPolicyAuthenticationContextRule)(nil)).Elem()
}
func (o RoleManagementPolicyAuthenticationContextRuleOutput) ToRoleManagementPolicyAuthenticationContextRuleOutput() RoleManagementPolicyAuthenticationContextRuleOutput {
return o
}
func (o RoleManagementPolicyAuthenticationContextRuleOutput) ToRoleManagementPolicyAuthenticationContextRuleOutputWithContext(ctx context.Context) RoleManagementPolicyAuthenticationContextRuleOutput {
return o
}
// The claim value.
func (o RoleManagementPolicyAuthenticationContextRuleOutput) ClaimValue() pulumi.StringPtrOutput {
return o.ApplyT(func(v RoleManagementPolicyAuthenticationContextRule) *string { return v.ClaimValue }).(pulumi.StringPtrOutput)
}
// The id of the rule.
func (o RoleManagementPolicyAuthenticationContextRuleOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v RoleManagementPolicyAuthenticationContextRule) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The value indicating if rule is enabled.
func (o RoleManagementPolicyAuthenticationContextRuleOutput) IsEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v RoleManagementPolicyAuthenticationContextRule) *bool { return v.IsEnabled }).(pulumi.BoolPtrOutput)
}
// The type of rule
// Expected value is 'RoleManagementPolicyAuthenticationContextRule'.
func (o RoleManagementPolicyAuthenticationContextRuleOutput) RuleType() pulumi.StringOutput {
return o.ApplyT(func(v RoleManagementPolicyAuthenticationContextRule) string { return v.RuleType }).(pulumi.StringOutput)
}
// The target of the current rule.
func (o RoleManagementPolicyAuthenticationContextRuleOutput) Target() RoleManagementPolicyRuleTargetPtrOutput {
return o.ApplyT(func(v RoleManagementPolicyAuthenticationContextRule) *RoleManagementPolicyRuleTarget { return v.Target }).(RoleManagementPolicyRuleTargetPtrOutput)
}
// The role management policy rule.
type RoleManagementPolicyAuthenticationContextRuleResponse struct {
// The claim value.
ClaimValue *string `pulumi:"claimValue"`
// The id of the rule.
Id *string `pulumi:"id"`
// The value indicating if rule is enabled.
IsEnabled *bool `pulumi:"isEnabled"`
// The type of rule
// Expected value is 'RoleManagementPolicyAuthenticationContextRule'.
RuleType string `pulumi:"ruleType"`
// The target of the current rule.