/
linuxWebAppSlot.go
785 lines (704 loc) · 41.9 KB
/
linuxWebAppSlot.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
// 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 appservice
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Linux Web App Slot.
//
// ## Example Usage
//
// ```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/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
// Name: pulumi.String("example-resources"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{
// Name: pulumi.String("example-plan"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// OsType: pulumi.String("Linux"),
// SkuName: pulumi.String("P1v2"),
// })
// if err != nil {
// return err
// }
// exampleLinuxWebApp, err := appservice.NewLinuxWebApp(ctx, "example", &appservice.LinuxWebAppArgs{
// Name: pulumi.String("example-linux-web-app"),
// ResourceGroupName: example.Name,
// Location: exampleServicePlan.Location,
// ServicePlanId: exampleServicePlan.ID(),
// SiteConfig: nil,
// })
// if err != nil {
// return err
// }
// _, err = appservice.NewLinuxWebAppSlot(ctx, "example", &appservice.LinuxWebAppSlotArgs{
// Name: pulumi.String("example-slot"),
// AppServiceId: exampleLinuxWebApp.ID(),
// SiteConfig: nil,
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Linux Web Apps can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:appservice/linuxWebAppSlot:LinuxWebAppSlot example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/slots/slot1
// ```
type LinuxWebAppSlot struct {
pulumi.CustomResourceState
// A `appMetadata`.
AppMetadata pulumi.StringMapOutput `pulumi:"appMetadata"`
// The ID of the Linux Web App this Deployment Slot will be part of.
AppServiceId pulumi.StringOutput `pulumi:"appServiceId"`
// A map of key-value pairs of App Settings.
AppSettings pulumi.StringMapOutput `pulumi:"appSettings"`
// An `authSettings` block as defined below.
AuthSettings LinuxWebAppSlotAuthSettingsPtrOutput `pulumi:"authSettings"`
// An `authSettingsV2` block as defined below.
AuthSettingsV2 LinuxWebAppSlotAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"`
// A `backup` block as defined below.
Backup LinuxWebAppSlotBackupPtrOutput `pulumi:"backup"`
// Should Client Affinity be enabled?
ClientAffinityEnabled pulumi.BoolPtrOutput `pulumi:"clientAffinityEnabled"`
// Should Client Certificates be enabled?
ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"`
// Paths to exclude when using client certificates, separated by ;
ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"`
// The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`.
ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"`
// One or more `connectionString` blocks as defined below.
ConnectionStrings LinuxWebAppSlotConnectionStringArrayOutput `pulumi:"connectionStrings"`
// The identifier used by App Service to perform domain ownership verification via DNS TXT record.
CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"`
// The default hostname of the Linux Web App.
DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"`
// Should the Linux Web App be enabled? Defaults to `true`.
Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
// Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`.
FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"`
// The ID of the App Service Environment used by App Service Slot.
HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"`
// Should the Linux Web App require HTTPS connections. Defaults to `false`.
HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"`
// An `identity` block as defined below.
Identity LinuxWebAppSlotIdentityPtrOutput `pulumi:"identity"`
// The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity).
KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"`
// The Kind value for this Linux Web App.
Kind pulumi.StringOutput `pulumi:"kind"`
// A `logs` block as defined below.
Logs LinuxWebAppSlotLogsPtrOutput `pulumi:"logs"`
Name pulumi.StringOutput `pulumi:"name"`
// A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]`
OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"`
// A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`.
OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"`
// A `possibleOutboundIpAddressList`.
PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"`
// 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"`
// Should public network access be enabled for the Web App. Defaults to `true`.
PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"`
// The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used.
//
// > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App.
ServicePlanId pulumi.StringPtrOutput `pulumi:"servicePlanId"`
// A `siteConfig` block as defined below.
SiteConfig LinuxWebAppSlotSiteConfigOutput `pulumi:"siteConfig"`
// A `siteCredential` block as defined below.
SiteCredentials LinuxWebAppSlotSiteCredentialArrayOutput `pulumi:"siteCredentials"`
// One or more `storageAccount` blocks as defined below.
StorageAccounts LinuxWebAppSlotStorageAccountArrayOutput `pulumi:"storageAccounts"`
// A mapping of tags that should be assigned to the Linux Web App.
Tags pulumi.StringMapOutput `pulumi:"tags"`
VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"`
// Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`.
//
// > **NOTE:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile.
WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"`
// The local path and filename of the Zip packaged application to deploy to this Linux Web App.
//
// > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details.
ZipDeployFile pulumi.StringOutput `pulumi:"zipDeployFile"`
}
// NewLinuxWebAppSlot registers a new resource with the given unique name, arguments, and options.
func NewLinuxWebAppSlot(ctx *pulumi.Context,
name string, args *LinuxWebAppSlotArgs, opts ...pulumi.ResourceOption) (*LinuxWebAppSlot, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AppServiceId == nil {
return nil, errors.New("invalid value for required argument 'AppServiceId'")
}
if args.SiteConfig == nil {
return nil, errors.New("invalid value for required argument 'SiteConfig'")
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"customDomainVerificationId",
"siteCredentials",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource LinuxWebAppSlot
err := ctx.RegisterResource("azure:appservice/linuxWebAppSlot:LinuxWebAppSlot", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLinuxWebAppSlot gets an existing LinuxWebAppSlot 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 GetLinuxWebAppSlot(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LinuxWebAppSlotState, opts ...pulumi.ResourceOption) (*LinuxWebAppSlot, error) {
var resource LinuxWebAppSlot
err := ctx.ReadResource("azure:appservice/linuxWebAppSlot:LinuxWebAppSlot", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering LinuxWebAppSlot resources.
type linuxWebAppSlotState struct {
// A `appMetadata`.
AppMetadata map[string]string `pulumi:"appMetadata"`
// The ID of the Linux Web App this Deployment Slot will be part of.
AppServiceId *string `pulumi:"appServiceId"`
// A map of key-value pairs of App Settings.
AppSettings map[string]string `pulumi:"appSettings"`
// An `authSettings` block as defined below.
AuthSettings *LinuxWebAppSlotAuthSettings `pulumi:"authSettings"`
// An `authSettingsV2` block as defined below.
AuthSettingsV2 *LinuxWebAppSlotAuthSettingsV2 `pulumi:"authSettingsV2"`
// A `backup` block as defined below.
Backup *LinuxWebAppSlotBackup `pulumi:"backup"`
// Should Client Affinity be enabled?
ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"`
// Should Client Certificates be enabled?
ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"`
// Paths to exclude when using client certificates, separated by ;
ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"`
// The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`.
ClientCertificateMode *string `pulumi:"clientCertificateMode"`
// One or more `connectionString` blocks as defined below.
ConnectionStrings []LinuxWebAppSlotConnectionString `pulumi:"connectionStrings"`
// The identifier used by App Service to perform domain ownership verification via DNS TXT record.
CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"`
// The default hostname of the Linux Web App.
DefaultHostname *string `pulumi:"defaultHostname"`
// Should the Linux Web App be enabled? Defaults to `true`.
Enabled *bool `pulumi:"enabled"`
// Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`.
FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"`
// The ID of the App Service Environment used by App Service Slot.
HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"`
// Should the Linux Web App require HTTPS connections. Defaults to `false`.
HttpsOnly *bool `pulumi:"httpsOnly"`
// An `identity` block as defined below.
Identity *LinuxWebAppSlotIdentity `pulumi:"identity"`
// The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity).
KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"`
// The Kind value for this Linux Web App.
Kind *string `pulumi:"kind"`
// A `logs` block as defined below.
Logs *LinuxWebAppSlotLogs `pulumi:"logs"`
Name *string `pulumi:"name"`
// A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]`
OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"`
// A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`.
OutboundIpAddresses *string `pulumi:"outboundIpAddresses"`
// A `possibleOutboundIpAddressList`.
PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"`
// 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"`
// Should public network access be enabled for the Web App. Defaults to `true`.
PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"`
// The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used.
//
// > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App.
ServicePlanId *string `pulumi:"servicePlanId"`
// A `siteConfig` block as defined below.
SiteConfig *LinuxWebAppSlotSiteConfig `pulumi:"siteConfig"`
// A `siteCredential` block as defined below.
SiteCredentials []LinuxWebAppSlotSiteCredential `pulumi:"siteCredentials"`
// One or more `storageAccount` blocks as defined below.
StorageAccounts []LinuxWebAppSlotStorageAccount `pulumi:"storageAccounts"`
// A mapping of tags that should be assigned to the Linux Web App.
Tags map[string]string `pulumi:"tags"`
VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"`
// Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`.
//
// > **NOTE:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile.
WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"`
// The local path and filename of the Zip packaged application to deploy to this Linux Web App.
//
// > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details.
ZipDeployFile *string `pulumi:"zipDeployFile"`
}
type LinuxWebAppSlotState struct {
// A `appMetadata`.
AppMetadata pulumi.StringMapInput
// The ID of the Linux Web App this Deployment Slot will be part of.
AppServiceId pulumi.StringPtrInput
// A map of key-value pairs of App Settings.
AppSettings pulumi.StringMapInput
// An `authSettings` block as defined below.
AuthSettings LinuxWebAppSlotAuthSettingsPtrInput
// An `authSettingsV2` block as defined below.
AuthSettingsV2 LinuxWebAppSlotAuthSettingsV2PtrInput
// A `backup` block as defined below.
Backup LinuxWebAppSlotBackupPtrInput
// Should Client Affinity be enabled?
ClientAffinityEnabled pulumi.BoolPtrInput
// Should Client Certificates be enabled?
ClientCertificateEnabled pulumi.BoolPtrInput
// Paths to exclude when using client certificates, separated by ;
ClientCertificateExclusionPaths pulumi.StringPtrInput
// The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`.
ClientCertificateMode pulumi.StringPtrInput
// One or more `connectionString` blocks as defined below.
ConnectionStrings LinuxWebAppSlotConnectionStringArrayInput
// The identifier used by App Service to perform domain ownership verification via DNS TXT record.
CustomDomainVerificationId pulumi.StringPtrInput
// The default hostname of the Linux Web App.
DefaultHostname pulumi.StringPtrInput
// Should the Linux Web App be enabled? Defaults to `true`.
Enabled pulumi.BoolPtrInput
// Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`.
FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput
// The ID of the App Service Environment used by App Service Slot.
HostingEnvironmentId pulumi.StringPtrInput
// Should the Linux Web App require HTTPS connections. Defaults to `false`.
HttpsOnly pulumi.BoolPtrInput
// An `identity` block as defined below.
Identity LinuxWebAppSlotIdentityPtrInput
// The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity).
KeyVaultReferenceIdentityId pulumi.StringPtrInput
// The Kind value for this Linux Web App.
Kind pulumi.StringPtrInput
// A `logs` block as defined below.
Logs LinuxWebAppSlotLogsPtrInput
Name pulumi.StringPtrInput
// A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]`
OutboundIpAddressLists pulumi.StringArrayInput
// A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`.
OutboundIpAddresses pulumi.StringPtrInput
// A `possibleOutboundIpAddressList`.
PossibleOutboundIpAddressLists pulumi.StringArrayInput
// 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
// Should public network access be enabled for the Web App. Defaults to `true`.
PublicNetworkAccessEnabled pulumi.BoolPtrInput
// The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used.
//
// > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App.
ServicePlanId pulumi.StringPtrInput
// A `siteConfig` block as defined below.
SiteConfig LinuxWebAppSlotSiteConfigPtrInput
// A `siteCredential` block as defined below.
SiteCredentials LinuxWebAppSlotSiteCredentialArrayInput
// One or more `storageAccount` blocks as defined below.
StorageAccounts LinuxWebAppSlotStorageAccountArrayInput
// A mapping of tags that should be assigned to the Linux Web App.
Tags pulumi.StringMapInput
VirtualNetworkSubnetId pulumi.StringPtrInput
// Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`.
//
// > **NOTE:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile.
WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput
// The local path and filename of the Zip packaged application to deploy to this Linux Web App.
//
// > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details.
ZipDeployFile pulumi.StringPtrInput
}
func (LinuxWebAppSlotState) ElementType() reflect.Type {
return reflect.TypeOf((*linuxWebAppSlotState)(nil)).Elem()
}
type linuxWebAppSlotArgs struct {
// The ID of the Linux Web App this Deployment Slot will be part of.
AppServiceId string `pulumi:"appServiceId"`
// A map of key-value pairs of App Settings.
AppSettings map[string]string `pulumi:"appSettings"`
// An `authSettings` block as defined below.
AuthSettings *LinuxWebAppSlotAuthSettings `pulumi:"authSettings"`
// An `authSettingsV2` block as defined below.
AuthSettingsV2 *LinuxWebAppSlotAuthSettingsV2 `pulumi:"authSettingsV2"`
// A `backup` block as defined below.
Backup *LinuxWebAppSlotBackup `pulumi:"backup"`
// Should Client Affinity be enabled?
ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"`
// Should Client Certificates be enabled?
ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"`
// Paths to exclude when using client certificates, separated by ;
ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"`
// The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`.
ClientCertificateMode *string `pulumi:"clientCertificateMode"`
// One or more `connectionString` blocks as defined below.
ConnectionStrings []LinuxWebAppSlotConnectionString `pulumi:"connectionStrings"`
// Should the Linux Web App be enabled? Defaults to `true`.
Enabled *bool `pulumi:"enabled"`
// Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`.
FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"`
// Should the Linux Web App require HTTPS connections. Defaults to `false`.
HttpsOnly *bool `pulumi:"httpsOnly"`
// An `identity` block as defined below.
Identity *LinuxWebAppSlotIdentity `pulumi:"identity"`
// The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity).
KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"`
// A `logs` block as defined below.
Logs *LinuxWebAppSlotLogs `pulumi:"logs"`
Name *string `pulumi:"name"`
// Should public network access be enabled for the Web App. Defaults to `true`.
PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"`
// The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used.
//
// > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App.
ServicePlanId *string `pulumi:"servicePlanId"`
// A `siteConfig` block as defined below.
SiteConfig LinuxWebAppSlotSiteConfig `pulumi:"siteConfig"`
// One or more `storageAccount` blocks as defined below.
StorageAccounts []LinuxWebAppSlotStorageAccount `pulumi:"storageAccounts"`
// A mapping of tags that should be assigned to the Linux Web App.
Tags map[string]string `pulumi:"tags"`
VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"`
// Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`.
//
// > **NOTE:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile.
WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"`
// The local path and filename of the Zip packaged application to deploy to this Linux Web App.
//
// > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details.
ZipDeployFile *string `pulumi:"zipDeployFile"`
}
// The set of arguments for constructing a LinuxWebAppSlot resource.
type LinuxWebAppSlotArgs struct {
// The ID of the Linux Web App this Deployment Slot will be part of.
AppServiceId pulumi.StringInput
// A map of key-value pairs of App Settings.
AppSettings pulumi.StringMapInput
// An `authSettings` block as defined below.
AuthSettings LinuxWebAppSlotAuthSettingsPtrInput
// An `authSettingsV2` block as defined below.
AuthSettingsV2 LinuxWebAppSlotAuthSettingsV2PtrInput
// A `backup` block as defined below.
Backup LinuxWebAppSlotBackupPtrInput
// Should Client Affinity be enabled?
ClientAffinityEnabled pulumi.BoolPtrInput
// Should Client Certificates be enabled?
ClientCertificateEnabled pulumi.BoolPtrInput
// Paths to exclude when using client certificates, separated by ;
ClientCertificateExclusionPaths pulumi.StringPtrInput
// The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`.
ClientCertificateMode pulumi.StringPtrInput
// One or more `connectionString` blocks as defined below.
ConnectionStrings LinuxWebAppSlotConnectionStringArrayInput
// Should the Linux Web App be enabled? Defaults to `true`.
Enabled pulumi.BoolPtrInput
// Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`.
FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput
// Should the Linux Web App require HTTPS connections. Defaults to `false`.
HttpsOnly pulumi.BoolPtrInput
// An `identity` block as defined below.
Identity LinuxWebAppSlotIdentityPtrInput
// The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity).
KeyVaultReferenceIdentityId pulumi.StringPtrInput
// A `logs` block as defined below.
Logs LinuxWebAppSlotLogsPtrInput
Name pulumi.StringPtrInput
// Should public network access be enabled for the Web App. Defaults to `true`.
PublicNetworkAccessEnabled pulumi.BoolPtrInput
// The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used.
//
// > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App.
ServicePlanId pulumi.StringPtrInput
// A `siteConfig` block as defined below.
SiteConfig LinuxWebAppSlotSiteConfigInput
// One or more `storageAccount` blocks as defined below.
StorageAccounts LinuxWebAppSlotStorageAccountArrayInput
// A mapping of tags that should be assigned to the Linux Web App.
Tags pulumi.StringMapInput
VirtualNetworkSubnetId pulumi.StringPtrInput
// Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`.
//
// > **NOTE:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile.
WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput
// The local path and filename of the Zip packaged application to deploy to this Linux Web App.
//
// > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details.
ZipDeployFile pulumi.StringPtrInput
}
func (LinuxWebAppSlotArgs) ElementType() reflect.Type {
return reflect.TypeOf((*linuxWebAppSlotArgs)(nil)).Elem()
}
type LinuxWebAppSlotInput interface {
pulumi.Input
ToLinuxWebAppSlotOutput() LinuxWebAppSlotOutput
ToLinuxWebAppSlotOutputWithContext(ctx context.Context) LinuxWebAppSlotOutput
}
func (*LinuxWebAppSlot) ElementType() reflect.Type {
return reflect.TypeOf((**LinuxWebAppSlot)(nil)).Elem()
}
func (i *LinuxWebAppSlot) ToLinuxWebAppSlotOutput() LinuxWebAppSlotOutput {
return i.ToLinuxWebAppSlotOutputWithContext(context.Background())
}
func (i *LinuxWebAppSlot) ToLinuxWebAppSlotOutputWithContext(ctx context.Context) LinuxWebAppSlotOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinuxWebAppSlotOutput)
}
// LinuxWebAppSlotArrayInput is an input type that accepts LinuxWebAppSlotArray and LinuxWebAppSlotArrayOutput values.
// You can construct a concrete instance of `LinuxWebAppSlotArrayInput` via:
//
// LinuxWebAppSlotArray{ LinuxWebAppSlotArgs{...} }
type LinuxWebAppSlotArrayInput interface {
pulumi.Input
ToLinuxWebAppSlotArrayOutput() LinuxWebAppSlotArrayOutput
ToLinuxWebAppSlotArrayOutputWithContext(context.Context) LinuxWebAppSlotArrayOutput
}
type LinuxWebAppSlotArray []LinuxWebAppSlotInput
func (LinuxWebAppSlotArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LinuxWebAppSlot)(nil)).Elem()
}
func (i LinuxWebAppSlotArray) ToLinuxWebAppSlotArrayOutput() LinuxWebAppSlotArrayOutput {
return i.ToLinuxWebAppSlotArrayOutputWithContext(context.Background())
}
func (i LinuxWebAppSlotArray) ToLinuxWebAppSlotArrayOutputWithContext(ctx context.Context) LinuxWebAppSlotArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinuxWebAppSlotArrayOutput)
}
// LinuxWebAppSlotMapInput is an input type that accepts LinuxWebAppSlotMap and LinuxWebAppSlotMapOutput values.
// You can construct a concrete instance of `LinuxWebAppSlotMapInput` via:
//
// LinuxWebAppSlotMap{ "key": LinuxWebAppSlotArgs{...} }
type LinuxWebAppSlotMapInput interface {
pulumi.Input
ToLinuxWebAppSlotMapOutput() LinuxWebAppSlotMapOutput
ToLinuxWebAppSlotMapOutputWithContext(context.Context) LinuxWebAppSlotMapOutput
}
type LinuxWebAppSlotMap map[string]LinuxWebAppSlotInput
func (LinuxWebAppSlotMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*LinuxWebAppSlot)(nil)).Elem()
}
func (i LinuxWebAppSlotMap) ToLinuxWebAppSlotMapOutput() LinuxWebAppSlotMapOutput {
return i.ToLinuxWebAppSlotMapOutputWithContext(context.Background())
}
func (i LinuxWebAppSlotMap) ToLinuxWebAppSlotMapOutputWithContext(ctx context.Context) LinuxWebAppSlotMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinuxWebAppSlotMapOutput)
}
type LinuxWebAppSlotOutput struct{ *pulumi.OutputState }
func (LinuxWebAppSlotOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LinuxWebAppSlot)(nil)).Elem()
}
func (o LinuxWebAppSlotOutput) ToLinuxWebAppSlotOutput() LinuxWebAppSlotOutput {
return o
}
func (o LinuxWebAppSlotOutput) ToLinuxWebAppSlotOutputWithContext(ctx context.Context) LinuxWebAppSlotOutput {
return o
}
// A `appMetadata`.
func (o LinuxWebAppSlotOutput) AppMetadata() pulumi.StringMapOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringMapOutput { return v.AppMetadata }).(pulumi.StringMapOutput)
}
// The ID of the Linux Web App this Deployment Slot will be part of.
func (o LinuxWebAppSlotOutput) AppServiceId() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.AppServiceId }).(pulumi.StringOutput)
}
// A map of key-value pairs of App Settings.
func (o LinuxWebAppSlotOutput) AppSettings() pulumi.StringMapOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringMapOutput { return v.AppSettings }).(pulumi.StringMapOutput)
}
// An `authSettings` block as defined below.
func (o LinuxWebAppSlotOutput) AuthSettings() LinuxWebAppSlotAuthSettingsPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotAuthSettingsPtrOutput { return v.AuthSettings }).(LinuxWebAppSlotAuthSettingsPtrOutput)
}
// An `authSettingsV2` block as defined below.
func (o LinuxWebAppSlotOutput) AuthSettingsV2() LinuxWebAppSlotAuthSettingsV2PtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotAuthSettingsV2PtrOutput { return v.AuthSettingsV2 }).(LinuxWebAppSlotAuthSettingsV2PtrOutput)
}
// A `backup` block as defined below.
func (o LinuxWebAppSlotOutput) Backup() LinuxWebAppSlotBackupPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotBackupPtrOutput { return v.Backup }).(LinuxWebAppSlotBackupPtrOutput)
}
// Should Client Affinity be enabled?
func (o LinuxWebAppSlotOutput) ClientAffinityEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.BoolPtrOutput { return v.ClientAffinityEnabled }).(pulumi.BoolPtrOutput)
}
// Should Client Certificates be enabled?
func (o LinuxWebAppSlotOutput) ClientCertificateEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.BoolPtrOutput { return v.ClientCertificateEnabled }).(pulumi.BoolPtrOutput)
}
// Paths to exclude when using client certificates, separated by ;
func (o LinuxWebAppSlotOutput) ClientCertificateExclusionPaths() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringPtrOutput { return v.ClientCertificateExclusionPaths }).(pulumi.StringPtrOutput)
}
// The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`.
func (o LinuxWebAppSlotOutput) ClientCertificateMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringPtrOutput { return v.ClientCertificateMode }).(pulumi.StringPtrOutput)
}
// One or more `connectionString` blocks as defined below.
func (o LinuxWebAppSlotOutput) ConnectionStrings() LinuxWebAppSlotConnectionStringArrayOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotConnectionStringArrayOutput { return v.ConnectionStrings }).(LinuxWebAppSlotConnectionStringArrayOutput)
}
// The identifier used by App Service to perform domain ownership verification via DNS TXT record.
func (o LinuxWebAppSlotOutput) CustomDomainVerificationId() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.CustomDomainVerificationId }).(pulumi.StringOutput)
}
// The default hostname of the Linux Web App.
func (o LinuxWebAppSlotOutput) DefaultHostname() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.DefaultHostname }).(pulumi.StringOutput)
}
// Should the Linux Web App be enabled? Defaults to `true`.
func (o LinuxWebAppSlotOutput) Enabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput)
}
// Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`.
func (o LinuxWebAppSlotOutput) FtpPublishBasicAuthenticationEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.BoolPtrOutput { return v.FtpPublishBasicAuthenticationEnabled }).(pulumi.BoolPtrOutput)
}
// The ID of the App Service Environment used by App Service Slot.
func (o LinuxWebAppSlotOutput) HostingEnvironmentId() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.HostingEnvironmentId }).(pulumi.StringOutput)
}
// Should the Linux Web App require HTTPS connections. Defaults to `false`.
func (o LinuxWebAppSlotOutput) HttpsOnly() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.BoolPtrOutput { return v.HttpsOnly }).(pulumi.BoolPtrOutput)
}
// An `identity` block as defined below.
func (o LinuxWebAppSlotOutput) Identity() LinuxWebAppSlotIdentityPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotIdentityPtrOutput { return v.Identity }).(LinuxWebAppSlotIdentityPtrOutput)
}
// The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity).
func (o LinuxWebAppSlotOutput) KeyVaultReferenceIdentityId() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.KeyVaultReferenceIdentityId }).(pulumi.StringOutput)
}
// The Kind value for this Linux Web App.
func (o LinuxWebAppSlotOutput) Kind() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.Kind }).(pulumi.StringOutput)
}
// A `logs` block as defined below.
func (o LinuxWebAppSlotOutput) Logs() LinuxWebAppSlotLogsPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotLogsPtrOutput { return v.Logs }).(LinuxWebAppSlotLogsPtrOutput)
}
func (o LinuxWebAppSlotOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]`
func (o LinuxWebAppSlotOutput) OutboundIpAddressLists() pulumi.StringArrayOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringArrayOutput { return v.OutboundIpAddressLists }).(pulumi.StringArrayOutput)
}
// A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`.
func (o LinuxWebAppSlotOutput) OutboundIpAddresses() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.OutboundIpAddresses }).(pulumi.StringOutput)
}
// A `possibleOutboundIpAddressList`.
func (o LinuxWebAppSlotOutput) PossibleOutboundIpAddressLists() pulumi.StringArrayOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringArrayOutput { return v.PossibleOutboundIpAddressLists }).(pulumi.StringArrayOutput)
}
// 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 LinuxWebAppSlotOutput) PossibleOutboundIpAddresses() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput)
}
// Should public network access be enabled for the Web App. Defaults to `true`.
func (o LinuxWebAppSlotOutput) PublicNetworkAccessEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.BoolPtrOutput { return v.PublicNetworkAccessEnabled }).(pulumi.BoolPtrOutput)
}
// The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used.
//
// > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App.
func (o LinuxWebAppSlotOutput) ServicePlanId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringPtrOutput { return v.ServicePlanId }).(pulumi.StringPtrOutput)
}
// A `siteConfig` block as defined below.
func (o LinuxWebAppSlotOutput) SiteConfig() LinuxWebAppSlotSiteConfigOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotSiteConfigOutput { return v.SiteConfig }).(LinuxWebAppSlotSiteConfigOutput)
}
// A `siteCredential` block as defined below.
func (o LinuxWebAppSlotOutput) SiteCredentials() LinuxWebAppSlotSiteCredentialArrayOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotSiteCredentialArrayOutput { return v.SiteCredentials }).(LinuxWebAppSlotSiteCredentialArrayOutput)
}
// One or more `storageAccount` blocks as defined below.
func (o LinuxWebAppSlotOutput) StorageAccounts() LinuxWebAppSlotStorageAccountArrayOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) LinuxWebAppSlotStorageAccountArrayOutput { return v.StorageAccounts }).(LinuxWebAppSlotStorageAccountArrayOutput)
}
// A mapping of tags that should be assigned to the Linux Web App.
func (o LinuxWebAppSlotOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
func (o LinuxWebAppSlotOutput) VirtualNetworkSubnetId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringPtrOutput { return v.VirtualNetworkSubnetId }).(pulumi.StringPtrOutput)
}
// Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`.
//
// > **NOTE:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile.
func (o LinuxWebAppSlotOutput) WebdeployPublishBasicAuthenticationEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.BoolPtrOutput { return v.WebdeployPublishBasicAuthenticationEnabled }).(pulumi.BoolPtrOutput)
}
// The local path and filename of the Zip packaged application to deploy to this Linux Web App.
//
// > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details.
func (o LinuxWebAppSlotOutput) ZipDeployFile() pulumi.StringOutput {
return o.ApplyT(func(v *LinuxWebAppSlot) pulumi.StringOutput { return v.ZipDeployFile }).(pulumi.StringOutput)
}
type LinuxWebAppSlotArrayOutput struct{ *pulumi.OutputState }
func (LinuxWebAppSlotArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LinuxWebAppSlot)(nil)).Elem()
}
func (o LinuxWebAppSlotArrayOutput) ToLinuxWebAppSlotArrayOutput() LinuxWebAppSlotArrayOutput {
return o
}
func (o LinuxWebAppSlotArrayOutput) ToLinuxWebAppSlotArrayOutputWithContext(ctx context.Context) LinuxWebAppSlotArrayOutput {
return o
}
func (o LinuxWebAppSlotArrayOutput) Index(i pulumi.IntInput) LinuxWebAppSlotOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinuxWebAppSlot {
return vs[0].([]*LinuxWebAppSlot)[vs[1].(int)]
}).(LinuxWebAppSlotOutput)
}
type LinuxWebAppSlotMapOutput struct{ *pulumi.OutputState }
func (LinuxWebAppSlotMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*LinuxWebAppSlot)(nil)).Elem()
}
func (o LinuxWebAppSlotMapOutput) ToLinuxWebAppSlotMapOutput() LinuxWebAppSlotMapOutput {
return o
}
func (o LinuxWebAppSlotMapOutput) ToLinuxWebAppSlotMapOutputWithContext(ctx context.Context) LinuxWebAppSlotMapOutput {
return o
}
func (o LinuxWebAppSlotMapOutput) MapIndex(k pulumi.StringInput) LinuxWebAppSlotOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinuxWebAppSlot {
return vs[0].(map[string]*LinuxWebAppSlot)[vs[1].(string)]
}).(LinuxWebAppSlotOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*LinuxWebAppSlotInput)(nil)).Elem(), &LinuxWebAppSlot{})
pulumi.RegisterInputType(reflect.TypeOf((*LinuxWebAppSlotArrayInput)(nil)).Elem(), LinuxWebAppSlotArray{})
pulumi.RegisterInputType(reflect.TypeOf((*LinuxWebAppSlotMapInput)(nil)).Elem(), LinuxWebAppSlotMap{})
pulumi.RegisterOutputType(LinuxWebAppSlotOutput{})
pulumi.RegisterOutputType(LinuxWebAppSlotArrayOutput{})
pulumi.RegisterOutputType(LinuxWebAppSlotMapOutput{})
}