import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Event Grid Partner Namespace. * * ## 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 examplePartnerRegistration = new azure.eventgrid.PartnerRegistration("example", { * name: "example-partner-registration", * resourceGroupName: example.name, * }); * const examplePartnerNamespace = new azure.eventgrid.PartnerNamespace("example", { * name: "example-partner-namespace", * location: example.location, * resourceGroupName: example.name, * partnerRegistrationId: examplePartnerRegistration.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.EventGrid` - 2025-02-15 * * ## Import * * Event Grid Partner Namespaces can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:eventgrid/partnerNamespace:PartnerNamespace example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.EventGrid/partnerNamespaces/example * ``` */ export declare class PartnerNamespace extends pulumi.CustomResource { /** * Get an existing PartnerNamespace 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?: PartnerNamespaceState, opts?: pulumi.CustomResourceOptions): PartnerNamespace; /** * Returns true if the given object is an instance of PartnerNamespace. 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 PartnerNamespace; /** * The endpoint for the Event Grid Partner Namespace. */ readonly endpoint: pulumi.Output; /** * One or more `inboundIpRule` blocks as defined below. */ readonly inboundIpRules: pulumi.Output; /** * Whether local authentication methods are enabled for the Event Grid Partner Namespace. Defaults to `true`. */ readonly localAuthenticationEnabled: pulumi.Output; /** * Specifies the Azure Region where the Event Grid Partner Namespace exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this Event Grid Partner Namespace. Changing this forces a new Event Grid Partner Namespace to be created. */ readonly name: pulumi.Output; /** * The resource Id of the Event Grid Partner Registration that this namespace is associated with. Changing this forces a new Event Grid Partner Namespace to be created. */ readonly partnerRegistrationId: pulumi.Output; /** * The partner topic routing mode. Possible values are `ChannelNameHeader` and `SourceEventAttribute`. Defaults to `ChannelNameHeader`. Changing this forces a new Event Grid Partner Namespace to be created. */ readonly partnerTopicRoutingMode: pulumi.Output; /** * Whether or not public network access is allowed for this server. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. */ readonly publicNetworkAccess: pulumi.Output; /** * The name of the Resource Group where the Event Grid Partner Namespace should exist. Changing this forces a new Event Grid Partner Namespace to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags which should be assigned to the Event Grid Partner Namespace. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a PartnerNamespace 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: PartnerNamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PartnerNamespace resources. */ export interface PartnerNamespaceState { /** * The endpoint for the Event Grid Partner Namespace. */ endpoint?: pulumi.Input; /** * One or more `inboundIpRule` blocks as defined below. */ inboundIpRules?: pulumi.Input[]>; /** * Whether local authentication methods are enabled for the Event Grid Partner Namespace. Defaults to `true`. */ localAuthenticationEnabled?: pulumi.Input; /** * Specifies the Azure Region where the Event Grid Partner Namespace exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name which should be used for this Event Grid Partner Namespace. Changing this forces a new Event Grid Partner Namespace to be created. */ name?: pulumi.Input; /** * The resource Id of the Event Grid Partner Registration that this namespace is associated with. Changing this forces a new Event Grid Partner Namespace to be created. */ partnerRegistrationId?: pulumi.Input; /** * The partner topic routing mode. Possible values are `ChannelNameHeader` and `SourceEventAttribute`. Defaults to `ChannelNameHeader`. Changing this forces a new Event Grid Partner Namespace to be created. */ partnerTopicRoutingMode?: pulumi.Input; /** * Whether or not public network access is allowed for this server. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. */ publicNetworkAccess?: pulumi.Input; /** * The name of the Resource Group where the Event Grid Partner Namespace should exist. Changing this forces a new Event Grid Partner Namespace to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags which should be assigned to the Event Grid Partner Namespace. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a PartnerNamespace resource. */ export interface PartnerNamespaceArgs { /** * One or more `inboundIpRule` blocks as defined below. */ inboundIpRules?: pulumi.Input[]>; /** * Whether local authentication methods are enabled for the Event Grid Partner Namespace. Defaults to `true`. */ localAuthenticationEnabled?: pulumi.Input; /** * Specifies the Azure Region where the Event Grid Partner Namespace exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name which should be used for this Event Grid Partner Namespace. Changing this forces a new Event Grid Partner Namespace to be created. */ name?: pulumi.Input; /** * The resource Id of the Event Grid Partner Registration that this namespace is associated with. Changing this forces a new Event Grid Partner Namespace to be created. */ partnerRegistrationId: pulumi.Input; /** * The partner topic routing mode. Possible values are `ChannelNameHeader` and `SourceEventAttribute`. Defaults to `ChannelNameHeader`. Changing this forces a new Event Grid Partner Namespace to be created. */ partnerTopicRoutingMode?: pulumi.Input; /** * Whether or not public network access is allowed for this server. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. */ publicNetworkAccess?: pulumi.Input; /** * The name of the Resource Group where the Event Grid Partner Namespace should exist. Changing this forces a new Event Grid Partner Namespace to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags which should be assigned to the Event Grid Partner Namespace. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }