import * as pulumi from "@pulumi/pulumi"; /** * Manages a Digital Twins Service Bus Endpoint. * * ## 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 exampleInstance = new azure.digitaltwins.Instance("example", { * name: "example-DT", * resourceGroupName: example.name, * location: example.location, * }); * const exampleNamespace = new azure.servicebus.Namespace("example", { * name: "exampleservicebusnamespace", * location: example.location, * resourceGroupName: example.name, * sku: "Standard", * }); * const exampleTopic = new azure.servicebus.Topic("example", { * name: "exampleservicebustopic", * namespaceId: exampleNamespace.id, * }); * const exampleTopicAuthorizationRule = new azure.servicebus.TopicAuthorizationRule("example", { * name: "example-rule", * topicId: exampleTopic.id, * listen: false, * send: true, * manage: false, * }); * const exampleEndpointServicebus = new azure.digitaltwins.EndpointServicebus("example", { * name: "example-EndpointSB", * digitalTwinsId: exampleInstance.id, * servicebusPrimaryConnectionString: exampleTopicAuthorizationRule.primaryConnectionString, * servicebusSecondaryConnectionString: exampleTopicAuthorizationRule.secondaryConnectionString, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DigitalTwins` - 2023-01-31 * * ## Import * * Digital Twins Service Bus Endpoints can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:digitaltwins/endpointServicebus:EndpointServicebus example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1/endpoints/ep1 * ``` */ export declare class EndpointServicebus extends pulumi.CustomResource { /** * Get an existing EndpointServicebus 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?: EndpointServicebusState, opts?: pulumi.CustomResourceOptions): EndpointServicebus; /** * Returns true if the given object is an instance of EndpointServicebus. 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 EndpointServicebus; /** * The storage secret of the dead-lettering, whose format is `https://.blob.core.windows.net/?`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. */ readonly deadLetterStorageSecret: pulumi.Output; /** * The ID of the Digital Twins Instance. Changing this forces a new Digital Twins Service Bus Endpoint to be created. */ readonly digitalTwinsId: pulumi.Output; /** * The name which should be used for this Digital Twins Service Bus Endpoint. Changing this forces a new Digital Twins Service Bus Endpoint to be created. */ readonly name: pulumi.Output; /** * The primary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. . */ readonly servicebusPrimaryConnectionString: pulumi.Output; /** * The secondary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. */ readonly servicebusSecondaryConnectionString: pulumi.Output; /** * Create a EndpointServicebus 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: EndpointServicebusArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EndpointServicebus resources. */ export interface EndpointServicebusState { /** * The storage secret of the dead-lettering, whose format is `https://.blob.core.windows.net/?`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. */ deadLetterStorageSecret?: pulumi.Input; /** * The ID of the Digital Twins Instance. Changing this forces a new Digital Twins Service Bus Endpoint to be created. */ digitalTwinsId?: pulumi.Input; /** * The name which should be used for this Digital Twins Service Bus Endpoint. Changing this forces a new Digital Twins Service Bus Endpoint to be created. */ name?: pulumi.Input; /** * The primary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. . */ servicebusPrimaryConnectionString?: pulumi.Input; /** * The secondary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. */ servicebusSecondaryConnectionString?: pulumi.Input; } /** * The set of arguments for constructing a EndpointServicebus resource. */ export interface EndpointServicebusArgs { /** * The storage secret of the dead-lettering, whose format is `https://.blob.core.windows.net/?`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. */ deadLetterStorageSecret?: pulumi.Input; /** * The ID of the Digital Twins Instance. Changing this forces a new Digital Twins Service Bus Endpoint to be created. */ digitalTwinsId: pulumi.Input; /** * The name which should be used for this Digital Twins Service Bus Endpoint. Changing this forces a new Digital Twins Service Bus Endpoint to be created. */ name?: pulumi.Input; /** * The primary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. . */ servicebusPrimaryConnectionString: pulumi.Input; /** * The secondary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. */ servicebusSecondaryConnectionString: pulumi.Input; }