com.pulumi.azurenative.web.WebApp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.web;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.web.WebAppArgs;
import com.pulumi.azurenative.web.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.web.outputs.HostNameSslStateResponse;
import com.pulumi.azurenative.web.outputs.HostingEnvironmentProfileResponse;
import com.pulumi.azurenative.web.outputs.ManagedServiceIdentityResponse;
import com.pulumi.azurenative.web.outputs.SiteConfigResponse;
import com.pulumi.azurenative.web.outputs.SlotSwapStatusResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* A web app, a mobile app backend, or an API app.
* Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-12-01.
*
* Other available API versions: 2016-08-01, 2018-11-01, 2020-10-01, 2023-01-01, 2023-12-01, 2024-04-01.
*
* ## Example Usage
* ### Clone web app
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.web.WebApp;
* import com.pulumi.azurenative.web.WebAppArgs;
* import com.pulumi.azurenative.web.inputs.CloningInfoArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var webApp = new WebApp("webApp", WebAppArgs.builder()
* .cloningInfo(CloningInfoArgs.builder()
* .appSettingsOverrides(Map.ofEntries(
* Map.entry("Setting1", "NewValue1"),
* Map.entry("Setting3", "NewValue5")
* ))
* .cloneCustomHostNames(true)
* .cloneSourceControl(true)
* .configureLoadBalancing(false)
* .hostingEnvironment("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites")
* .overwrite(false)
* .sourceWebAppId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478")
* .sourceWebAppLocation("West Europe")
* .build())
* .kind("app")
* .location("East US")
* .name("sitef6141")
* .resourceGroupName("testrg123")
* .build());
*
* }
* }
*
* }
*
* ### Create or Update web app
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.web.WebApp;
* import com.pulumi.azurenative.web.WebAppArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var webApp = new WebApp("webApp", WebAppArgs.builder()
* .kind("app")
* .location("East US")
* .name("sitef6141")
* .resourceGroupName("testrg123")
* .serverFarmId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:web:WebApp sitef6141 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}
* ```
*
*/
@ResourceType(type="azure-native:web:WebApp")
public class WebApp extends com.pulumi.resources.CustomResource {
/**
* Management information availability state for the app.
*
*/
@Export(name="availabilityState", refs={String.class}, tree="[0]")
private Output availabilityState;
/**
* @return Management information availability state for the app.
*
*/
public Output availabilityState() {
return this.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>.
*
*/
@Export(name="clientAffinityEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> clientAffinityEnabled;
/**
* @return <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>.
*
*/
public Output> clientAffinityEnabled() {
return Codegen.optional(this.clientAffinityEnabled);
}
/**
* <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
*
*/
@Export(name="clientCertEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> clientCertEnabled;
/**
* @return <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>.
*
*/
public Output> clientCertEnabled() {
return Codegen.optional(this.clientCertEnabled);
}
/**
* client certificate authentication comma-separated exclusion paths
*
*/
@Export(name="clientCertExclusionPaths", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> clientCertExclusionPaths;
/**
* @return client certificate authentication comma-separated exclusion paths
*
*/
public Output> clientCertExclusionPaths() {
return Codegen.optional(this.clientCertExclusionPaths);
}
/**
* This composes with ClientCertEnabled setting.
* - ClientCertEnabled: false means ClientCert is ignored.
* - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.
* - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted.
*
*/
@Export(name="clientCertMode", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> clientCertMode;
/**
* @return This composes with ClientCertEnabled setting.
* - ClientCertEnabled: false means ClientCert is ignored.
* - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.
* - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted.
*
*/
public Output> clientCertMode() {
return Codegen.optional(this.clientCertMode);
}
/**
* Size of the function container.
*
*/
@Export(name="containerSize", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> containerSize;
/**
* @return Size of the function container.
*
*/
public Output> containerSize() {
return Codegen.optional(this.containerSize);
}
/**
* Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification.
*
*/
@Export(name="customDomainVerificationId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> customDomainVerificationId;
/**
* @return Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification.
*
*/
public Output> customDomainVerificationId() {
return Codegen.optional(this.customDomainVerificationId);
}
/**
* Maximum allowed daily memory-time quota (applicable on dynamic apps only).
*
*/
@Export(name="dailyMemoryTimeQuota", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> dailyMemoryTimeQuota;
/**
* @return Maximum allowed daily memory-time quota (applicable on dynamic apps only).
*
*/
public Output> dailyMemoryTimeQuota() {
return Codegen.optional(this.dailyMemoryTimeQuota);
}
/**
* Default hostname of the app. Read-only.
*
*/
@Export(name="defaultHostName", refs={String.class}, tree="[0]")
private Output defaultHostName;
/**
* @return Default hostname of the app. Read-only.
*
*/
public Output defaultHostName() {
return this.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).
*
*/
@Export(name="enabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> enabled;
/**
* @return <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline).
*
*/
public Output> enabled() {
return Codegen.optional(this.enabled);
}
/**
* Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise,
* the app is not served on those hostnames.
*
*/
@Export(name="enabledHostNames", refs={List.class,String.class}, tree="[0,1]")
private Output> enabledHostNames;
/**
* @return Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise,
* the app is not served on those hostnames.
*
*/
public Output> enabledHostNames() {
return this.enabledHostNames;
}
/**
* Extended Location.
*
*/
@Export(name="extendedLocation", refs={ExtendedLocationResponse.class}, tree="[0]")
private Output* @Nullable */ ExtendedLocationResponse> extendedLocation;
/**
* @return Extended Location.
*
*/
public Output> extendedLocation() {
return Codegen.optional(this.extendedLocation);
}
/**
* Hostname SSL states are used to manage the SSL bindings for app's hostnames.
*
*/
@Export(name="hostNameSslStates", refs={List.class,HostNameSslStateResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> hostNameSslStates;
/**
* @return Hostname SSL states are used to manage the SSL bindings for app's hostnames.
*
*/
public Output>> hostNameSslStates() {
return Codegen.optional(this.hostNameSslStates);
}
/**
* Hostnames associated with the app.
*
*/
@Export(name="hostNames", refs={List.class,String.class}, tree="[0,1]")
private Output> hostNames;
/**
* @return Hostnames associated with the app.
*
*/
public Output> hostNames() {
return this.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.
*
*/
@Export(name="hostNamesDisabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> hostNamesDisabled;
/**
* @return <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.
*
*/
public Output> hostNamesDisabled() {
return Codegen.optional(this.hostNamesDisabled);
}
/**
* App Service Environment to use for the app.
*
*/
@Export(name="hostingEnvironmentProfile", refs={HostingEnvironmentProfileResponse.class}, tree="[0]")
private Output* @Nullable */ HostingEnvironmentProfileResponse> hostingEnvironmentProfile;
/**
* @return App Service Environment to use for the app.
*
*/
public Output> hostingEnvironmentProfile() {
return Codegen.optional(this.hostingEnvironmentProfile);
}
/**
* HttpsOnly: configures a web site to accept only https requests. Issues redirect for
* http requests
*
*/
@Export(name="httpsOnly", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> httpsOnly;
/**
* @return HttpsOnly: configures a web site to accept only https requests. Issues redirect for
* http requests
*
*/
public Output> httpsOnly() {
return Codegen.optional(this.httpsOnly);
}
/**
* Hyper-V sandbox.
*
*/
@Export(name="hyperV", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> hyperV;
/**
* @return Hyper-V sandbox.
*
*/
public Output> hyperV() {
return Codegen.optional(this.hyperV);
}
/**
* Managed service identity.
*
*/
@Export(name="identity", refs={ManagedServiceIdentityResponse.class}, tree="[0]")
private Output* @Nullable */ ManagedServiceIdentityResponse> identity;
/**
* @return Managed service identity.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* Specifies an operation id if this site has a pending operation.
*
*/
@Export(name="inProgressOperationId", refs={String.class}, tree="[0]")
private Output inProgressOperationId;
/**
* @return Specifies an operation id if this site has a pending operation.
*
*/
public Output inProgressOperationId() {
return this.inProgressOperationId;
}
/**
* <code>true</code> if the app is a default container; otherwise, <code>false</code>.
*
*/
@Export(name="isDefaultContainer", refs={Boolean.class}, tree="[0]")
private Output isDefaultContainer;
/**
* @return <code>true</code> if the app is a default container; otherwise, <code>false</code>.
*
*/
public Output isDefaultContainer() {
return this.isDefaultContainer;
}
/**
* Obsolete: Hyper-V sandbox.
*
*/
@Export(name="isXenon", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> isXenon;
/**
* @return Obsolete: Hyper-V sandbox.
*
*/
public Output> isXenon() {
return Codegen.optional(this.isXenon);
}
/**
* Identity to use for Key Vault Reference authentication.
*
*/
@Export(name="keyVaultReferenceIdentity", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> keyVaultReferenceIdentity;
/**
* @return Identity to use for Key Vault Reference authentication.
*
*/
public Output> keyVaultReferenceIdentity() {
return Codegen.optional(this.keyVaultReferenceIdentity);
}
/**
* Kind of resource.
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> kind;
/**
* @return Kind of resource.
*
*/
public Output> kind() {
return Codegen.optional(this.kind);
}
/**
* Last time the app was modified, in UTC. Read-only.
*
*/
@Export(name="lastModifiedTimeUtc", refs={String.class}, tree="[0]")
private Output lastModifiedTimeUtc;
/**
* @return Last time the app was modified, in UTC. Read-only.
*
*/
public Output lastModifiedTimeUtc() {
return this.lastModifiedTimeUtc;
}
/**
* Resource Location.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Resource Location.
*
*/
public Output location() {
return this.location;
}
/**
* Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}
*
*/
@Export(name="managedEnvironmentId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> managedEnvironmentId;
/**
* @return Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}
*
*/
public Output> managedEnvironmentId() {
return Codegen.optional(this.managedEnvironmentId);
}
/**
* Maximum number of workers.
* This only applies to Functions container.
*
*/
@Export(name="maxNumberOfWorkers", refs={Integer.class}, tree="[0]")
private Output maxNumberOfWorkers;
/**
* @return Maximum number of workers.
* This only applies to Functions container.
*
*/
public Output maxNumberOfWorkers() {
return this.maxNumberOfWorkers;
}
/**
* Resource Name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource Name.
*
*/
public Output name() {
return this.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.
*
*/
@Export(name="outboundIpAddresses", refs={String.class}, tree="[0]")
private Output outboundIpAddresses;
/**
* @return 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.
*
*/
public Output outboundIpAddresses() {
return this.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.
*
*/
@Export(name="possibleOutboundIpAddresses", refs={String.class}, tree="[0]")
private Output possibleOutboundIpAddresses;
/**
* @return List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only.
*
*/
public Output possibleOutboundIpAddresses() {
return this.possibleOutboundIpAddresses;
}
/**
* Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.
*
*/
@Export(name="publicNetworkAccess", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> publicNetworkAccess;
/**
* @return Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.
*
*/
public Output> publicNetworkAccess() {
return Codegen.optional(this.publicNetworkAccess);
}
/**
* Site redundancy mode
*
*/
@Export(name="redundancyMode", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> redundancyMode;
/**
* @return Site redundancy mode
*
*/
public Output> redundancyMode() {
return Codegen.optional(this.redundancyMode);
}
/**
* Name of the repository site.
*
*/
@Export(name="repositorySiteName", refs={String.class}, tree="[0]")
private Output repositorySiteName;
/**
* @return Name of the repository site.
*
*/
public Output repositorySiteName() {
return this.repositorySiteName;
}
/**
* <code>true</code> if reserved; otherwise, <code>false</code>.
*
*/
@Export(name="reserved", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> reserved;
/**
* @return <code>true</code> if reserved; otherwise, <code>false</code>.
*
*/
public Output> reserved() {
return Codegen.optional(this.reserved);
}
/**
* Name of the resource group the app belongs to. Read-only.
*
*/
@Export(name="resourceGroup", refs={String.class}, tree="[0]")
private Output resourceGroup;
/**
* @return Name of the resource group the app belongs to. Read-only.
*
*/
public Output resourceGroup() {
return this.resourceGroup;
}
/**
* <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
*
*/
@Export(name="scmSiteAlsoStopped", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> scmSiteAlsoStopped;
/**
* @return <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>.
*
*/
public Output> scmSiteAlsoStopped() {
return Codegen.optional(this.scmSiteAlsoStopped);
}
/**
* Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*
*/
@Export(name="serverFarmId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> serverFarmId;
/**
* @return Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*
*/
public Output> serverFarmId() {
return Codegen.optional(this.serverFarmId);
}
/**
* Configuration of the app.
*
*/
@Export(name="siteConfig", refs={SiteConfigResponse.class}, tree="[0]")
private Output* @Nullable */ SiteConfigResponse> siteConfig;
/**
* @return Configuration of the app.
*
*/
public Output> siteConfig() {
return Codegen.optional(this.siteConfig);
}
/**
* Status of the last deployment slot swap operation.
*
*/
@Export(name="slotSwapStatus", refs={SlotSwapStatusResponse.class}, tree="[0]")
private Output slotSwapStatus;
/**
* @return Status of the last deployment slot swap operation.
*
*/
public Output slotSwapStatus() {
return this.slotSwapStatus;
}
/**
* Current state of the app.
*
*/
@Export(name="state", refs={String.class}, tree="[0]")
private Output state;
/**
* @return Current state of the app.
*
*/
public Output state() {
return this.state;
}
/**
* Checks if Customer provided storage account is required
*
*/
@Export(name="storageAccountRequired", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> storageAccountRequired;
/**
* @return Checks if Customer provided storage account is required
*
*/
public Output> storageAccountRequired() {
return Codegen.optional(this.storageAccountRequired);
}
/**
* App suspended till in case memory-time quota is exceeded.
*
*/
@Export(name="suspendedTill", refs={String.class}, tree="[0]")
private Output suspendedTill;
/**
* @return App suspended till in case memory-time quota is exceeded.
*
*/
public Output suspendedTill() {
return this.suspendedTill;
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Specifies which deployment slot this app will swap into. Read-only.
*
*/
@Export(name="targetSwapSlot", refs={String.class}, tree="[0]")
private Output targetSwapSlot;
/**
* @return Specifies which deployment slot this app will swap into. Read-only.
*
*/
public Output targetSwapSlot() {
return this.targetSwapSlot;
}
/**
* Azure Traffic Manager hostnames associated with the app. Read-only.
*
*/
@Export(name="trafficManagerHostNames", refs={List.class,String.class}, tree="[0,1]")
private Output> trafficManagerHostNames;
/**
* @return Azure Traffic Manager hostnames associated with the app. Read-only.
*
*/
public Output> trafficManagerHostNames() {
return this.trafficManagerHostNames;
}
/**
* Resource type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Resource type.
*
*/
public Output type() {
return this.type;
}
/**
* State indicating whether the app has exceeded its quota usage. Read-only.
*
*/
@Export(name="usageState", refs={String.class}, tree="[0]")
private Output usageState;
/**
* @return State indicating whether the app has exceeded its quota usage. Read-only.
*
*/
public Output usageState() {
return this.usageState;
}
/**
* Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.
* This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
*
*/
@Export(name="virtualNetworkSubnetId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> virtualNetworkSubnetId;
/**
* @return Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.
* This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
*
*/
public Output> virtualNetworkSubnetId() {
return Codegen.optional(this.virtualNetworkSubnetId);
}
/**
* To enable accessing content over virtual network
*
*/
@Export(name="vnetContentShareEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> vnetContentShareEnabled;
/**
* @return To enable accessing content over virtual network
*
*/
public Output> vnetContentShareEnabled() {
return Codegen.optional(this.vnetContentShareEnabled);
}
/**
* To enable pulling image over Virtual Network
*
*/
@Export(name="vnetImagePullEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> vnetImagePullEnabled;
/**
* @return To enable pulling image over Virtual Network
*
*/
public Output> vnetImagePullEnabled() {
return Codegen.optional(this.vnetImagePullEnabled);
}
/**
* Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.
*
*/
@Export(name="vnetRouteAllEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> vnetRouteAllEnabled;
/**
* @return Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.
*
*/
public Output> vnetRouteAllEnabled() {
return Codegen.optional(this.vnetRouteAllEnabled);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public WebApp(java.lang.String name) {
this(name, WebAppArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public WebApp(java.lang.String name, WebAppArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public WebApp(java.lang.String name, WebAppArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:web:WebApp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private WebApp(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:web:WebApp", name, null, makeResourceOptions(options, id), false);
}
private static WebAppArgs makeArgs(WebAppArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? WebAppArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:web/v20150801:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20160801:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20180201:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20181101:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20190801:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20200601:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20200901:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20201001:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20201201:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20210101:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20210115:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20210201:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20210301:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20220301:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20220901:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20230101:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20231201:WebApp").build()),
Output.of(Alias.builder().type("azure-native:web/v20240401:WebApp").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static WebApp get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new WebApp(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy