"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.Group = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages as an Azure Container Group instance.
 *
 * ## Example Usage
 *
 * This example provisions a Basic Container.
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleGroup = new azure.containerservice.Group("example", {
 *     name: "example-continst",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     ipAddressType: "Public",
 *     dnsNameLabel: "aci-label",
 *     osType: "Linux",
 *     containers: [
 *         {
 *             name: "hello-world",
 *             image: "mcr.microsoft.com/azuredocs/aci-helloworld:latest",
 *             cpu: 0.5,
 *             memory: 1.5,
 *             ports: [{
 *                 port: 443,
 *                 protocol: "TCP",
 *             }],
 *         },
 *         {
 *             name: "sidecar",
 *             image: "mcr.microsoft.com/azuredocs/aci-tutorial-sidecar",
 *             cpu: 0.5,
 *             memory: 1.5,
 *         },
 *     ],
 *     tags: {
 *         environment: "testing",
 *     },
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.ContainerInstance` - 2025-09-01
 *
 * ## Import
 *
 * Container Group's can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:containerservice/group:Group containerGroup1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerInstance/containerGroups/myContainerGroup1
 * ```
 */
class Group extends pulumi.CustomResource {
    /**
     * Get an existing Group 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 Group(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:containerservice/group:Group';
    /**
     * Returns true if the given object is an instance of Group.  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'] === Group.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["containers"] = state?.containers;
            resourceInputs["diagnostics"] = state?.diagnostics;
            resourceInputs["dnsConfig"] = state?.dnsConfig;
            resourceInputs["dnsNameLabel"] = state?.dnsNameLabel;
            resourceInputs["dnsNameLabelReusePolicy"] = state?.dnsNameLabelReusePolicy;
            resourceInputs["exposedPorts"] = state?.exposedPorts;
            resourceInputs["fqdn"] = state?.fqdn;
            resourceInputs["identity"] = state?.identity;
            resourceInputs["imageRegistryCredentials"] = state?.imageRegistryCredentials;
            resourceInputs["initContainers"] = state?.initContainers;
            resourceInputs["ipAddress"] = state?.ipAddress;
            resourceInputs["ipAddressType"] = state?.ipAddressType;
            resourceInputs["keyVaultKeyId"] = state?.keyVaultKeyId;
            resourceInputs["keyVaultUserAssignedIdentityId"] = state?.keyVaultUserAssignedIdentityId;
            resourceInputs["location"] = state?.location;
            resourceInputs["name"] = state?.name;
            resourceInputs["networkProfileId"] = state?.networkProfileId;
            resourceInputs["osType"] = state?.osType;
            resourceInputs["priority"] = state?.priority;
            resourceInputs["resourceGroupName"] = state?.resourceGroupName;
            resourceInputs["restartPolicy"] = state?.restartPolicy;
            resourceInputs["sku"] = state?.sku;
            resourceInputs["subnetIds"] = state?.subnetIds;
            resourceInputs["tags"] = state?.tags;
            resourceInputs["zones"] = state?.zones;
        }
        else {
            const args = argsOrState;
            if (args?.containers === undefined && !opts.urn) {
                throw new Error("Missing required property 'containers'");
            }
            if (args?.osType === undefined && !opts.urn) {
                throw new Error("Missing required property 'osType'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["containers"] = args?.containers;
            resourceInputs["diagnostics"] = args?.diagnostics;
            resourceInputs["dnsConfig"] = args?.dnsConfig;
            resourceInputs["dnsNameLabel"] = args?.dnsNameLabel;
            resourceInputs["dnsNameLabelReusePolicy"] = args?.dnsNameLabelReusePolicy;
            resourceInputs["exposedPorts"] = args?.exposedPorts;
            resourceInputs["identity"] = args?.identity;
            resourceInputs["imageRegistryCredentials"] = args?.imageRegistryCredentials;
            resourceInputs["initContainers"] = args?.initContainers;
            resourceInputs["ipAddressType"] = args?.ipAddressType;
            resourceInputs["keyVaultKeyId"] = args?.keyVaultKeyId;
            resourceInputs["keyVaultUserAssignedIdentityId"] = args?.keyVaultUserAssignedIdentityId;
            resourceInputs["location"] = args?.location;
            resourceInputs["name"] = args?.name;
            resourceInputs["networkProfileId"] = args?.networkProfileId;
            resourceInputs["osType"] = args?.osType;
            resourceInputs["priority"] = args?.priority;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["restartPolicy"] = args?.restartPolicy;
            resourceInputs["sku"] = args?.sku;
            resourceInputs["subnetIds"] = args?.subnetIds;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["zones"] = args?.zones;
            resourceInputs["fqdn"] = undefined /*out*/;
            resourceInputs["ipAddress"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Group.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Group = Group;
//# sourceMappingURL=group.js.map