/
standard.go
755 lines (683 loc) · 40.1 KB
/
standard.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
// 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 (Standard / Single Tenant)
//
// ## Example Usage
//
// ### With App Service Plan)
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
// "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("azure-functions-test-rg"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
// Name: pulumi.String("functionsapptestsa"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// AccountTier: pulumi.String("Standard"),
// AccountReplicationType: pulumi.String("LRS"),
// })
// if err != nil {
// return err
// }
// examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{
// Name: pulumi.String("azure-functions-test-service-plan"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// Kind: pulumi.Any("elastic"),
// Sku: &appservice.PlanSkuArgs{
// Tier: pulumi.String("WorkflowStandard"),
// Size: pulumi.String("WS1"),
// },
// })
// if err != nil {
// return err
// }
// _, err = logicapps.NewStandard(ctx, "example", &logicapps.StandardArgs{
// Name: pulumi.String("test-azure-functions"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// AppServicePlanId: examplePlan.ID(),
// StorageAccountName: exampleAccount.Name,
// StorageAccountAccessKey: exampleAccount.PrimaryAccessKey,
// AppSettings: pulumi.StringMap{
// "FUNCTIONS_WORKER_RUNTIME": pulumi.String("node"),
// "WEBSITE_NODE_DEFAULT_VERSION": pulumi.String("~18"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ### For Container Mode)
//
// > **Note:** You must set `appservice.Plan` `kind` to `Linux` and `reserved` to `true` when used with `linuxFxVersion`
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
// "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("azure-functions-test-rg"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
// Name: pulumi.String("functionsapptestsa"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// AccountTier: pulumi.String("Standard"),
// AccountReplicationType: pulumi.String("LRS"),
// })
// if err != nil {
// return err
// }
// examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{
// Name: pulumi.String("azure-functions-test-service-plan"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// Kind: pulumi.Any("Linux"),
// Reserved: pulumi.Bool(true),
// Sku: &appservice.PlanSkuArgs{
// Tier: pulumi.String("WorkflowStandard"),
// Size: pulumi.String("WS1"),
// },
// })
// if err != nil {
// return err
// }
// _, err = logicapps.NewStandard(ctx, "example", &logicapps.StandardArgs{
// Name: pulumi.String("test-azure-functions"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// AppServicePlanId: examplePlan.ID(),
// StorageAccountName: exampleAccount.Name,
// StorageAccountAccessKey: exampleAccount.PrimaryAccessKey,
// SiteConfig: &logicapps.StandardSiteConfigArgs{
// LinuxFxVersion: pulumi.String("DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0-appservice"),
// },
// AppSettings: pulumi.StringMap{
// "DOCKER_REGISTRY_SERVER_URL": pulumi.String("https://<server-name>.azurecr.io"),
// "DOCKER_REGISTRY_SERVER_USERNAME": pulumi.String("username"),
// "DOCKER_REGISTRY_SERVER_PASSWORD": pulumi.String("password"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Import
//
// Logic Apps can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:logicapps/standard:Standard logicapp1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/logicapp1
// ```
type Standard struct {
pulumi.CustomResourceState
// The ID of the App Service Plan within which to create this Logic App
AppServicePlanId pulumi.StringOutput `pulumi:"appServicePlanId"`
// A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
//
// > **NOTE:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
AppSettings pulumi.StringMapOutput `pulumi:"appSettings"`
// If `useExtensionBundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
BundleVersion pulumi.StringPtrOutput `pulumi:"bundleVersion"`
// Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
ClientAffinityEnabled pulumi.BoolOutput `pulumi:"clientAffinityEnabled"`
// The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"`
// An `connectionString` block as defined below.
ConnectionStrings StandardConnectionStringArrayOutput `pulumi:"connectionStrings"`
// An identifier used by App Service to perform domain ownership verification via DNS TXT record.
CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"`
// The default hostname associated with the Logic App - such as `mysite.azurewebsites.net`
DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"`
// Is the Logic App enabled? Defaults to `true`.
Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
// Can the Logic App only be accessed via HTTPS? Defaults to `false`.
HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"`
// An `identity` block as defined below.
Identity StandardIdentityPtrOutput `pulumi:"identity"`
// The Logic App kind - will be `functionapp,workflowapp`
Kind pulumi.StringOutput `pulumi:"kind"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringOutput `pulumi:"location"`
// Specifies the name of the Logic App Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`
OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"`
// A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`.
PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"`
// The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// A `siteConfig` object as defined below.
SiteConfig StandardSiteConfigOutput `pulumi:"siteConfig"`
// A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service.
SiteCredentials StandardSiteCredentialArrayOutput `pulumi:"siteCredentials"`
// The access key which will be used to access the backend storage account for the Logic App
StorageAccountAccessKey pulumi.StringOutput `pulumi:"storageAccountAccessKey"`
// The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
StorageAccountName pulumi.StringOutput `pulumi:"storageAccountName"`
StorageAccountShareName pulumi.StringOutput `pulumi:"storageAccountShareName"`
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
UseExtensionBundle pulumi.BoolPtrOutput `pulumi:"useExtensionBundle"`
// The runtime version associated with the Logic App. Defaults to `~3`.
//
// > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
Version pulumi.StringPtrOutput `pulumi:"version"`
VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"`
}
// NewStandard registers a new resource with the given unique name, arguments, and options.
func NewStandard(ctx *pulumi.Context,
name string, args *StandardArgs, opts ...pulumi.ResourceOption) (*Standard, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AppServicePlanId == nil {
return nil, errors.New("invalid value for required argument 'AppServicePlanId'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.StorageAccountAccessKey == nil {
return nil, errors.New("invalid value for required argument 'StorageAccountAccessKey'")
}
if args.StorageAccountName == nil {
return nil, errors.New("invalid value for required argument 'StorageAccountName'")
}
if args.StorageAccountAccessKey != nil {
args.StorageAccountAccessKey = pulumi.ToSecret(args.StorageAccountAccessKey).(pulumi.StringInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"storageAccountAccessKey",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource Standard
err := ctx.RegisterResource("azure:logicapps/standard:Standard", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetStandard gets an existing Standard 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 GetStandard(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *StandardState, opts ...pulumi.ResourceOption) (*Standard, error) {
var resource Standard
err := ctx.ReadResource("azure:logicapps/standard:Standard", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Standard resources.
type standardState struct {
// The ID of the App Service Plan within which to create this Logic App
AppServicePlanId *string `pulumi:"appServicePlanId"`
// A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
//
// > **NOTE:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
AppSettings map[string]string `pulumi:"appSettings"`
// If `useExtensionBundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
BundleVersion *string `pulumi:"bundleVersion"`
// Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"`
// The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
ClientCertificateMode *string `pulumi:"clientCertificateMode"`
// An `connectionString` block as defined below.
ConnectionStrings []StandardConnectionString `pulumi:"connectionStrings"`
// An identifier used by App Service to perform domain ownership verification via DNS TXT record.
CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"`
// The default hostname associated with the Logic App - such as `mysite.azurewebsites.net`
DefaultHostname *string `pulumi:"defaultHostname"`
// Is the Logic App enabled? Defaults to `true`.
Enabled *bool `pulumi:"enabled"`
// Can the Logic App only be accessed via HTTPS? Defaults to `false`.
HttpsOnly *bool `pulumi:"httpsOnly"`
// An `identity` block as defined below.
Identity *StandardIdentity `pulumi:"identity"`
// The Logic App kind - will be `functionapp,workflowapp`
Kind *string `pulumi:"kind"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// Specifies the name of the Logic App Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`
OutboundIpAddresses *string `pulumi:"outboundIpAddresses"`
// A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`.
PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"`
// The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// A `siteConfig` object as defined below.
SiteConfig *StandardSiteConfig `pulumi:"siteConfig"`
// A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service.
SiteCredentials []StandardSiteCredential `pulumi:"siteCredentials"`
// The access key which will be used to access the backend storage account for the Logic App
StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"`
// The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
StorageAccountName *string `pulumi:"storageAccountName"`
StorageAccountShareName *string `pulumi:"storageAccountShareName"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
// Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
UseExtensionBundle *bool `pulumi:"useExtensionBundle"`
// The runtime version associated with the Logic App. Defaults to `~3`.
//
// > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
Version *string `pulumi:"version"`
VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"`
}
type StandardState struct {
// The ID of the App Service Plan within which to create this Logic App
AppServicePlanId pulumi.StringPtrInput
// A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
//
// > **NOTE:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
AppSettings pulumi.StringMapInput
// If `useExtensionBundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
BundleVersion pulumi.StringPtrInput
// Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
ClientAffinityEnabled pulumi.BoolPtrInput
// The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
ClientCertificateMode pulumi.StringPtrInput
// An `connectionString` block as defined below.
ConnectionStrings StandardConnectionStringArrayInput
// An identifier used by App Service to perform domain ownership verification via DNS TXT record.
CustomDomainVerificationId pulumi.StringPtrInput
// The default hostname associated with the Logic App - such as `mysite.azurewebsites.net`
DefaultHostname pulumi.StringPtrInput
// Is the Logic App enabled? Defaults to `true`.
Enabled pulumi.BoolPtrInput
// Can the Logic App only be accessed via HTTPS? Defaults to `false`.
HttpsOnly pulumi.BoolPtrInput
// An `identity` block as defined below.
Identity StandardIdentityPtrInput
// The Logic App kind - will be `functionapp,workflowapp`
Kind pulumi.StringPtrInput
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// Specifies the name of the Logic App Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`
OutboundIpAddresses pulumi.StringPtrInput
// A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`.
PossibleOutboundIpAddresses pulumi.StringPtrInput
// The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringPtrInput
// A `siteConfig` object as defined below.
SiteConfig StandardSiteConfigPtrInput
// A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service.
SiteCredentials StandardSiteCredentialArrayInput
// The access key which will be used to access the backend storage account for the Logic App
StorageAccountAccessKey pulumi.StringPtrInput
// The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
StorageAccountName pulumi.StringPtrInput
StorageAccountShareName pulumi.StringPtrInput
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapInput
// Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
UseExtensionBundle pulumi.BoolPtrInput
// The runtime version associated with the Logic App. Defaults to `~3`.
//
// > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
Version pulumi.StringPtrInput
VirtualNetworkSubnetId pulumi.StringPtrInput
}
func (StandardState) ElementType() reflect.Type {
return reflect.TypeOf((*standardState)(nil)).Elem()
}
type standardArgs struct {
// The ID of the App Service Plan within which to create this Logic App
AppServicePlanId string `pulumi:"appServicePlanId"`
// A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
//
// > **NOTE:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
AppSettings map[string]string `pulumi:"appSettings"`
// If `useExtensionBundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
BundleVersion *string `pulumi:"bundleVersion"`
// Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"`
// The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
ClientCertificateMode *string `pulumi:"clientCertificateMode"`
// An `connectionString` block as defined below.
ConnectionStrings []StandardConnectionString `pulumi:"connectionStrings"`
// Is the Logic App enabled? Defaults to `true`.
Enabled *bool `pulumi:"enabled"`
// Can the Logic App only be accessed via HTTPS? Defaults to `false`.
HttpsOnly *bool `pulumi:"httpsOnly"`
// An `identity` block as defined below.
Identity *StandardIdentity `pulumi:"identity"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// Specifies the name of the Logic App Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// A `siteConfig` object as defined below.
SiteConfig *StandardSiteConfig `pulumi:"siteConfig"`
// The access key which will be used to access the backend storage account for the Logic App
StorageAccountAccessKey string `pulumi:"storageAccountAccessKey"`
// The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
StorageAccountName string `pulumi:"storageAccountName"`
StorageAccountShareName *string `pulumi:"storageAccountShareName"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
// Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
UseExtensionBundle *bool `pulumi:"useExtensionBundle"`
// The runtime version associated with the Logic App. Defaults to `~3`.
//
// > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
Version *string `pulumi:"version"`
VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"`
}
// The set of arguments for constructing a Standard resource.
type StandardArgs struct {
// The ID of the App Service Plan within which to create this Logic App
AppServicePlanId pulumi.StringInput
// A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
//
// > **NOTE:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
AppSettings pulumi.StringMapInput
// If `useExtensionBundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
BundleVersion pulumi.StringPtrInput
// Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
ClientAffinityEnabled pulumi.BoolPtrInput
// The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
ClientCertificateMode pulumi.StringPtrInput
// An `connectionString` block as defined below.
ConnectionStrings StandardConnectionStringArrayInput
// Is the Logic App enabled? Defaults to `true`.
Enabled pulumi.BoolPtrInput
// Can the Logic App only be accessed via HTTPS? Defaults to `false`.
HttpsOnly pulumi.BoolPtrInput
// An `identity` block as defined below.
Identity StandardIdentityPtrInput
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// Specifies the name of the Logic App Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringInput
// A `siteConfig` object as defined below.
SiteConfig StandardSiteConfigPtrInput
// The access key which will be used to access the backend storage account for the Logic App
StorageAccountAccessKey pulumi.StringInput
// The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
StorageAccountName pulumi.StringInput
StorageAccountShareName pulumi.StringPtrInput
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapInput
// Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
UseExtensionBundle pulumi.BoolPtrInput
// The runtime version associated with the Logic App. Defaults to `~3`.
//
// > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
Version pulumi.StringPtrInput
VirtualNetworkSubnetId pulumi.StringPtrInput
}
func (StandardArgs) ElementType() reflect.Type {
return reflect.TypeOf((*standardArgs)(nil)).Elem()
}
type StandardInput interface {
pulumi.Input
ToStandardOutput() StandardOutput
ToStandardOutputWithContext(ctx context.Context) StandardOutput
}
func (*Standard) ElementType() reflect.Type {
return reflect.TypeOf((**Standard)(nil)).Elem()
}
func (i *Standard) ToStandardOutput() StandardOutput {
return i.ToStandardOutputWithContext(context.Background())
}
func (i *Standard) ToStandardOutputWithContext(ctx context.Context) StandardOutput {
return pulumi.ToOutputWithContext(ctx, i).(StandardOutput)
}
// StandardArrayInput is an input type that accepts StandardArray and StandardArrayOutput values.
// You can construct a concrete instance of `StandardArrayInput` via:
//
// StandardArray{ StandardArgs{...} }
type StandardArrayInput interface {
pulumi.Input
ToStandardArrayOutput() StandardArrayOutput
ToStandardArrayOutputWithContext(context.Context) StandardArrayOutput
}
type StandardArray []StandardInput
func (StandardArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Standard)(nil)).Elem()
}
func (i StandardArray) ToStandardArrayOutput() StandardArrayOutput {
return i.ToStandardArrayOutputWithContext(context.Background())
}
func (i StandardArray) ToStandardArrayOutputWithContext(ctx context.Context) StandardArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(StandardArrayOutput)
}
// StandardMapInput is an input type that accepts StandardMap and StandardMapOutput values.
// You can construct a concrete instance of `StandardMapInput` via:
//
// StandardMap{ "key": StandardArgs{...} }
type StandardMapInput interface {
pulumi.Input
ToStandardMapOutput() StandardMapOutput
ToStandardMapOutputWithContext(context.Context) StandardMapOutput
}
type StandardMap map[string]StandardInput
func (StandardMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Standard)(nil)).Elem()
}
func (i StandardMap) ToStandardMapOutput() StandardMapOutput {
return i.ToStandardMapOutputWithContext(context.Background())
}
func (i StandardMap) ToStandardMapOutputWithContext(ctx context.Context) StandardMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(StandardMapOutput)
}
type StandardOutput struct{ *pulumi.OutputState }
func (StandardOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Standard)(nil)).Elem()
}
func (o StandardOutput) ToStandardOutput() StandardOutput {
return o
}
func (o StandardOutput) ToStandardOutputWithContext(ctx context.Context) StandardOutput {
return o
}
// The ID of the App Service Plan within which to create this Logic App
func (o StandardOutput) AppServicePlanId() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.AppServicePlanId }).(pulumi.StringOutput)
}
// A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
//
// > **NOTE:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
func (o StandardOutput) AppSettings() pulumi.StringMapOutput {
return o.ApplyT(func(v *Standard) pulumi.StringMapOutput { return v.AppSettings }).(pulumi.StringMapOutput)
}
// If `useExtensionBundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
func (o StandardOutput) BundleVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Standard) pulumi.StringPtrOutput { return v.BundleVersion }).(pulumi.StringPtrOutput)
}
// Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
func (o StandardOutput) ClientAffinityEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v *Standard) pulumi.BoolOutput { return v.ClientAffinityEnabled }).(pulumi.BoolOutput)
}
// The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
func (o StandardOutput) ClientCertificateMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Standard) pulumi.StringPtrOutput { return v.ClientCertificateMode }).(pulumi.StringPtrOutput)
}
// An `connectionString` block as defined below.
func (o StandardOutput) ConnectionStrings() StandardConnectionStringArrayOutput {
return o.ApplyT(func(v *Standard) StandardConnectionStringArrayOutput { return v.ConnectionStrings }).(StandardConnectionStringArrayOutput)
}
// An identifier used by App Service to perform domain ownership verification via DNS TXT record.
func (o StandardOutput) CustomDomainVerificationId() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.CustomDomainVerificationId }).(pulumi.StringOutput)
}
// The default hostname associated with the Logic App - such as `mysite.azurewebsites.net`
func (o StandardOutput) DefaultHostname() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.DefaultHostname }).(pulumi.StringOutput)
}
// Is the Logic App enabled? Defaults to `true`.
func (o StandardOutput) Enabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Standard) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput)
}
// Can the Logic App only be accessed via HTTPS? Defaults to `false`.
func (o StandardOutput) HttpsOnly() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Standard) pulumi.BoolPtrOutput { return v.HttpsOnly }).(pulumi.BoolPtrOutput)
}
// An `identity` block as defined below.
func (o StandardOutput) Identity() StandardIdentityPtrOutput {
return o.ApplyT(func(v *Standard) StandardIdentityPtrOutput { return v.Identity }).(StandardIdentityPtrOutput)
}
// The Logic App kind - will be `functionapp,workflowapp`
func (o StandardOutput) Kind() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.Kind }).(pulumi.StringOutput)
}
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (o StandardOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// Specifies the name of the Logic App Changing this forces a new resource to be created.
func (o StandardOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`
func (o StandardOutput) OutboundIpAddresses() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.OutboundIpAddresses }).(pulumi.StringOutput)
}
// A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`.
func (o StandardOutput) PossibleOutboundIpAddresses() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput)
}
// The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
func (o StandardOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// A `siteConfig` object as defined below.
func (o StandardOutput) SiteConfig() StandardSiteConfigOutput {
return o.ApplyT(func(v *Standard) StandardSiteConfigOutput { return v.SiteConfig }).(StandardSiteConfigOutput)
}
// A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service.
func (o StandardOutput) SiteCredentials() StandardSiteCredentialArrayOutput {
return o.ApplyT(func(v *Standard) StandardSiteCredentialArrayOutput { return v.SiteCredentials }).(StandardSiteCredentialArrayOutput)
}
// The access key which will be used to access the backend storage account for the Logic App
func (o StandardOutput) StorageAccountAccessKey() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.StorageAccountAccessKey }).(pulumi.StringOutput)
}
// The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
func (o StandardOutput) StorageAccountName() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.StorageAccountName }).(pulumi.StringOutput)
}
func (o StandardOutput) StorageAccountShareName() pulumi.StringOutput {
return o.ApplyT(func(v *Standard) pulumi.StringOutput { return v.StorageAccountShareName }).(pulumi.StringOutput)
}
// A mapping of tags to assign to the resource.
func (o StandardOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *Standard) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
func (o StandardOutput) UseExtensionBundle() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Standard) pulumi.BoolPtrOutput { return v.UseExtensionBundle }).(pulumi.BoolPtrOutput)
}
// The runtime version associated with the Logic App. Defaults to `~3`.
//
// > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
func (o StandardOutput) Version() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Standard) pulumi.StringPtrOutput { return v.Version }).(pulumi.StringPtrOutput)
}
func (o StandardOutput) VirtualNetworkSubnetId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Standard) pulumi.StringPtrOutput { return v.VirtualNetworkSubnetId }).(pulumi.StringPtrOutput)
}
type StandardArrayOutput struct{ *pulumi.OutputState }
func (StandardArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Standard)(nil)).Elem()
}
func (o StandardArrayOutput) ToStandardArrayOutput() StandardArrayOutput {
return o
}
func (o StandardArrayOutput) ToStandardArrayOutputWithContext(ctx context.Context) StandardArrayOutput {
return o
}
func (o StandardArrayOutput) Index(i pulumi.IntInput) StandardOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Standard {
return vs[0].([]*Standard)[vs[1].(int)]
}).(StandardOutput)
}
type StandardMapOutput struct{ *pulumi.OutputState }
func (StandardMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Standard)(nil)).Elem()
}
func (o StandardMapOutput) ToStandardMapOutput() StandardMapOutput {
return o
}
func (o StandardMapOutput) ToStandardMapOutputWithContext(ctx context.Context) StandardMapOutput {
return o
}
func (o StandardMapOutput) MapIndex(k pulumi.StringInput) StandardOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Standard {
return vs[0].(map[string]*Standard)[vs[1].(string)]
}).(StandardOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*StandardInput)(nil)).Elem(), &Standard{})
pulumi.RegisterInputType(reflect.TypeOf((*StandardArrayInput)(nil)).Elem(), StandardArray{})
pulumi.RegisterInputType(reflect.TypeOf((*StandardMapInput)(nil)).Elem(), StandardMap{})
pulumi.RegisterOutputType(StandardOutput{})
pulumi.RegisterOutputType(StandardArrayOutput{})
pulumi.RegisterOutputType(StandardMapOutput{})
}