import * as pulumi from "@pulumi/pulumi"; /** * Manages a Queue within an Azure Storage Account. * * ## 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 exampleAccount = new azure.storage.Account("example", { * name: "examplestorageacc", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleQueue = new azure.storage.Queue("example", { * name: "mysamplequeue", * storageAccountName: exampleAccount.name, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Storage` - 2025-06-01 * * ## Import * * Storage Queue's can be imported using the `resource id`, e.g. * * If `storageAccountName` is used: * * ```sh * $ pulumi import azure:storage/queue:Queue queue1 https://example.queue.core.windows.net/queue1 * ``` * * If `storageAccountId` is used: * * ```sh * $ pulumi import azure:storage/queue:Queue queue1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount/queueServices/default/queues/queue1 * ``` */ export declare class Queue extends pulumi.CustomResource { /** * Get an existing Queue 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?: QueueState, opts?: pulumi.CustomResourceOptions): Queue; /** * Returns true if the given object is an instance of Queue. 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 Queue; /** * A mapping of MetaData which should be assigned to this Storage Queue. */ readonly metadata: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The name of the Queue which should be created within the Storage Account. Must be unique within the storage account the queue is located. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The Resource Manager ID of this Storage Queue. * * @deprecated the `resourceManagerId` property has been deprecated in favour of `id` and will be removed in version 5.0 of the Provider. */ readonly resourceManagerId: pulumi.Output; /** * The name of the Storage Account where the Storage Queue should be created. * * > **Note:** One of `storageAccountName` or `storageAccountId` must be specified. When specifying `storageAccountId` the resource will use the Resource Manager API, rather than the Data Plane API. */ readonly storageAccountId: pulumi.Output; /** * The name of the Storage Account where the Storage Queue should be created. This property is deprecated in favour of `storageAccountId`. * * > **Note:** Migrating from the deprecated `storageAccountName` to `storageAccountId` is supported without recreation. Any other change to either property will result in the resource being recreated. * * @deprecated the `storageAccountName` property has been deprecated in favour of `storageAccountId` and will be removed in version 5.0 of the Provider. */ readonly storageAccountName: pulumi.Output; /** * The data plane URL of the Storage Queue in the format of `/`. E.g. `https://example.queue.core.windows.net/queue1`. */ readonly url: pulumi.Output; /** * Create a Queue 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?: QueueArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Queue resources. */ export interface QueueState { /** * A mapping of MetaData which should be assigned to this Storage Queue. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The name of the Queue which should be created within the Storage Account. Must be unique within the storage account the queue is located. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The Resource Manager ID of this Storage Queue. * * @deprecated the `resourceManagerId` property has been deprecated in favour of `id` and will be removed in version 5.0 of the Provider. */ resourceManagerId?: pulumi.Input; /** * The name of the Storage Account where the Storage Queue should be created. * * > **Note:** One of `storageAccountName` or `storageAccountId` must be specified. When specifying `storageAccountId` the resource will use the Resource Manager API, rather than the Data Plane API. */ storageAccountId?: pulumi.Input; /** * The name of the Storage Account where the Storage Queue should be created. This property is deprecated in favour of `storageAccountId`. * * > **Note:** Migrating from the deprecated `storageAccountName` to `storageAccountId` is supported without recreation. Any other change to either property will result in the resource being recreated. * * @deprecated the `storageAccountName` property has been deprecated in favour of `storageAccountId` and will be removed in version 5.0 of the Provider. */ storageAccountName?: pulumi.Input; /** * The data plane URL of the Storage Queue in the format of `/`. E.g. `https://example.queue.core.windows.net/queue1`. */ url?: pulumi.Input; } /** * The set of arguments for constructing a Queue resource. */ export interface QueueArgs { /** * A mapping of MetaData which should be assigned to this Storage Queue. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The name of the Queue which should be created within the Storage Account. Must be unique within the storage account the queue is located. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Storage Account where the Storage Queue should be created. * * > **Note:** One of `storageAccountName` or `storageAccountId` must be specified. When specifying `storageAccountId` the resource will use the Resource Manager API, rather than the Data Plane API. */ storageAccountId?: pulumi.Input; /** * The name of the Storage Account where the Storage Queue should be created. This property is deprecated in favour of `storageAccountId`. * * > **Note:** Migrating from the deprecated `storageAccountName` to `storageAccountId` is supported without recreation. Any other change to either property will result in the resource being recreated. * * @deprecated the `storageAccountName` property has been deprecated in favour of `storageAccountId` and will be removed in version 5.0 of the Provider. */ storageAccountName?: pulumi.Input; }