"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.SpringCloudContainerDeployment = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages a Spring Cloud Container Deployment.
 *
 * !> **Note:** Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the `azure.appplatform.SpringCloudContainerDeployment` resource is deprecated and will be removed in a future major version of the AzureRM Provider. See https://aka.ms/asaretirement for more information.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example",
 *     location: "West Europe",
 * });
 * const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
 *     name: "example",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     skuName: "E0",
 * });
 * const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", {
 *     name: "example",
 *     resourceGroupName: exampleSpringCloudService.resourceGroupName,
 *     serviceName: exampleSpringCloudService.name,
 * });
 * const exampleSpringCloudContainerDeployment = new azure.appplatform.SpringCloudContainerDeployment("example", {
 *     name: "example",
 *     springCloudAppId: exampleSpringCloudApp.id,
 *     instanceCount: 2,
 *     arguments: [
 *         "-cp",
 *         "/app/resources:/app/classes:/app/libs/*",
 *         "hello.Application",
 *     ],
 *     commands: ["java"],
 *     environmentVariables: {
 *         Foo: "Bar",
 *         Env: "Staging",
 *     },
 *     server: "docker.io",
 *     image: "springio/gs-spring-boot-docker",
 *     languageFramework: "springboot",
 * });
 * ```
 *
 * ## Import
 *
 * Spring Cloud Container Deployments can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:appplatform/springCloudContainerDeployment:SpringCloudContainerDeployment example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/spring/spring1/apps/app1/deployments/deploy1
 * ```
 */
class SpringCloudContainerDeployment extends pulumi.CustomResource {
    /**
     * Get an existing SpringCloudContainerDeployment 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 SpringCloudContainerDeployment(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:appplatform/springCloudContainerDeployment:SpringCloudContainerDeployment';
    /**
     * Returns true if the given object is an instance of SpringCloudContainerDeployment.  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'] === SpringCloudContainerDeployment.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["addonJson"] = state?.addonJson;
            resourceInputs["applicationPerformanceMonitoringIds"] = state?.applicationPerformanceMonitoringIds;
            resourceInputs["arguments"] = state?.arguments;
            resourceInputs["commands"] = state?.commands;
            resourceInputs["environmentVariables"] = state?.environmentVariables;
            resourceInputs["image"] = state?.image;
            resourceInputs["instanceCount"] = state?.instanceCount;
            resourceInputs["languageFramework"] = state?.languageFramework;
            resourceInputs["name"] = state?.name;
            resourceInputs["quota"] = state?.quota;
            resourceInputs["server"] = state?.server;
            resourceInputs["springCloudAppId"] = state?.springCloudAppId;
        }
        else {
            const args = argsOrState;
            if (args?.image === undefined && !opts.urn) {
                throw new Error("Missing required property 'image'");
            }
            if (args?.server === undefined && !opts.urn) {
                throw new Error("Missing required property 'server'");
            }
            if (args?.springCloudAppId === undefined && !opts.urn) {
                throw new Error("Missing required property 'springCloudAppId'");
            }
            resourceInputs["addonJson"] = args?.addonJson;
            resourceInputs["applicationPerformanceMonitoringIds"] = args?.applicationPerformanceMonitoringIds;
            resourceInputs["arguments"] = args?.arguments;
            resourceInputs["commands"] = args?.commands;
            resourceInputs["environmentVariables"] = args?.environmentVariables;
            resourceInputs["image"] = args?.image;
            resourceInputs["instanceCount"] = args?.instanceCount;
            resourceInputs["languageFramework"] = args?.languageFramework;
            resourceInputs["name"] = args?.name;
            resourceInputs["quota"] = args?.quota;
            resourceInputs["server"] = args?.server;
            resourceInputs["springCloudAppId"] = args?.springCloudAppId;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(SpringCloudContainerDeployment.__pulumiType, name, resourceInputs, opts);
    }
}
exports.SpringCloudContainerDeployment = SpringCloudContainerDeployment;
//# sourceMappingURL=springCloudContainerDeployment.js.map