"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! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommunicationsGateway = void 0;
const pulumi = require("@pulumi/pulumi");
const inputs = require("../types/input");
const utilities = require("../utilities");
/**
 * A CommunicationsGateway resource
 *
 * Uses Azure REST API version 2023-09-01. In version 2.x of the Azure Native provider, it used API version 2023-04-03.
 *
 * Other available API versions: 2022-12-01-preview, 2023-01-31, 2023-04-03. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native voiceservices [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class CommunicationsGateway extends pulumi.CustomResource {
    /**
     * Get an existing CommunicationsGateway 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 opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new CommunicationsGateway(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of CommunicationsGateway.  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'] === CommunicationsGateway.__pulumiType;
    }
    /**
     * Create a CommunicationsGateway resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if (args?.codecs === undefined && !opts.urn) {
                throw new Error("Missing required property 'codecs'");
            }
            if (args?.connectivity === undefined && !opts.urn) {
                throw new Error("Missing required property 'connectivity'");
            }
            if (args?.e911Type === undefined && !opts.urn) {
                throw new Error("Missing required property 'e911Type'");
            }
            if (args?.platforms === undefined && !opts.urn) {
                throw new Error("Missing required property 'platforms'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.serviceLocations === undefined && !opts.urn) {
                throw new Error("Missing required property 'serviceLocations'");
            }
            resourceInputs["apiBridge"] = args ? (args.apiBridge ? pulumi.output(args.apiBridge).apply(inputs.voiceservices.apiBridgePropertiesArgsProvideDefaults) : undefined) : undefined;
            resourceInputs["autoGeneratedDomainNameLabelScope"] = (args?.autoGeneratedDomainNameLabelScope) ?? "TenantReuse";
            resourceInputs["codecs"] = args?.codecs;
            resourceInputs["communicationsGatewayName"] = args?.communicationsGatewayName;
            resourceInputs["connectivity"] = args?.connectivity;
            resourceInputs["customSipHeaders"] = args?.customSipHeaders;
            resourceInputs["dnsDelegations"] = args?.dnsDelegations;
            resourceInputs["e911Type"] = args?.e911Type;
            resourceInputs["emergencyDialStrings"] = args?.emergencyDialStrings;
            resourceInputs["identity"] = args?.identity;
            resourceInputs["integratedMcpEnabled"] = (args?.integratedMcpEnabled) ?? false;
            resourceInputs["location"] = args?.location;
            resourceInputs["onPremMcpEnabled"] = (args?.onPremMcpEnabled) ?? false;
            resourceInputs["platforms"] = args?.platforms;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["serviceLocations"] = args?.serviceLocations;
            resourceInputs["sku"] = args?.sku;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["teamsVoicemailPilotNumber"] = args?.teamsVoicemailPilotNumber;
            resourceInputs["allocatedMediaAddressPrefixes"] = undefined /*out*/;
            resourceInputs["allocatedSignalingAddressPrefixes"] = undefined /*out*/;
            resourceInputs["autoGeneratedDomainNameLabel"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["allocatedMediaAddressPrefixes"] = undefined /*out*/;
            resourceInputs["allocatedSignalingAddressPrefixes"] = undefined /*out*/;
            resourceInputs["apiBridge"] = undefined /*out*/;
            resourceInputs["autoGeneratedDomainNameLabel"] = undefined /*out*/;
            resourceInputs["autoGeneratedDomainNameLabelScope"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["codecs"] = undefined /*out*/;
            resourceInputs["connectivity"] = undefined /*out*/;
            resourceInputs["customSipHeaders"] = undefined /*out*/;
            resourceInputs["dnsDelegations"] = undefined /*out*/;
            resourceInputs["e911Type"] = undefined /*out*/;
            resourceInputs["emergencyDialStrings"] = undefined /*out*/;
            resourceInputs["identity"] = undefined /*out*/;
            resourceInputs["integratedMcpEnabled"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["onPremMcpEnabled"] = undefined /*out*/;
            resourceInputs["platforms"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["serviceLocations"] = undefined /*out*/;
            resourceInputs["sku"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["teamsVoicemailPilotNumber"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:voiceservices/v20221201preview:CommunicationsGateway" }, { type: "azure-native:voiceservices/v20230131:CommunicationsGateway" }, { type: "azure-native:voiceservices/v20230403:CommunicationsGateway" }, { type: "azure-native:voiceservices/v20230901:CommunicationsGateway" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(CommunicationsGateway.__pulumiType, name, resourceInputs, opts);
    }
}
exports.CommunicationsGateway = CommunicationsGateway;
/** @internal */
CommunicationsGateway.__pulumiType = 'azure-native:voiceservices:CommunicationsGateway';
//# sourceMappingURL=data:application/json;base64, 