Queue
Latest API Version: 2019-06-01.
Example Usage
QueueOperationPut
using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;
class MyStack : Stack
{
public MyStack()
{
var queue = new AzureNextGen.Storage.Latest.Queue("queue", new AzureNextGen.Storage.Latest.QueueArgs
{
AccountName = "sto328",
QueueName = "queue6185",
ResourceGroupName = "res3376",
});
}
}
package main
import (
storage "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/storage/latest"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewQueue(ctx, "queue", &storage.QueueArgs{
AccountName: pulumi.String("sto328"),
QueueName: pulumi.String("queue6185"),
ResourceGroupName: pulumi.String("res3376"),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen
queue = azure_nextgen.storage.latest.Queue("queue",
account_name="sto328",
queue_name="queue6185",
resource_group_name="res3376")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";
const queue = new azure_nextgen.storage.latest.Queue("queue", {
accountName: "sto328",
queueName: "queue6185",
resourceGroupName: "res3376",
});
QueueOperationPutWithMetadata
using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;
class MyStack : Stack
{
public MyStack()
{
var queue = new AzureNextGen.Storage.Latest.Queue("queue", new AzureNextGen.Storage.Latest.QueueArgs
{
AccountName = "sto328",
Metadata =
{
{ "sample1", "meta1" },
{ "sample2", "meta2" },
},
QueueName = "queue6185",
ResourceGroupName = "res3376",
});
}
}
package main
import (
storage "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/storage/latest"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewQueue(ctx, "queue", &storage.QueueArgs{
AccountName: pulumi.String("sto328"),
Metadata: pulumi.StringMap{
"sample1": pulumi.String("meta1"),
"sample2": pulumi.String("meta2"),
},
QueueName: pulumi.String("queue6185"),
ResourceGroupName: pulumi.String("res3376"),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen
queue = azure_nextgen.storage.latest.Queue("queue",
account_name="sto328",
metadata={
"sample1": "meta1",
"sample2": "meta2",
},
queue_name="queue6185",
resource_group_name="res3376")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";
const queue = new azure_nextgen.storage.latest.Queue("queue", {
accountName: "sto328",
metadata: {
sample1: "meta1",
sample2: "meta2",
},
queueName: "queue6185",
resourceGroupName: "res3376",
});
Create a Queue Resource
new Queue(name: string, args: QueueArgs, opts?: CustomResourceOptions);
def Queue(resource_name: str, opts: Optional[ResourceOptions] = None, account_name: Optional[str] = None, metadata: Optional[Mapping[str, str]] = None, queue_name: Optional[str] = None, resource_group_name: Optional[str] = None)
func NewQueue(ctx *Context, name string, args QueueArgs, opts ...ResourceOption) (*Queue, error)
public Queue(string name, QueueArgs args, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Queue Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Queue resource accepts the following input properties:
- Account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- Queue
Name string - A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
- Resource
Group stringName - The name of the resource group within the user’s subscription. The name is case insensitive.
- Metadata Dictionary<string, string>
- A name-value pair that represents queue metadata.
- Account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- Queue
Name string - A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
- Resource
Group stringName - The name of the resource group within the user’s subscription. The name is case insensitive.
- Metadata map[string]string
- A name-value pair that represents queue metadata.
- account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- queue
Name string - A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
- resource
Group stringName - The name of the resource group within the user’s subscription. The name is case insensitive.
- metadata {[key: string]: string}
- A name-value pair that represents queue metadata.
- account_
name str - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- queue_
name str - A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
- resource_
group_ strname - The name of the resource group within the user’s subscription. The name is case insensitive.
- metadata Mapping[str, str]
- A name-value pair that represents queue metadata.
Outputs
All input properties are implicitly available as output properties. Additionally, the Queue resource produces the following output properties:
- Approximate
Message intCount - Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Type string
- The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
- Approximate
Message intCount - Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Type string
- The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
- approximate
Message numberCount - Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- type string
- The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
- approximate_
message_ intcount - Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- type str
- The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-nextgen:storage/latest:Queue queue6185 /subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure-nextgen
- License
- Apache-2.0