"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnvironmentV3 = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages a 3rd Generation (v3) App Service Environment.
 *
 * ## Example Usage
 *
 * This example provisions an App Service Environment V3. Additional examples of how to use the `azure.appservice.EnvironmentV3` resource can be found in the `./examples/app-service-environment-v3` directory within the GitHub Repository.
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "exampleRG1",
 *     location: "West Europe",
 * });
 * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
 *     name: "example-vnet",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     addressSpaces: ["10.0.0.0/16"],
 * });
 * const exampleSubnet = new azure.network.Subnet("example", {
 *     name: "example-subnet",
 *     resourceGroupName: example.name,
 *     virtualNetworkName: exampleVirtualNetwork.name,
 *     addressPrefixes: ["10.0.2.0/24"],
 *     delegations: [{
 *         name: "Microsoft.Web.hostingEnvironments",
 *         serviceDelegation: {
 *             name: "Microsoft.Web/hostingEnvironments",
 *             actions: ["Microsoft.Network/virtualNetworks/subnets/action"],
 *         },
 *     }],
 * });
 * const exampleEnvironmentV3 = new azure.appservice.EnvironmentV3("example", {
 *     name: "example-asev3",
 *     resourceGroupName: example.name,
 *     subnetId: exampleSubnet.id,
 *     internalLoadBalancingMode: "Web, Publishing",
 *     clusterSettings: [
 *         {
 *             name: "DisableTls1.0",
 *             value: "1",
 *         },
 *         {
 *             name: "InternalEncryption",
 *             value: "true",
 *         },
 *         {
 *             name: "FrontEndSSLCipherSuiteOrder",
 *             value: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
 *         },
 *     ],
 *     tags: {
 *         env: "production",
 *         terraformed: "true",
 *     },
 * });
 * const exampleServicePlan = new azure.appservice.ServicePlan("example", {
 *     name: "example",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     osType: "Linux",
 *     skuName: "I1v2",
 *     appServiceEnvironmentId: exampleEnvironmentV3.id,
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.Network` - 2025-01-01
 *
 * * `Microsoft.Web` - 2023-01-01
 *
 * ## Import
 *
 * A 3rd Generation (v3) App Service Environment can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:appservice/environmentV3:EnvironmentV3 myAppServiceEnv /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Web/hostingEnvironments/myAppServiceEnv
 * ```
 */
class EnvironmentV3 extends pulumi.CustomResource {
    /**
     * Get an existing EnvironmentV3 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 state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new EnvironmentV3(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:appservice/environmentV3:EnvironmentV3';
    /**
     * Returns true if the given object is an instance of EnvironmentV3.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === EnvironmentV3.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["allowNewPrivateEndpointConnections"] = state?.allowNewPrivateEndpointConnections;
            resourceInputs["clusterSettings"] = state?.clusterSettings;
            resourceInputs["dedicatedHostCount"] = state?.dedicatedHostCount;
            resourceInputs["dnsSuffix"] = state?.dnsSuffix;
            resourceInputs["externalInboundIpAddresses"] = state?.externalInboundIpAddresses;
            resourceInputs["inboundNetworkDependencies"] = state?.inboundNetworkDependencies;
            resourceInputs["internalInboundIpAddresses"] = state?.internalInboundIpAddresses;
            resourceInputs["internalLoadBalancingMode"] = state?.internalLoadBalancingMode;
            resourceInputs["ipSslAddressCount"] = state?.ipSslAddressCount;
            resourceInputs["linuxOutboundIpAddresses"] = state?.linuxOutboundIpAddresses;
            resourceInputs["location"] = state?.location;
            resourceInputs["name"] = state?.name;
            resourceInputs["pricingTier"] = state?.pricingTier;
            resourceInputs["remoteDebuggingEnabled"] = state?.remoteDebuggingEnabled;
            resourceInputs["resourceGroupName"] = state?.resourceGroupName;
            resourceInputs["subnetId"] = state?.subnetId;
            resourceInputs["tags"] = state?.tags;
            resourceInputs["windowsOutboundIpAddresses"] = state?.windowsOutboundIpAddresses;
            resourceInputs["zoneRedundant"] = state?.zoneRedundant;
        }
        else {
            const args = argsOrState;
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.subnetId === undefined && !opts.urn) {
                throw new Error("Missing required property 'subnetId'");
            }
            resourceInputs["allowNewPrivateEndpointConnections"] = args?.allowNewPrivateEndpointConnections;
            resourceInputs["clusterSettings"] = args?.clusterSettings;
            resourceInputs["dedicatedHostCount"] = args?.dedicatedHostCount;
            resourceInputs["internalLoadBalancingMode"] = args?.internalLoadBalancingMode;
            resourceInputs["name"] = args?.name;
            resourceInputs["remoteDebuggingEnabled"] = args?.remoteDebuggingEnabled;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["subnetId"] = args?.subnetId;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["zoneRedundant"] = args?.zoneRedundant;
            resourceInputs["dnsSuffix"] = undefined /*out*/;
            resourceInputs["externalInboundIpAddresses"] = undefined /*out*/;
            resourceInputs["inboundNetworkDependencies"] = undefined /*out*/;
            resourceInputs["internalInboundIpAddresses"] = undefined /*out*/;
            resourceInputs["ipSslAddressCount"] = undefined /*out*/;
            resourceInputs["linuxOutboundIpAddresses"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["pricingTier"] = undefined /*out*/;
            resourceInputs["windowsOutboundIpAddresses"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(EnvironmentV3.__pulumiType, name, resourceInputs, opts);
    }
}
exports.EnvironmentV3 = EnvironmentV3;
//# sourceMappingURL=environmentV3.js.map