import * as pulumi from "@pulumi/pulumi"; /** * Manages an Event Grid Namespace Topic. * * ## Example Usage * * ```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 exampleNamespace = new azure.eventgrid.Namespace("example", { * name: "my-eventgrid-namespace", * location: example.location, * resourceGroupName: example.name, * }); * const exampleNamespaceTopic = new azure.eventgrid.NamespaceTopic("example", { * name: "topic-namespace-example", * eventgridNamespaceId: test.id, * eventRetentionInDays: 1, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.EventGrid` - 2025-02-15 * * ## Import * * Event Grid Namespace Topics can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:eventgrid/namespaceTopic:NamespaceTopic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/namespaces/eventgrid1/topics/topic1 * ``` */ export declare 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NamespaceTopicState, opts?: pulumi.CustomResourceOptions): NamespaceTopic; /** * 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: any): obj is NamespaceTopic; /** * Event retention for the namespace topic expressed in days. Defaults to `7`. */ readonly eventRetentionInDays: pulumi.Output; /** * The ID of the Event Grid Namespace. Changing this forces a new resource to be created. */ readonly eventgridNamespaceId: pulumi.Output; /** * The name which should be used for this Event Grid Namespace Topic. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * 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: string, args: NamespaceTopicArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NamespaceTopic resources. */ export interface NamespaceTopicState { /** * Event retention for the namespace topic expressed in days. Defaults to `7`. */ eventRetentionInDays?: pulumi.Input; /** * The ID of the Event Grid Namespace. Changing this forces a new resource to be created. */ eventgridNamespaceId?: pulumi.Input; /** * The name which should be used for this Event Grid Namespace Topic. Changing this forces a new resource to be created. */ name?: pulumi.Input; } /** * The set of arguments for constructing a NamespaceTopic resource. */ export interface NamespaceTopicArgs { /** * Event retention for the namespace topic expressed in days. Defaults to `7`. */ eventRetentionInDays?: pulumi.Input; /** * The ID of the Event Grid Namespace. Changing this forces a new resource to be created. */ eventgridNamespaceId: pulumi.Input; /** * The name which should be used for this Event Grid Namespace Topic. Changing this forces a new resource to be created. */ name?: pulumi.Input; }