This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
webAppSlot.go
522 lines (498 loc) · 25.8 KB
/
webAppSlot.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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190801
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// A web app, a mobile app backend, or an API app.
type WebAppSlot struct {
pulumi.CustomResourceState
// Management information availability state for the app.
AvailabilityState pulumi.StringOutput `pulumi:"availabilityState"`
// <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
ClientAffinityEnabled pulumi.BoolPtrOutput `pulumi:"clientAffinityEnabled"`
// <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
ClientCertEnabled pulumi.BoolPtrOutput `pulumi:"clientCertEnabled"`
// client certificate authentication comma-separated exclusion paths
ClientCertExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertExclusionPaths"`
// If specified during app creation, the app is cloned from a source app.
CloningInfo CloningInfoResponsePtrOutput `pulumi:"cloningInfo"`
// Size of the function container.
ContainerSize pulumi.IntPtrOutput `pulumi:"containerSize"`
// Maximum allowed daily memory-time quota (applicable on dynamic apps only).
DailyMemoryTimeQuota pulumi.IntPtrOutput `pulumi:"dailyMemoryTimeQuota"`
// Default hostname of the app. Read-only.
DefaultHostName pulumi.StringOutput `pulumi:"defaultHostName"`
// <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
// Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise,
// the app is not served on those hostnames.
EnabledHostNames pulumi.StringArrayOutput `pulumi:"enabledHostNames"`
// Hostname SSL states are used to manage the SSL bindings for app's hostnames.
HostNameSslStates HostNameSslStateResponseArrayOutput `pulumi:"hostNameSslStates"`
// Hostnames associated with the app.
HostNames pulumi.StringArrayOutput `pulumi:"hostNames"`
// <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
// If <code>true</code>, the app is only accessible via API management process.
HostNamesDisabled pulumi.BoolPtrOutput `pulumi:"hostNamesDisabled"`
// App Service Environment to use for the app.
HostingEnvironmentProfile HostingEnvironmentProfileResponsePtrOutput `pulumi:"hostingEnvironmentProfile"`
// HttpsOnly: configures a web site to accept only https requests. Issues redirect for
// http requests
HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"`
// Hyper-V sandbox.
HyperV pulumi.BoolPtrOutput `pulumi:"hyperV"`
// Managed service identity.
Identity ManagedServiceIdentityResponsePtrOutput `pulumi:"identity"`
// Specifies an operation id if this site has a pending operation.
InProgressOperationId pulumi.StringOutput `pulumi:"inProgressOperationId"`
// <code>true</code> if the app is a default container; otherwise, <code>false</code>.
IsDefaultContainer pulumi.BoolOutput `pulumi:"isDefaultContainer"`
// Obsolete: Hyper-V sandbox.
IsXenon pulumi.BoolPtrOutput `pulumi:"isXenon"`
// Kind of resource.
Kind pulumi.StringPtrOutput `pulumi:"kind"`
// Last time the app was modified, in UTC. Read-only.
LastModifiedTimeUtc pulumi.StringOutput `pulumi:"lastModifiedTimeUtc"`
// Resource Location.
Location pulumi.StringOutput `pulumi:"location"`
// Maximum number of workers.
// This only applies to Functions container.
MaxNumberOfWorkers pulumi.IntOutput `pulumi:"maxNumberOfWorkers"`
// Resource Name.
Name pulumi.StringOutput `pulumi:"name"`
// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only.
OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"`
// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only.
PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"`
// Site redundancy mode
RedundancyMode pulumi.StringPtrOutput `pulumi:"redundancyMode"`
// Name of the repository site.
RepositorySiteName pulumi.StringOutput `pulumi:"repositorySiteName"`
// <code>true</code> if reserved; otherwise, <code>false</code>.
Reserved pulumi.BoolPtrOutput `pulumi:"reserved"`
// Name of the resource group the app belongs to. Read-only.
ResourceGroup pulumi.StringOutput `pulumi:"resourceGroup"`
// <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
ScmSiteAlsoStopped pulumi.BoolPtrOutput `pulumi:"scmSiteAlsoStopped"`
// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
ServerFarmId pulumi.StringPtrOutput `pulumi:"serverFarmId"`
// Configuration of the app.
SiteConfig SiteConfigResponsePtrOutput `pulumi:"siteConfig"`
// Status of the last deployment slot swap operation.
SlotSwapStatus SlotSwapStatusResponseOutput `pulumi:"slotSwapStatus"`
// Current state of the app.
State pulumi.StringOutput `pulumi:"state"`
// App suspended till in case memory-time quota is exceeded.
SuspendedTill pulumi.StringOutput `pulumi:"suspendedTill"`
// Resource tags.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Specifies which deployment slot this app will swap into. Read-only.
TargetSwapSlot pulumi.StringOutput `pulumi:"targetSwapSlot"`
// Azure Traffic Manager hostnames associated with the app. Read-only.
TrafficManagerHostNames pulumi.StringArrayOutput `pulumi:"trafficManagerHostNames"`
// Resource type.
Type pulumi.StringOutput `pulumi:"type"`
// State indicating whether the app has exceeded its quota usage. Read-only.
UsageState pulumi.StringOutput `pulumi:"usageState"`
}
// NewWebAppSlot registers a new resource with the given unique name, arguments, and options.
func NewWebAppSlot(ctx *pulumi.Context,
name string, args *WebAppSlotArgs, opts ...pulumi.ResourceOption) (*WebAppSlot, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.Slot == nil {
return nil, errors.New("invalid value for required argument 'Slot'")
}
if args.HyperV == nil {
args.HyperV = pulumi.BoolPtr(false)
}
if args.IsXenon == nil {
args.IsXenon = pulumi.BoolPtr(false)
}
if args.Reserved == nil {
args.Reserved = pulumi.BoolPtr(false)
}
if args.ScmSiteAlsoStopped == nil {
args.ScmSiteAlsoStopped = pulumi.BoolPtr(false)
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:web/latest:WebAppSlot"),
},
{
Type: pulumi.String("azure-nextgen:web/v20150801:WebAppSlot"),
},
{
Type: pulumi.String("azure-nextgen:web/v20160801:WebAppSlot"),
},
{
Type: pulumi.String("azure-nextgen:web/v20180201:WebAppSlot"),
},
{
Type: pulumi.String("azure-nextgen:web/v20181101:WebAppSlot"),
},
{
Type: pulumi.String("azure-nextgen:web/v20200601:WebAppSlot"),
},
{
Type: pulumi.String("azure-nextgen:web/v20200901:WebAppSlot"),
},
{
Type: pulumi.String("azure-nextgen:web/v20201001:WebAppSlot"),
},
})
opts = append(opts, aliases)
var resource WebAppSlot
err := ctx.RegisterResource("azure-nextgen:web/v20190801:WebAppSlot", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetWebAppSlot gets an existing WebAppSlot 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 GetWebAppSlot(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *WebAppSlotState, opts ...pulumi.ResourceOption) (*WebAppSlot, error) {
var resource WebAppSlot
err := ctx.ReadResource("azure-nextgen:web/v20190801:WebAppSlot", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering WebAppSlot resources.
type webAppSlotState struct {
// Management information availability state for the app.
AvailabilityState *string `pulumi:"availabilityState"`
// <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"`
// <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
ClientCertEnabled *bool `pulumi:"clientCertEnabled"`
// client certificate authentication comma-separated exclusion paths
ClientCertExclusionPaths *string `pulumi:"clientCertExclusionPaths"`
// If specified during app creation, the app is cloned from a source app.
CloningInfo *CloningInfoResponse `pulumi:"cloningInfo"`
// Size of the function container.
ContainerSize *int `pulumi:"containerSize"`
// Maximum allowed daily memory-time quota (applicable on dynamic apps only).
DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"`
// Default hostname of the app. Read-only.
DefaultHostName *string `pulumi:"defaultHostName"`
// <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
Enabled *bool `pulumi:"enabled"`
// Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise,
// the app is not served on those hostnames.
EnabledHostNames []string `pulumi:"enabledHostNames"`
// Hostname SSL states are used to manage the SSL bindings for app's hostnames.
HostNameSslStates []HostNameSslStateResponse `pulumi:"hostNameSslStates"`
// Hostnames associated with the app.
HostNames []string `pulumi:"hostNames"`
// <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
// If <code>true</code>, the app is only accessible via API management process.
HostNamesDisabled *bool `pulumi:"hostNamesDisabled"`
// App Service Environment to use for the app.
HostingEnvironmentProfile *HostingEnvironmentProfileResponse `pulumi:"hostingEnvironmentProfile"`
// HttpsOnly: configures a web site to accept only https requests. Issues redirect for
// http requests
HttpsOnly *bool `pulumi:"httpsOnly"`
// Hyper-V sandbox.
HyperV *bool `pulumi:"hyperV"`
// Managed service identity.
Identity *ManagedServiceIdentityResponse `pulumi:"identity"`
// Specifies an operation id if this site has a pending operation.
InProgressOperationId *string `pulumi:"inProgressOperationId"`
// <code>true</code> if the app is a default container; otherwise, <code>false</code>.
IsDefaultContainer *bool `pulumi:"isDefaultContainer"`
// Obsolete: Hyper-V sandbox.
IsXenon *bool `pulumi:"isXenon"`
// Kind of resource.
Kind *string `pulumi:"kind"`
// Last time the app was modified, in UTC. Read-only.
LastModifiedTimeUtc *string `pulumi:"lastModifiedTimeUtc"`
// Resource Location.
Location *string `pulumi:"location"`
// Maximum number of workers.
// This only applies to Functions container.
MaxNumberOfWorkers *int `pulumi:"maxNumberOfWorkers"`
// Resource Name.
Name *string `pulumi:"name"`
// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only.
OutboundIpAddresses *string `pulumi:"outboundIpAddresses"`
// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only.
PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"`
// Site redundancy mode
RedundancyMode *string `pulumi:"redundancyMode"`
// Name of the repository site.
RepositorySiteName *string `pulumi:"repositorySiteName"`
// <code>true</code> if reserved; otherwise, <code>false</code>.
Reserved *bool `pulumi:"reserved"`
// Name of the resource group the app belongs to. Read-only.
ResourceGroup *string `pulumi:"resourceGroup"`
// <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
ScmSiteAlsoStopped *bool `pulumi:"scmSiteAlsoStopped"`
// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
ServerFarmId *string `pulumi:"serverFarmId"`
// Configuration of the app.
SiteConfig *SiteConfigResponse `pulumi:"siteConfig"`
// Status of the last deployment slot swap operation.
SlotSwapStatus *SlotSwapStatusResponse `pulumi:"slotSwapStatus"`
// Current state of the app.
State *string `pulumi:"state"`
// App suspended till in case memory-time quota is exceeded.
SuspendedTill *string `pulumi:"suspendedTill"`
// Resource tags.
Tags map[string]string `pulumi:"tags"`
// Specifies which deployment slot this app will swap into. Read-only.
TargetSwapSlot *string `pulumi:"targetSwapSlot"`
// Azure Traffic Manager hostnames associated with the app. Read-only.
TrafficManagerHostNames []string `pulumi:"trafficManagerHostNames"`
// Resource type.
Type *string `pulumi:"type"`
// State indicating whether the app has exceeded its quota usage. Read-only.
UsageState *string `pulumi:"usageState"`
}
type WebAppSlotState struct {
// Management information availability state for the app.
AvailabilityState pulumi.StringPtrInput
// <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
ClientAffinityEnabled pulumi.BoolPtrInput
// <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
ClientCertEnabled pulumi.BoolPtrInput
// client certificate authentication comma-separated exclusion paths
ClientCertExclusionPaths pulumi.StringPtrInput
// If specified during app creation, the app is cloned from a source app.
CloningInfo CloningInfoResponsePtrInput
// Size of the function container.
ContainerSize pulumi.IntPtrInput
// Maximum allowed daily memory-time quota (applicable on dynamic apps only).
DailyMemoryTimeQuota pulumi.IntPtrInput
// Default hostname of the app. Read-only.
DefaultHostName pulumi.StringPtrInput
// <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
Enabled pulumi.BoolPtrInput
// Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise,
// the app is not served on those hostnames.
EnabledHostNames pulumi.StringArrayInput
// Hostname SSL states are used to manage the SSL bindings for app's hostnames.
HostNameSslStates HostNameSslStateResponseArrayInput
// Hostnames associated with the app.
HostNames pulumi.StringArrayInput
// <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
// If <code>true</code>, the app is only accessible via API management process.
HostNamesDisabled pulumi.BoolPtrInput
// App Service Environment to use for the app.
HostingEnvironmentProfile HostingEnvironmentProfileResponsePtrInput
// HttpsOnly: configures a web site to accept only https requests. Issues redirect for
// http requests
HttpsOnly pulumi.BoolPtrInput
// Hyper-V sandbox.
HyperV pulumi.BoolPtrInput
// Managed service identity.
Identity ManagedServiceIdentityResponsePtrInput
// Specifies an operation id if this site has a pending operation.
InProgressOperationId pulumi.StringPtrInput
// <code>true</code> if the app is a default container; otherwise, <code>false</code>.
IsDefaultContainer pulumi.BoolPtrInput
// Obsolete: Hyper-V sandbox.
IsXenon pulumi.BoolPtrInput
// Kind of resource.
Kind pulumi.StringPtrInput
// Last time the app was modified, in UTC. Read-only.
LastModifiedTimeUtc pulumi.StringPtrInput
// Resource Location.
Location pulumi.StringPtrInput
// Maximum number of workers.
// This only applies to Functions container.
MaxNumberOfWorkers pulumi.IntPtrInput
// Resource Name.
Name pulumi.StringPtrInput
// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only.
OutboundIpAddresses pulumi.StringPtrInput
// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only.
PossibleOutboundIpAddresses pulumi.StringPtrInput
// Site redundancy mode
RedundancyMode pulumi.StringPtrInput
// Name of the repository site.
RepositorySiteName pulumi.StringPtrInput
// <code>true</code> if reserved; otherwise, <code>false</code>.
Reserved pulumi.BoolPtrInput
// Name of the resource group the app belongs to. Read-only.
ResourceGroup pulumi.StringPtrInput
// <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
ScmSiteAlsoStopped pulumi.BoolPtrInput
// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
ServerFarmId pulumi.StringPtrInput
// Configuration of the app.
SiteConfig SiteConfigResponsePtrInput
// Status of the last deployment slot swap operation.
SlotSwapStatus SlotSwapStatusResponsePtrInput
// Current state of the app.
State pulumi.StringPtrInput
// App suspended till in case memory-time quota is exceeded.
SuspendedTill pulumi.StringPtrInput
// Resource tags.
Tags pulumi.StringMapInput
// Specifies which deployment slot this app will swap into. Read-only.
TargetSwapSlot pulumi.StringPtrInput
// Azure Traffic Manager hostnames associated with the app. Read-only.
TrafficManagerHostNames pulumi.StringArrayInput
// Resource type.
Type pulumi.StringPtrInput
// State indicating whether the app has exceeded its quota usage. Read-only.
UsageState pulumi.StringPtrInput
}
func (WebAppSlotState) ElementType() reflect.Type {
return reflect.TypeOf((*webAppSlotState)(nil)).Elem()
}
type webAppSlotArgs struct {
// <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"`
// <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
ClientCertEnabled *bool `pulumi:"clientCertEnabled"`
// client certificate authentication comma-separated exclusion paths
ClientCertExclusionPaths *string `pulumi:"clientCertExclusionPaths"`
// If specified during app creation, the app is cloned from a source app.
CloningInfo *CloningInfo `pulumi:"cloningInfo"`
// Size of the function container.
ContainerSize *int `pulumi:"containerSize"`
// Maximum allowed daily memory-time quota (applicable on dynamic apps only).
DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"`
// <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
Enabled *bool `pulumi:"enabled"`
// Hostname SSL states are used to manage the SSL bindings for app's hostnames.
HostNameSslStates []HostNameSslState `pulumi:"hostNameSslStates"`
// <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
// If <code>true</code>, the app is only accessible via API management process.
HostNamesDisabled *bool `pulumi:"hostNamesDisabled"`
// App Service Environment to use for the app.
HostingEnvironmentProfile *HostingEnvironmentProfile `pulumi:"hostingEnvironmentProfile"`
// HttpsOnly: configures a web site to accept only https requests. Issues redirect for
// http requests
HttpsOnly *bool `pulumi:"httpsOnly"`
// Hyper-V sandbox.
HyperV *bool `pulumi:"hyperV"`
// Managed service identity.
Identity *ManagedServiceIdentity `pulumi:"identity"`
// Obsolete: Hyper-V sandbox.
IsXenon *bool `pulumi:"isXenon"`
// Kind of resource.
Kind *string `pulumi:"kind"`
// Resource Location.
Location *string `pulumi:"location"`
// Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter.
Name string `pulumi:"name"`
// Site redundancy mode
RedundancyMode *string `pulumi:"redundancyMode"`
// <code>true</code> if reserved; otherwise, <code>false</code>.
Reserved *bool `pulumi:"reserved"`
// Name of the resource group to which the resource belongs.
ResourceGroupName string `pulumi:"resourceGroupName"`
// <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
ScmSiteAlsoStopped *bool `pulumi:"scmSiteAlsoStopped"`
// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
ServerFarmId *string `pulumi:"serverFarmId"`
// Configuration of the app.
SiteConfig *SiteConfig `pulumi:"siteConfig"`
// Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot.
Slot string `pulumi:"slot"`
// Resource tags.
Tags map[string]string `pulumi:"tags"`
}
// The set of arguments for constructing a WebAppSlot resource.
type WebAppSlotArgs struct {
// <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>.
ClientAffinityEnabled pulumi.BoolPtrInput
// <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
ClientCertEnabled pulumi.BoolPtrInput
// client certificate authentication comma-separated exclusion paths
ClientCertExclusionPaths pulumi.StringPtrInput
// If specified during app creation, the app is cloned from a source app.
CloningInfo CloningInfoPtrInput
// Size of the function container.
ContainerSize pulumi.IntPtrInput
// Maximum allowed daily memory-time quota (applicable on dynamic apps only).
DailyMemoryTimeQuota pulumi.IntPtrInput
// <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
Enabled pulumi.BoolPtrInput
// Hostname SSL states are used to manage the SSL bindings for app's hostnames.
HostNameSslStates HostNameSslStateArrayInput
// <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>.
// If <code>true</code>, the app is only accessible via API management process.
HostNamesDisabled pulumi.BoolPtrInput
// App Service Environment to use for the app.
HostingEnvironmentProfile HostingEnvironmentProfilePtrInput
// HttpsOnly: configures a web site to accept only https requests. Issues redirect for
// http requests
HttpsOnly pulumi.BoolPtrInput
// Hyper-V sandbox.
HyperV pulumi.BoolPtrInput
// Managed service identity.
Identity ManagedServiceIdentityPtrInput
// Obsolete: Hyper-V sandbox.
IsXenon pulumi.BoolPtrInput
// Kind of resource.
Kind pulumi.StringPtrInput
// Resource Location.
Location pulumi.StringPtrInput
// Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter.
Name pulumi.StringInput
// Site redundancy mode
RedundancyMode *RedundancyMode
// <code>true</code> if reserved; otherwise, <code>false</code>.
Reserved pulumi.BoolPtrInput
// Name of the resource group to which the resource belongs.
ResourceGroupName pulumi.StringInput
// <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
ScmSiteAlsoStopped pulumi.BoolPtrInput
// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
ServerFarmId pulumi.StringPtrInput
// Configuration of the app.
SiteConfig SiteConfigPtrInput
// Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot.
Slot pulumi.StringInput
// Resource tags.
Tags pulumi.StringMapInput
}
func (WebAppSlotArgs) ElementType() reflect.Type {
return reflect.TypeOf((*webAppSlotArgs)(nil)).Elem()
}
type WebAppSlotInput interface {
pulumi.Input
ToWebAppSlotOutput() WebAppSlotOutput
ToWebAppSlotOutputWithContext(ctx context.Context) WebAppSlotOutput
}
func (*WebAppSlot) ElementType() reflect.Type {
return reflect.TypeOf((*WebAppSlot)(nil))
}
func (i *WebAppSlot) ToWebAppSlotOutput() WebAppSlotOutput {
return i.ToWebAppSlotOutputWithContext(context.Background())
}
func (i *WebAppSlot) ToWebAppSlotOutputWithContext(ctx context.Context) WebAppSlotOutput {
return pulumi.ToOutputWithContext(ctx, i).(WebAppSlotOutput)
}
type WebAppSlotOutput struct {
*pulumi.OutputState
}
func (WebAppSlotOutput) ElementType() reflect.Type {
return reflect.TypeOf((*WebAppSlot)(nil))
}
func (o WebAppSlotOutput) ToWebAppSlotOutput() WebAppSlotOutput {
return o
}
func (o WebAppSlotOutput) ToWebAppSlotOutputWithContext(ctx context.Context) WebAppSlotOutput {
return o
}
func init() {
pulumi.RegisterOutputType(WebAppSlotOutput{})
}