"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.NamespaceTopic = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Namespace topic details.
 *
 * Uses Azure REST API version 2025-02-15. In version 2.x of the Azure Native provider, it used API version 2023-06-01-preview.
 *
 * Other available API versions: 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native eventgrid [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class NamespaceTopic extends pulumi.CustomResource {
    /**
     * Get an existing NamespaceTopic 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 NamespaceTopic(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of NamespaceTopic.  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'] === NamespaceTopic.__pulumiType;
    }
    /**
     * Create a NamespaceTopic 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?.namespaceName === undefined && !opts.urn) {
                throw new Error("Missing required property 'namespaceName'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["eventRetentionInDays"] = args?.eventRetentionInDays;
            resourceInputs["inputSchema"] = (args?.inputSchema) ?? "CloudEventSchemaV1_0";
            resourceInputs["namespaceName"] = args?.namespaceName;
            resourceInputs["publisherType"] = args?.publisherType;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["topicName"] = args?.topicName;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["eventRetentionInDays"] = undefined /*out*/;
            resourceInputs["inputSchema"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["publisherType"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:eventgrid/v20230601preview:NamespaceTopic" }, { type: "azure-native:eventgrid/v20231215preview:NamespaceTopic" }, { type: "azure-native:eventgrid/v20240601preview:NamespaceTopic" }, { type: "azure-native:eventgrid/v20241215preview:NamespaceTopic" }, { type: "azure-native:eventgrid/v20250215:NamespaceTopic" }, { type: "azure-native:eventgrid/v20250401preview:NamespaceTopic" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(NamespaceTopic.__pulumiType, name, resourceInputs, opts);
    }
}
exports.NamespaceTopic = NamespaceTopic;
/** @internal */
NamespaceTopic.__pulumiType = 'azure-native:eventgrid:NamespaceTopic';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmFtZXNwYWNlVG9waWMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9ldmVudGdyaWQvbmFtZXNwYWNlVG9waWMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHNFQUFzRTtBQUN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