/
pulumiTypes.go
690 lines (551 loc) · 28.8 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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package chaosstudio
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type ExperimentIdentity struct {
// A list of User Managed Identity IDs which should be assigned to the Policy Definition.
//
// > **NOTE:** This is required when `type` is set to `UserAssigned`.
IdentityIds []string `pulumi:"identityIds"`
// The Principal ID associated with this Managed Service Identity.
PrincipalId *string `pulumi:"principalId"`
// The Tenant ID associated with this Managed Service Identity.
TenantId *string `pulumi:"tenantId"`
// The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
Type string `pulumi:"type"`
}
// ExperimentIdentityInput is an input type that accepts ExperimentIdentityArgs and ExperimentIdentityOutput values.
// You can construct a concrete instance of `ExperimentIdentityInput` via:
//
// ExperimentIdentityArgs{...}
type ExperimentIdentityInput interface {
pulumi.Input
ToExperimentIdentityOutput() ExperimentIdentityOutput
ToExperimentIdentityOutputWithContext(context.Context) ExperimentIdentityOutput
}
type ExperimentIdentityArgs struct {
// A list of User Managed Identity IDs which should be assigned to the Policy Definition.
//
// > **NOTE:** This is required when `type` is set to `UserAssigned`.
IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"`
// The Principal ID associated with this Managed Service Identity.
PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
// The Tenant ID associated with this Managed Service Identity.
TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
// The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
Type pulumi.StringInput `pulumi:"type"`
}
func (ExperimentIdentityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentIdentity)(nil)).Elem()
}
func (i ExperimentIdentityArgs) ToExperimentIdentityOutput() ExperimentIdentityOutput {
return i.ToExperimentIdentityOutputWithContext(context.Background())
}
func (i ExperimentIdentityArgs) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentIdentityOutput)
}
func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput {
return i.ToExperimentIdentityPtrOutputWithContext(context.Background())
}
func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentIdentityOutput).ToExperimentIdentityPtrOutputWithContext(ctx)
}
// ExperimentIdentityPtrInput is an input type that accepts ExperimentIdentityArgs, ExperimentIdentityPtr and ExperimentIdentityPtrOutput values.
// You can construct a concrete instance of `ExperimentIdentityPtrInput` via:
//
// ExperimentIdentityArgs{...}
//
// or:
//
// nil
type ExperimentIdentityPtrInput interface {
pulumi.Input
ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput
ToExperimentIdentityPtrOutputWithContext(context.Context) ExperimentIdentityPtrOutput
}
type experimentIdentityPtrType ExperimentIdentityArgs
func ExperimentIdentityPtr(v *ExperimentIdentityArgs) ExperimentIdentityPtrInput {
return (*experimentIdentityPtrType)(v)
}
func (*experimentIdentityPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ExperimentIdentity)(nil)).Elem()
}
func (i *experimentIdentityPtrType) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput {
return i.ToExperimentIdentityPtrOutputWithContext(context.Background())
}
func (i *experimentIdentityPtrType) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentIdentityPtrOutput)
}
type ExperimentIdentityOutput struct{ *pulumi.OutputState }
func (ExperimentIdentityOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentIdentity)(nil)).Elem()
}
func (o ExperimentIdentityOutput) ToExperimentIdentityOutput() ExperimentIdentityOutput {
return o
}
func (o ExperimentIdentityOutput) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput {
return o
}
func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput {
return o.ToExperimentIdentityPtrOutputWithContext(context.Background())
}
func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ExperimentIdentity) *ExperimentIdentity {
return &v
}).(ExperimentIdentityPtrOutput)
}
// A list of User Managed Identity IDs which should be assigned to the Policy Definition.
//
// > **NOTE:** This is required when `type` is set to `UserAssigned`.
func (o ExperimentIdentityOutput) IdentityIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v ExperimentIdentity) []string { return v.IdentityIds }).(pulumi.StringArrayOutput)
}
// The Principal ID associated with this Managed Service Identity.
func (o ExperimentIdentityOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ExperimentIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput)
}
// The Tenant ID associated with this Managed Service Identity.
func (o ExperimentIdentityOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ExperimentIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput)
}
// The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
func (o ExperimentIdentityOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v ExperimentIdentity) string { return v.Type }).(pulumi.StringOutput)
}
type ExperimentIdentityPtrOutput struct{ *pulumi.OutputState }
func (ExperimentIdentityPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ExperimentIdentity)(nil)).Elem()
}
func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput {
return o
}
func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput {
return o
}
func (o ExperimentIdentityPtrOutput) Elem() ExperimentIdentityOutput {
return o.ApplyT(func(v *ExperimentIdentity) ExperimentIdentity {
if v != nil {
return *v
}
var ret ExperimentIdentity
return ret
}).(ExperimentIdentityOutput)
}
// A list of User Managed Identity IDs which should be assigned to the Policy Definition.
//
// > **NOTE:** This is required when `type` is set to `UserAssigned`.
func (o ExperimentIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ExperimentIdentity) []string {
if v == nil {
return nil
}
return v.IdentityIds
}).(pulumi.StringArrayOutput)
}
// The Principal ID associated with this Managed Service Identity.
func (o ExperimentIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ExperimentIdentity) *string {
if v == nil {
return nil
}
return v.PrincipalId
}).(pulumi.StringPtrOutput)
}
// The Tenant ID associated with this Managed Service Identity.
func (o ExperimentIdentityPtrOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ExperimentIdentity) *string {
if v == nil {
return nil
}
return v.TenantId
}).(pulumi.StringPtrOutput)
}
// The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
func (o ExperimentIdentityPtrOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ExperimentIdentity) *string {
if v == nil {
return nil
}
return &v.Type
}).(pulumi.StringPtrOutput)
}
type ExperimentSelector struct {
// A list of Chaos Studio Target IDs that should be part of this Selector.
ChaosStudioTargetIds []string `pulumi:"chaosStudioTargetIds"`
// The name of this Selector.
Name string `pulumi:"name"`
}
// ExperimentSelectorInput is an input type that accepts ExperimentSelectorArgs and ExperimentSelectorOutput values.
// You can construct a concrete instance of `ExperimentSelectorInput` via:
//
// ExperimentSelectorArgs{...}
type ExperimentSelectorInput interface {
pulumi.Input
ToExperimentSelectorOutput() ExperimentSelectorOutput
ToExperimentSelectorOutputWithContext(context.Context) ExperimentSelectorOutput
}
type ExperimentSelectorArgs struct {
// A list of Chaos Studio Target IDs that should be part of this Selector.
ChaosStudioTargetIds pulumi.StringArrayInput `pulumi:"chaosStudioTargetIds"`
// The name of this Selector.
Name pulumi.StringInput `pulumi:"name"`
}
func (ExperimentSelectorArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentSelector)(nil)).Elem()
}
func (i ExperimentSelectorArgs) ToExperimentSelectorOutput() ExperimentSelectorOutput {
return i.ToExperimentSelectorOutputWithContext(context.Background())
}
func (i ExperimentSelectorArgs) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentSelectorOutput)
}
// ExperimentSelectorArrayInput is an input type that accepts ExperimentSelectorArray and ExperimentSelectorArrayOutput values.
// You can construct a concrete instance of `ExperimentSelectorArrayInput` via:
//
// ExperimentSelectorArray{ ExperimentSelectorArgs{...} }
type ExperimentSelectorArrayInput interface {
pulumi.Input
ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput
ToExperimentSelectorArrayOutputWithContext(context.Context) ExperimentSelectorArrayOutput
}
type ExperimentSelectorArray []ExperimentSelectorInput
func (ExperimentSelectorArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ExperimentSelector)(nil)).Elem()
}
func (i ExperimentSelectorArray) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput {
return i.ToExperimentSelectorArrayOutputWithContext(context.Background())
}
func (i ExperimentSelectorArray) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentSelectorArrayOutput)
}
type ExperimentSelectorOutput struct{ *pulumi.OutputState }
func (ExperimentSelectorOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentSelector)(nil)).Elem()
}
func (o ExperimentSelectorOutput) ToExperimentSelectorOutput() ExperimentSelectorOutput {
return o
}
func (o ExperimentSelectorOutput) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput {
return o
}
// A list of Chaos Studio Target IDs that should be part of this Selector.
func (o ExperimentSelectorOutput) ChaosStudioTargetIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v ExperimentSelector) []string { return v.ChaosStudioTargetIds }).(pulumi.StringArrayOutput)
}
// The name of this Selector.
func (o ExperimentSelectorOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v ExperimentSelector) string { return v.Name }).(pulumi.StringOutput)
}
type ExperimentSelectorArrayOutput struct{ *pulumi.OutputState }
func (ExperimentSelectorArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ExperimentSelector)(nil)).Elem()
}
func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput {
return o
}
func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput {
return o
}
func (o ExperimentSelectorArrayOutput) Index(i pulumi.IntInput) ExperimentSelectorOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ExperimentSelector {
return vs[0].([]ExperimentSelector)[vs[1].(int)]
}).(ExperimentSelectorOutput)
}
type ExperimentStep struct {
// One or more `branch` blocks as defined above.
Branches []ExperimentStepBranch `pulumi:"branches"`
// The name of the Step.
Name string `pulumi:"name"`
}
// ExperimentStepInput is an input type that accepts ExperimentStepArgs and ExperimentStepOutput values.
// You can construct a concrete instance of `ExperimentStepInput` via:
//
// ExperimentStepArgs{...}
type ExperimentStepInput interface {
pulumi.Input
ToExperimentStepOutput() ExperimentStepOutput
ToExperimentStepOutputWithContext(context.Context) ExperimentStepOutput
}
type ExperimentStepArgs struct {
// One or more `branch` blocks as defined above.
Branches ExperimentStepBranchArrayInput `pulumi:"branches"`
// The name of the Step.
Name pulumi.StringInput `pulumi:"name"`
}
func (ExperimentStepArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentStep)(nil)).Elem()
}
func (i ExperimentStepArgs) ToExperimentStepOutput() ExperimentStepOutput {
return i.ToExperimentStepOutputWithContext(context.Background())
}
func (i ExperimentStepArgs) ToExperimentStepOutputWithContext(ctx context.Context) ExperimentStepOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepOutput)
}
// ExperimentStepArrayInput is an input type that accepts ExperimentStepArray and ExperimentStepArrayOutput values.
// You can construct a concrete instance of `ExperimentStepArrayInput` via:
//
// ExperimentStepArray{ ExperimentStepArgs{...} }
type ExperimentStepArrayInput interface {
pulumi.Input
ToExperimentStepArrayOutput() ExperimentStepArrayOutput
ToExperimentStepArrayOutputWithContext(context.Context) ExperimentStepArrayOutput
}
type ExperimentStepArray []ExperimentStepInput
func (ExperimentStepArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ExperimentStep)(nil)).Elem()
}
func (i ExperimentStepArray) ToExperimentStepArrayOutput() ExperimentStepArrayOutput {
return i.ToExperimentStepArrayOutputWithContext(context.Background())
}
func (i ExperimentStepArray) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepArrayOutput)
}
type ExperimentStepOutput struct{ *pulumi.OutputState }
func (ExperimentStepOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentStep)(nil)).Elem()
}
func (o ExperimentStepOutput) ToExperimentStepOutput() ExperimentStepOutput {
return o
}
func (o ExperimentStepOutput) ToExperimentStepOutputWithContext(ctx context.Context) ExperimentStepOutput {
return o
}
// One or more `branch` blocks as defined above.
func (o ExperimentStepOutput) Branches() ExperimentStepBranchArrayOutput {
return o.ApplyT(func(v ExperimentStep) []ExperimentStepBranch { return v.Branches }).(ExperimentStepBranchArrayOutput)
}
// The name of the Step.
func (o ExperimentStepOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v ExperimentStep) string { return v.Name }).(pulumi.StringOutput)
}
type ExperimentStepArrayOutput struct{ *pulumi.OutputState }
func (ExperimentStepArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ExperimentStep)(nil)).Elem()
}
func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutput() ExperimentStepArrayOutput {
return o
}
func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput {
return o
}
func (o ExperimentStepArrayOutput) Index(i pulumi.IntInput) ExperimentStepOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ExperimentStep {
return vs[0].([]ExperimentStep)[vs[1].(int)]
}).(ExperimentStepOutput)
}
type ExperimentStepBranch struct {
// One or more `actions` blocks as defined above.
Actions []ExperimentStepBranchAction `pulumi:"actions"`
// The name of the branch.
Name string `pulumi:"name"`
}
// ExperimentStepBranchInput is an input type that accepts ExperimentStepBranchArgs and ExperimentStepBranchOutput values.
// You can construct a concrete instance of `ExperimentStepBranchInput` via:
//
// ExperimentStepBranchArgs{...}
type ExperimentStepBranchInput interface {
pulumi.Input
ToExperimentStepBranchOutput() ExperimentStepBranchOutput
ToExperimentStepBranchOutputWithContext(context.Context) ExperimentStepBranchOutput
}
type ExperimentStepBranchArgs struct {
// One or more `actions` blocks as defined above.
Actions ExperimentStepBranchActionArrayInput `pulumi:"actions"`
// The name of the branch.
Name pulumi.StringInput `pulumi:"name"`
}
func (ExperimentStepBranchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentStepBranch)(nil)).Elem()
}
func (i ExperimentStepBranchArgs) ToExperimentStepBranchOutput() ExperimentStepBranchOutput {
return i.ToExperimentStepBranchOutputWithContext(context.Background())
}
func (i ExperimentStepBranchArgs) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepBranchOutput)
}
// ExperimentStepBranchArrayInput is an input type that accepts ExperimentStepBranchArray and ExperimentStepBranchArrayOutput values.
// You can construct a concrete instance of `ExperimentStepBranchArrayInput` via:
//
// ExperimentStepBranchArray{ ExperimentStepBranchArgs{...} }
type ExperimentStepBranchArrayInput interface {
pulumi.Input
ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput
ToExperimentStepBranchArrayOutputWithContext(context.Context) ExperimentStepBranchArrayOutput
}
type ExperimentStepBranchArray []ExperimentStepBranchInput
func (ExperimentStepBranchArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ExperimentStepBranch)(nil)).Elem()
}
func (i ExperimentStepBranchArray) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput {
return i.ToExperimentStepBranchArrayOutputWithContext(context.Background())
}
func (i ExperimentStepBranchArray) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepBranchArrayOutput)
}
type ExperimentStepBranchOutput struct{ *pulumi.OutputState }
func (ExperimentStepBranchOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentStepBranch)(nil)).Elem()
}
func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutput() ExperimentStepBranchOutput {
return o
}
func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput {
return o
}
// One or more `actions` blocks as defined above.
func (o ExperimentStepBranchOutput) Actions() ExperimentStepBranchActionArrayOutput {
return o.ApplyT(func(v ExperimentStepBranch) []ExperimentStepBranchAction { return v.Actions }).(ExperimentStepBranchActionArrayOutput)
}
// The name of the branch.
func (o ExperimentStepBranchOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v ExperimentStepBranch) string { return v.Name }).(pulumi.StringOutput)
}
type ExperimentStepBranchArrayOutput struct{ *pulumi.OutputState }
func (ExperimentStepBranchArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ExperimentStepBranch)(nil)).Elem()
}
func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput {
return o
}
func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput {
return o
}
func (o ExperimentStepBranchArrayOutput) Index(i pulumi.IntInput) ExperimentStepBranchOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ExperimentStepBranch {
return vs[0].([]ExperimentStepBranch)[vs[1].(int)]
}).(ExperimentStepBranchOutput)
}
type ExperimentStepBranchAction struct {
// The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`.
ActionType string `pulumi:"actionType"`
// An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action.
Duration *string `pulumi:"duration"`
// A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library)
Parameters map[string]string `pulumi:"parameters"`
// The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`.
SelectorName *string `pulumi:"selectorName"`
// The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`.
Urn *string `pulumi:"urn"`
}
// ExperimentStepBranchActionInput is an input type that accepts ExperimentStepBranchActionArgs and ExperimentStepBranchActionOutput values.
// You can construct a concrete instance of `ExperimentStepBranchActionInput` via:
//
// ExperimentStepBranchActionArgs{...}
type ExperimentStepBranchActionInput interface {
pulumi.Input
ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput
ToExperimentStepBranchActionOutputWithContext(context.Context) ExperimentStepBranchActionOutput
}
type ExperimentStepBranchActionArgs struct {
// The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`.
ActionType pulumi.StringInput `pulumi:"actionType"`
// An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action.
Duration pulumi.StringPtrInput `pulumi:"duration"`
// A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library)
Parameters pulumi.StringMapInput `pulumi:"parameters"`
// The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`.
SelectorName pulumi.StringPtrInput `pulumi:"selectorName"`
// The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`.
Urn pulumi.StringPtrInput `pulumi:"urn"`
}
func (ExperimentStepBranchActionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentStepBranchAction)(nil)).Elem()
}
func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput {
return i.ToExperimentStepBranchActionOutputWithContext(context.Background())
}
func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepBranchActionOutput)
}
// ExperimentStepBranchActionArrayInput is an input type that accepts ExperimentStepBranchActionArray and ExperimentStepBranchActionArrayOutput values.
// You can construct a concrete instance of `ExperimentStepBranchActionArrayInput` via:
//
// ExperimentStepBranchActionArray{ ExperimentStepBranchActionArgs{...} }
type ExperimentStepBranchActionArrayInput interface {
pulumi.Input
ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput
ToExperimentStepBranchActionArrayOutputWithContext(context.Context) ExperimentStepBranchActionArrayOutput
}
type ExperimentStepBranchActionArray []ExperimentStepBranchActionInput
func (ExperimentStepBranchActionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ExperimentStepBranchAction)(nil)).Elem()
}
func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput {
return i.ToExperimentStepBranchActionArrayOutputWithContext(context.Background())
}
func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepBranchActionArrayOutput)
}
type ExperimentStepBranchActionOutput struct{ *pulumi.OutputState }
func (ExperimentStepBranchActionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ExperimentStepBranchAction)(nil)).Elem()
}
func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput {
return o
}
func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput {
return o
}
// The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`.
func (o ExperimentStepBranchActionOutput) ActionType() pulumi.StringOutput {
return o.ApplyT(func(v ExperimentStepBranchAction) string { return v.ActionType }).(pulumi.StringOutput)
}
// An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action.
func (o ExperimentStepBranchActionOutput) Duration() pulumi.StringPtrOutput {
return o.ApplyT(func(v ExperimentStepBranchAction) *string { return v.Duration }).(pulumi.StringPtrOutput)
}
// A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library)
func (o ExperimentStepBranchActionOutput) Parameters() pulumi.StringMapOutput {
return o.ApplyT(func(v ExperimentStepBranchAction) map[string]string { return v.Parameters }).(pulumi.StringMapOutput)
}
// The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`.
func (o ExperimentStepBranchActionOutput) SelectorName() pulumi.StringPtrOutput {
return o.ApplyT(func(v ExperimentStepBranchAction) *string { return v.SelectorName }).(pulumi.StringPtrOutput)
}
// The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`.
func (o ExperimentStepBranchActionOutput) Urn() pulumi.StringPtrOutput {
return o.ApplyT(func(v ExperimentStepBranchAction) *string { return v.Urn }).(pulumi.StringPtrOutput)
}
type ExperimentStepBranchActionArrayOutput struct{ *pulumi.OutputState }
func (ExperimentStepBranchActionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ExperimentStepBranchAction)(nil)).Elem()
}
func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput {
return o
}
func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput {
return o
}
func (o ExperimentStepBranchActionArrayOutput) Index(i pulumi.IntInput) ExperimentStepBranchActionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ExperimentStepBranchAction {
return vs[0].([]ExperimentStepBranchAction)[vs[1].(int)]
}).(ExperimentStepBranchActionOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentIdentityInput)(nil)).Elem(), ExperimentIdentityArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentIdentityPtrInput)(nil)).Elem(), ExperimentIdentityArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentSelectorInput)(nil)).Elem(), ExperimentSelectorArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentSelectorArrayInput)(nil)).Elem(), ExperimentSelectorArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepInput)(nil)).Elem(), ExperimentStepArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepArrayInput)(nil)).Elem(), ExperimentStepArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepBranchInput)(nil)).Elem(), ExperimentStepBranchArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepBranchArrayInput)(nil)).Elem(), ExperimentStepBranchArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepBranchActionInput)(nil)).Elem(), ExperimentStepBranchActionArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepBranchActionArrayInput)(nil)).Elem(), ExperimentStepBranchActionArray{})
pulumi.RegisterOutputType(ExperimentIdentityOutput{})
pulumi.RegisterOutputType(ExperimentIdentityPtrOutput{})
pulumi.RegisterOutputType(ExperimentSelectorOutput{})
pulumi.RegisterOutputType(ExperimentSelectorArrayOutput{})
pulumi.RegisterOutputType(ExperimentStepOutput{})
pulumi.RegisterOutputType(ExperimentStepArrayOutput{})
pulumi.RegisterOutputType(ExperimentStepBranchOutput{})
pulumi.RegisterOutputType(ExperimentStepBranchArrayOutput{})
pulumi.RegisterOutputType(ExperimentStepBranchActionOutput{})
pulumi.RegisterOutputType(ExperimentStepBranchActionArrayOutput{})
}