/
getWorkflow.go
208 lines (179 loc) · 8.18 KB
/
getWorkflow.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
// 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"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Use this data source to access information about an existing Logic App Workflow.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "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 := logicapps.LookupWorkflow(ctx, &logicapps.LookupWorkflowArgs{
// Name: "workflow1",
// ResourceGroupName: "my-resource-group",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("accessEndpoint", example.AccessEndpoint)
// return nil
// })
// }
//
// ```
func LookupWorkflow(ctx *pulumi.Context, args *LookupWorkflowArgs, opts ...pulumi.InvokeOption) (*LookupWorkflowResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupWorkflowResult
err := ctx.Invoke("azure:logicapps/getWorkflow:getWorkflow", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getWorkflow.
type LookupWorkflowArgs struct {
// The name of the Logic App Workflow.
Name string `pulumi:"name"`
// The name of the Resource Group in which the Logic App Workflow exists.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// A collection of values returned by getWorkflow.
type LookupWorkflowResult struct {
// 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"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// An `identity` block as defined below.
Identities []GetWorkflowIdentity `pulumi:"identities"`
// The Azure location where the Logic App Workflow exists.
Location string `pulumi:"location"`
// The ID of the integration account linked by this Logic App Workflow.
LogicAppIntegrationAccountId string `pulumi:"logicAppIntegrationAccountId"`
Name string `pulumi:"name"`
// A map of Key-Value pairs.
Parameters map[string]string `pulumi:"parameters"`
ResourceGroupName string `pulumi:"resourceGroupName"`
// A mapping of tags assigned 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"`
// The Schema used for this Logic App Workflow.
WorkflowSchema string `pulumi:"workflowSchema"`
// The version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`.
WorkflowVersion string `pulumi:"workflowVersion"`
}
func LookupWorkflowOutput(ctx *pulumi.Context, args LookupWorkflowOutputArgs, opts ...pulumi.InvokeOption) LookupWorkflowResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupWorkflowResult, error) {
args := v.(LookupWorkflowArgs)
r, err := LookupWorkflow(ctx, &args, opts...)
var s LookupWorkflowResult
if r != nil {
s = *r
}
return s, err
}).(LookupWorkflowResultOutput)
}
// A collection of arguments for invoking getWorkflow.
type LookupWorkflowOutputArgs struct {
// The name of the Logic App Workflow.
Name pulumi.StringInput `pulumi:"name"`
// The name of the Resource Group in which the Logic App Workflow exists.
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (LookupWorkflowOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupWorkflowArgs)(nil)).Elem()
}
// A collection of values returned by getWorkflow.
type LookupWorkflowResultOutput struct{ *pulumi.OutputState }
func (LookupWorkflowResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupWorkflowResult)(nil)).Elem()
}
func (o LookupWorkflowResultOutput) ToLookupWorkflowResultOutput() LookupWorkflowResultOutput {
return o
}
func (o LookupWorkflowResultOutput) ToLookupWorkflowResultOutputWithContext(ctx context.Context) LookupWorkflowResultOutput {
return o
}
// The Access Endpoint for the Logic App Workflow
func (o LookupWorkflowResultOutput) AccessEndpoint() pulumi.StringOutput {
return o.ApplyT(func(v LookupWorkflowResult) string { return v.AccessEndpoint }).(pulumi.StringOutput)
}
// The list of access endpoint IP addresses of connector.
func (o LookupWorkflowResultOutput) ConnectorEndpointIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupWorkflowResult) []string { return v.ConnectorEndpointIpAddresses }).(pulumi.StringArrayOutput)
}
// The list of outgoing IP addresses of connector.
func (o LookupWorkflowResultOutput) ConnectorOutboundIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupWorkflowResult) []string { return v.ConnectorOutboundIpAddresses }).(pulumi.StringArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupWorkflowResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupWorkflowResult) string { return v.Id }).(pulumi.StringOutput)
}
// An `identity` block as defined below.
func (o LookupWorkflowResultOutput) Identities() GetWorkflowIdentityArrayOutput {
return o.ApplyT(func(v LookupWorkflowResult) []GetWorkflowIdentity { return v.Identities }).(GetWorkflowIdentityArrayOutput)
}
// The Azure location where the Logic App Workflow exists.
func (o LookupWorkflowResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupWorkflowResult) string { return v.Location }).(pulumi.StringOutput)
}
// The ID of the integration account linked by this Logic App Workflow.
func (o LookupWorkflowResultOutput) LogicAppIntegrationAccountId() pulumi.StringOutput {
return o.ApplyT(func(v LookupWorkflowResult) string { return v.LogicAppIntegrationAccountId }).(pulumi.StringOutput)
}
func (o LookupWorkflowResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupWorkflowResult) string { return v.Name }).(pulumi.StringOutput)
}
// A map of Key-Value pairs.
func (o LookupWorkflowResultOutput) Parameters() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupWorkflowResult) map[string]string { return v.Parameters }).(pulumi.StringMapOutput)
}
func (o LookupWorkflowResultOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v LookupWorkflowResult) string { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// A mapping of tags assigned to the resource.
func (o LookupWorkflowResultOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupWorkflowResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
}
// The list of access endpoint IP addresses of workflow.
func (o LookupWorkflowResultOutput) WorkflowEndpointIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupWorkflowResult) []string { return v.WorkflowEndpointIpAddresses }).(pulumi.StringArrayOutput)
}
// The list of outgoing IP addresses of workflow.
func (o LookupWorkflowResultOutput) WorkflowOutboundIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupWorkflowResult) []string { return v.WorkflowOutboundIpAddresses }).(pulumi.StringArrayOutput)
}
// The Schema used for this Logic App Workflow.
func (o LookupWorkflowResultOutput) WorkflowSchema() pulumi.StringOutput {
return o.ApplyT(func(v LookupWorkflowResult) string { return v.WorkflowSchema }).(pulumi.StringOutput)
}
// The version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`.
func (o LookupWorkflowResultOutput) WorkflowVersion() pulumi.StringOutput {
return o.ApplyT(func(v LookupWorkflowResult) string { return v.WorkflowVersion }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupWorkflowResultOutput{})
}