/
workflow.go
510 lines (446 loc) · 25 KB
/
workflow.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
// 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 logicapps
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Logic App Workflow.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
// Name: pulumi.String("workflow-resources"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// _, err = logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{
// Name: pulumi.String("workflow1"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Logic App Workflows can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:logicapps/workflow:Workflow workflow1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1
// ```
type Workflow struct {
pulumi.CustomResourceState
// A `accessControl` block as defined below.
AccessControl WorkflowAccessControlPtrOutput `pulumi:"accessControl"`
// The Access Endpoint for the Logic App Workflow.
AccessEndpoint pulumi.StringOutput `pulumi:"accessEndpoint"`
// The list of access endpoint IP addresses of connector.
ConnectorEndpointIpAddresses pulumi.StringArrayOutput `pulumi:"connectorEndpointIpAddresses"`
// The list of outgoing IP addresses of connector.
ConnectorOutboundIpAddresses pulumi.StringArrayOutput `pulumi:"connectorOutboundIpAddresses"`
// Is the Logic App Workflow enabled? Defaults to `true`.
Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
// An `identity` block as defined below.
Identity WorkflowIdentityPtrOutput `pulumi:"identity"`
// The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
IntegrationServiceEnvironmentId pulumi.StringPtrOutput `pulumi:"integrationServiceEnvironmentId"`
// Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
Location pulumi.StringOutput `pulumi:"location"`
// The ID of the integration account linked by this Logic App Workflow.
LogicAppIntegrationAccountId pulumi.StringPtrOutput `pulumi:"logicAppIntegrationAccountId"`
// Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// A map of Key-Value pairs.
//
// > **NOTE:** Any parameters specified must exist in the Schema defined in `workflowParameters`.
Parameters pulumi.StringMapOutput `pulumi:"parameters"`
// The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// The list of access endpoint IP addresses of workflow.
WorkflowEndpointIpAddresses pulumi.StringArrayOutput `pulumi:"workflowEndpointIpAddresses"`
// The list of outgoing IP addresses of workflow.
WorkflowOutboundIpAddresses pulumi.StringArrayOutput `pulumi:"workflowOutboundIpAddresses"`
// Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
WorkflowParameters pulumi.StringMapOutput `pulumi:"workflowParameters"`
// Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
WorkflowSchema pulumi.StringPtrOutput `pulumi:"workflowSchema"`
// Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
WorkflowVersion pulumi.StringPtrOutput `pulumi:"workflowVersion"`
}
// NewWorkflow registers a new resource with the given unique name, arguments, and options.
func NewWorkflow(ctx *pulumi.Context,
name string, args *WorkflowArgs, opts ...pulumi.ResourceOption) (*Workflow, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Workflow
err := ctx.RegisterResource("azure:logicapps/workflow:Workflow", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetWorkflow gets an existing Workflow resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetWorkflow(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *WorkflowState, opts ...pulumi.ResourceOption) (*Workflow, error) {
var resource Workflow
err := ctx.ReadResource("azure:logicapps/workflow:Workflow", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Workflow resources.
type workflowState struct {
// A `accessControl` block as defined below.
AccessControl *WorkflowAccessControl `pulumi:"accessControl"`
// The Access Endpoint for the Logic App Workflow.
AccessEndpoint *string `pulumi:"accessEndpoint"`
// The list of access endpoint IP addresses of connector.
ConnectorEndpointIpAddresses []string `pulumi:"connectorEndpointIpAddresses"`
// The list of outgoing IP addresses of connector.
ConnectorOutboundIpAddresses []string `pulumi:"connectorOutboundIpAddresses"`
// Is the Logic App Workflow enabled? Defaults to `true`.
Enabled *bool `pulumi:"enabled"`
// An `identity` block as defined below.
Identity *WorkflowIdentity `pulumi:"identity"`
// The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
IntegrationServiceEnvironmentId *string `pulumi:"integrationServiceEnvironmentId"`
// Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// The ID of the integration account linked by this Logic App Workflow.
LogicAppIntegrationAccountId *string `pulumi:"logicAppIntegrationAccountId"`
// Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// A map of Key-Value pairs.
//
// > **NOTE:** Any parameters specified must exist in the Schema defined in `workflowParameters`.
Parameters map[string]string `pulumi:"parameters"`
// The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
// The list of access endpoint IP addresses of workflow.
WorkflowEndpointIpAddresses []string `pulumi:"workflowEndpointIpAddresses"`
// The list of outgoing IP addresses of workflow.
WorkflowOutboundIpAddresses []string `pulumi:"workflowOutboundIpAddresses"`
// Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
WorkflowParameters map[string]string `pulumi:"workflowParameters"`
// Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
WorkflowSchema *string `pulumi:"workflowSchema"`
// Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
WorkflowVersion *string `pulumi:"workflowVersion"`
}
type WorkflowState struct {
// A `accessControl` block as defined below.
AccessControl WorkflowAccessControlPtrInput
// The Access Endpoint for the Logic App Workflow.
AccessEndpoint pulumi.StringPtrInput
// The list of access endpoint IP addresses of connector.
ConnectorEndpointIpAddresses pulumi.StringArrayInput
// The list of outgoing IP addresses of connector.
ConnectorOutboundIpAddresses pulumi.StringArrayInput
// Is the Logic App Workflow enabled? Defaults to `true`.
Enabled pulumi.BoolPtrInput
// An `identity` block as defined below.
Identity WorkflowIdentityPtrInput
// The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
IntegrationServiceEnvironmentId pulumi.StringPtrInput
// Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// The ID of the integration account linked by this Logic App Workflow.
LogicAppIntegrationAccountId pulumi.StringPtrInput
// Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// A map of Key-Value pairs.
//
// > **NOTE:** Any parameters specified must exist in the Schema defined in `workflowParameters`.
Parameters pulumi.StringMapInput
// The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringPtrInput
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapInput
// The list of access endpoint IP addresses of workflow.
WorkflowEndpointIpAddresses pulumi.StringArrayInput
// The list of outgoing IP addresses of workflow.
WorkflowOutboundIpAddresses pulumi.StringArrayInput
// Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
WorkflowParameters pulumi.StringMapInput
// Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
WorkflowSchema pulumi.StringPtrInput
// Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
WorkflowVersion pulumi.StringPtrInput
}
func (WorkflowState) ElementType() reflect.Type {
return reflect.TypeOf((*workflowState)(nil)).Elem()
}
type workflowArgs struct {
// A `accessControl` block as defined below.
AccessControl *WorkflowAccessControl `pulumi:"accessControl"`
// Is the Logic App Workflow enabled? Defaults to `true`.
Enabled *bool `pulumi:"enabled"`
// An `identity` block as defined below.
Identity *WorkflowIdentity `pulumi:"identity"`
// The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
IntegrationServiceEnvironmentId *string `pulumi:"integrationServiceEnvironmentId"`
// Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// The ID of the integration account linked by this Logic App Workflow.
LogicAppIntegrationAccountId *string `pulumi:"logicAppIntegrationAccountId"`
// Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// A map of Key-Value pairs.
//
// > **NOTE:** Any parameters specified must exist in the Schema defined in `workflowParameters`.
Parameters map[string]string `pulumi:"parameters"`
// The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
// Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
WorkflowParameters map[string]string `pulumi:"workflowParameters"`
// Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
WorkflowSchema *string `pulumi:"workflowSchema"`
// Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
WorkflowVersion *string `pulumi:"workflowVersion"`
}
// The set of arguments for constructing a Workflow resource.
type WorkflowArgs struct {
// A `accessControl` block as defined below.
AccessControl WorkflowAccessControlPtrInput
// Is the Logic App Workflow enabled? Defaults to `true`.
Enabled pulumi.BoolPtrInput
// An `identity` block as defined below.
Identity WorkflowIdentityPtrInput
// The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
IntegrationServiceEnvironmentId pulumi.StringPtrInput
// Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// The ID of the integration account linked by this Logic App Workflow.
LogicAppIntegrationAccountId pulumi.StringPtrInput
// Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// A map of Key-Value pairs.
//
// > **NOTE:** Any parameters specified must exist in the Schema defined in `workflowParameters`.
Parameters pulumi.StringMapInput
// The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringInput
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapInput
// Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
WorkflowParameters pulumi.StringMapInput
// Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
WorkflowSchema pulumi.StringPtrInput
// Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
WorkflowVersion pulumi.StringPtrInput
}
func (WorkflowArgs) ElementType() reflect.Type {
return reflect.TypeOf((*workflowArgs)(nil)).Elem()
}
type WorkflowInput interface {
pulumi.Input
ToWorkflowOutput() WorkflowOutput
ToWorkflowOutputWithContext(ctx context.Context) WorkflowOutput
}
func (*Workflow) ElementType() reflect.Type {
return reflect.TypeOf((**Workflow)(nil)).Elem()
}
func (i *Workflow) ToWorkflowOutput() WorkflowOutput {
return i.ToWorkflowOutputWithContext(context.Background())
}
func (i *Workflow) ToWorkflowOutputWithContext(ctx context.Context) WorkflowOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkflowOutput)
}
// WorkflowArrayInput is an input type that accepts WorkflowArray and WorkflowArrayOutput values.
// You can construct a concrete instance of `WorkflowArrayInput` via:
//
// WorkflowArray{ WorkflowArgs{...} }
type WorkflowArrayInput interface {
pulumi.Input
ToWorkflowArrayOutput() WorkflowArrayOutput
ToWorkflowArrayOutputWithContext(context.Context) WorkflowArrayOutput
}
type WorkflowArray []WorkflowInput
func (WorkflowArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Workflow)(nil)).Elem()
}
func (i WorkflowArray) ToWorkflowArrayOutput() WorkflowArrayOutput {
return i.ToWorkflowArrayOutputWithContext(context.Background())
}
func (i WorkflowArray) ToWorkflowArrayOutputWithContext(ctx context.Context) WorkflowArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkflowArrayOutput)
}
// WorkflowMapInput is an input type that accepts WorkflowMap and WorkflowMapOutput values.
// You can construct a concrete instance of `WorkflowMapInput` via:
//
// WorkflowMap{ "key": WorkflowArgs{...} }
type WorkflowMapInput interface {
pulumi.Input
ToWorkflowMapOutput() WorkflowMapOutput
ToWorkflowMapOutputWithContext(context.Context) WorkflowMapOutput
}
type WorkflowMap map[string]WorkflowInput
func (WorkflowMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Workflow)(nil)).Elem()
}
func (i WorkflowMap) ToWorkflowMapOutput() WorkflowMapOutput {
return i.ToWorkflowMapOutputWithContext(context.Background())
}
func (i WorkflowMap) ToWorkflowMapOutputWithContext(ctx context.Context) WorkflowMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkflowMapOutput)
}
type WorkflowOutput struct{ *pulumi.OutputState }
func (WorkflowOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Workflow)(nil)).Elem()
}
func (o WorkflowOutput) ToWorkflowOutput() WorkflowOutput {
return o
}
func (o WorkflowOutput) ToWorkflowOutputWithContext(ctx context.Context) WorkflowOutput {
return o
}
// A `accessControl` block as defined below.
func (o WorkflowOutput) AccessControl() WorkflowAccessControlPtrOutput {
return o.ApplyT(func(v *Workflow) WorkflowAccessControlPtrOutput { return v.AccessControl }).(WorkflowAccessControlPtrOutput)
}
// The Access Endpoint for the Logic App Workflow.
func (o WorkflowOutput) AccessEndpoint() pulumi.StringOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.AccessEndpoint }).(pulumi.StringOutput)
}
// The list of access endpoint IP addresses of connector.
func (o WorkflowOutput) ConnectorEndpointIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringArrayOutput { return v.ConnectorEndpointIpAddresses }).(pulumi.StringArrayOutput)
}
// The list of outgoing IP addresses of connector.
func (o WorkflowOutput) ConnectorOutboundIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringArrayOutput { return v.ConnectorOutboundIpAddresses }).(pulumi.StringArrayOutput)
}
// Is the Logic App Workflow enabled? Defaults to `true`.
func (o WorkflowOutput) Enabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Workflow) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput)
}
// An `identity` block as defined below.
func (o WorkflowOutput) Identity() WorkflowIdentityPtrOutput {
return o.ApplyT(func(v *Workflow) WorkflowIdentityPtrOutput { return v.Identity }).(WorkflowIdentityPtrOutput)
}
// The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
func (o WorkflowOutput) IntegrationServiceEnvironmentId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringPtrOutput { return v.IntegrationServiceEnvironmentId }).(pulumi.StringPtrOutput)
}
// Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
func (o WorkflowOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// The ID of the integration account linked by this Logic App Workflow.
func (o WorkflowOutput) LogicAppIntegrationAccountId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringPtrOutput { return v.LogicAppIntegrationAccountId }).(pulumi.StringPtrOutput)
}
// Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
func (o WorkflowOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// A map of Key-Value pairs.
//
// > **NOTE:** Any parameters specified must exist in the Schema defined in `workflowParameters`.
func (o WorkflowOutput) Parameters() pulumi.StringMapOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput)
}
// The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
func (o WorkflowOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// A mapping of tags to assign to the resource.
func (o WorkflowOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// The list of access endpoint IP addresses of workflow.
func (o WorkflowOutput) WorkflowEndpointIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringArrayOutput { return v.WorkflowEndpointIpAddresses }).(pulumi.StringArrayOutput)
}
// The list of outgoing IP addresses of workflow.
func (o WorkflowOutput) WorkflowOutboundIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringArrayOutput { return v.WorkflowOutboundIpAddresses }).(pulumi.StringArrayOutput)
}
// Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
func (o WorkflowOutput) WorkflowParameters() pulumi.StringMapOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringMapOutput { return v.WorkflowParameters }).(pulumi.StringMapOutput)
}
// Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
func (o WorkflowOutput) WorkflowSchema() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringPtrOutput { return v.WorkflowSchema }).(pulumi.StringPtrOutput)
}
// Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
func (o WorkflowOutput) WorkflowVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Workflow) pulumi.StringPtrOutput { return v.WorkflowVersion }).(pulumi.StringPtrOutput)
}
type WorkflowArrayOutput struct{ *pulumi.OutputState }
func (WorkflowArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Workflow)(nil)).Elem()
}
func (o WorkflowArrayOutput) ToWorkflowArrayOutput() WorkflowArrayOutput {
return o
}
func (o WorkflowArrayOutput) ToWorkflowArrayOutputWithContext(ctx context.Context) WorkflowArrayOutput {
return o
}
func (o WorkflowArrayOutput) Index(i pulumi.IntInput) WorkflowOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Workflow {
return vs[0].([]*Workflow)[vs[1].(int)]
}).(WorkflowOutput)
}
type WorkflowMapOutput struct{ *pulumi.OutputState }
func (WorkflowMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Workflow)(nil)).Elem()
}
func (o WorkflowMapOutput) ToWorkflowMapOutput() WorkflowMapOutput {
return o
}
func (o WorkflowMapOutput) ToWorkflowMapOutputWithContext(ctx context.Context) WorkflowMapOutput {
return o
}
func (o WorkflowMapOutput) MapIndex(k pulumi.StringInput) WorkflowOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Workflow {
return vs[0].(map[string]*Workflow)[vs[1].(string)]
}).(WorkflowOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*WorkflowInput)(nil)).Elem(), &Workflow{})
pulumi.RegisterInputType(reflect.TypeOf((*WorkflowArrayInput)(nil)).Elem(), WorkflowArray{})
pulumi.RegisterInputType(reflect.TypeOf((*WorkflowMapInput)(nil)).Elem(), WorkflowMap{})
pulumi.RegisterOutputType(WorkflowOutput{})
pulumi.RegisterOutputType(WorkflowArrayOutput{})
pulumi.RegisterOutputType(WorkflowMapOutput{})
}