We recommend using Azure Native.
azure.storage.AccountQueueProperties
Explore with Pulumi AI
Manages the Queue Properties of an Azure Storage Account.
Example Usage
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: "storageaccountname",
resourceGroupName: example.name,
location: example.location,
accountTier: "Standard",
accountReplicationType: "GRS",
tags: {
environment: "staging",
},
});
const exampleAccountQueueProperties = new azure.storage.AccountQueueProperties("example", {
storageAccountId: exampleAccount.id,
corsRules: [{
allowedOrigins: ["http://www.example.com"],
exposedHeaders: ["x-tempo-*"],
allowedHeaders: ["x-tempo-*"],
allowedMethods: [
"GET",
"PUT",
],
maxAgeInSeconds: 500,
}],
logging: {
version: "1.0",
"delete": true,
read: true,
write: true,
retentionPolicyDays: 7,
},
hourMetrics: {
version: "1.0",
retentionPolicyDays: 7,
},
minuteMetrics: {
version: "1.0",
retentionPolicyDays: 7,
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_account = azure.storage.Account("example",
name="storageaccountname",
resource_group_name=example.name,
location=example.location,
account_tier="Standard",
account_replication_type="GRS",
tags={
"environment": "staging",
})
example_account_queue_properties = azure.storage.AccountQueueProperties("example",
storage_account_id=example_account.id,
cors_rules=[{
"allowed_origins": ["http://www.example.com"],
"exposed_headers": ["x-tempo-*"],
"allowed_headers": ["x-tempo-*"],
"allowed_methods": [
"GET",
"PUT",
],
"max_age_in_seconds": 500,
}],
logging={
"version": "1.0",
"delete": True,
"read": True,
"write": True,
"retention_policy_days": 7,
},
hour_metrics={
"version": "1.0",
"retention_policy_days": 7,
},
minute_metrics={
"version": "1.0",
"retention_policy_days": 7,
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
Name: pulumi.String("storageaccountname"),
ResourceGroupName: example.Name,
Location: example.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("GRS"),
Tags: pulumi.StringMap{
"environment": pulumi.String("staging"),
},
})
if err != nil {
return err
}
_, err = storage.NewAccountQueueProperties(ctx, "example", &storage.AccountQueuePropertiesArgs{
StorageAccountId: exampleAccount.ID(),
CorsRules: storage.AccountQueuePropertiesCorsRuleArray{
&storage.AccountQueuePropertiesCorsRuleArgs{
AllowedOrigins: pulumi.StringArray{
pulumi.String("http://www.example.com"),
},
ExposedHeaders: pulumi.StringArray{
pulumi.String("x-tempo-*"),
},
AllowedHeaders: pulumi.StringArray{
pulumi.String("x-tempo-*"),
},
AllowedMethods: pulumi.StringArray{
pulumi.String("GET"),
pulumi.String("PUT"),
},
MaxAgeInSeconds: pulumi.Int(500),
},
},
Logging: &storage.AccountQueuePropertiesLoggingArgs{
Version: pulumi.String("1.0"),
Delete: pulumi.Bool(true),
Read: pulumi.Bool(true),
Write: pulumi.Bool(true),
RetentionPolicyDays: pulumi.Int(7),
},
HourMetrics: &storage.AccountQueuePropertiesHourMetricsArgs{
Version: pulumi.String("1.0"),
RetentionPolicyDays: pulumi.Int(7),
},
MinuteMetrics: &storage.AccountQueuePropertiesMinuteMetricsArgs{
Version: pulumi.String("1.0"),
RetentionPolicyDays: pulumi.Int(7),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAccount = new Azure.Storage.Account("example", new()
{
Name = "storageaccountname",
ResourceGroupName = example.Name,
Location = example.Location,
AccountTier = "Standard",
AccountReplicationType = "GRS",
Tags =
{
{ "environment", "staging" },
},
});
var exampleAccountQueueProperties = new Azure.Storage.AccountQueueProperties("example", new()
{
StorageAccountId = exampleAccount.Id,
CorsRules = new[]
{
new Azure.Storage.Inputs.AccountQueuePropertiesCorsRuleArgs
{
AllowedOrigins = new[]
{
"http://www.example.com",
},
ExposedHeaders = new[]
{
"x-tempo-*",
},
AllowedHeaders = new[]
{
"x-tempo-*",
},
AllowedMethods = new[]
{
"GET",
"PUT",
},
MaxAgeInSeconds = 500,
},
},
Logging = new Azure.Storage.Inputs.AccountQueuePropertiesLoggingArgs
{
Version = "1.0",
Delete = true,
Read = true,
Write = true,
RetentionPolicyDays = 7,
},
HourMetrics = new Azure.Storage.Inputs.AccountQueuePropertiesHourMetricsArgs
{
Version = "1.0",
RetentionPolicyDays = 7,
},
MinuteMetrics = new Azure.Storage.Inputs.AccountQueuePropertiesMinuteMetricsArgs
{
Version = "1.0",
RetentionPolicyDays = 7,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.AccountQueueProperties;
import com.pulumi.azure.storage.AccountQueuePropertiesArgs;
import com.pulumi.azure.storage.inputs.AccountQueuePropertiesCorsRuleArgs;
import com.pulumi.azure.storage.inputs.AccountQueuePropertiesLoggingArgs;
import com.pulumi.azure.storage.inputs.AccountQueuePropertiesHourMetricsArgs;
import com.pulumi.azure.storage.inputs.AccountQueuePropertiesMinuteMetricsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("storageaccountname")
.resourceGroupName(example.name())
.location(example.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.tags(Map.of("environment", "staging"))
.build());
var exampleAccountQueueProperties = new AccountQueueProperties("exampleAccountQueueProperties", AccountQueuePropertiesArgs.builder()
.storageAccountId(exampleAccount.id())
.corsRules(AccountQueuePropertiesCorsRuleArgs.builder()
.allowedOrigins("http://www.example.com")
.exposedHeaders("x-tempo-*")
.allowedHeaders("x-tempo-*")
.allowedMethods(
"GET",
"PUT")
.maxAgeInSeconds("500")
.build())
.logging(AccountQueuePropertiesLoggingArgs.builder()
.version("1.0")
.delete(true)
.read(true)
.write(true)
.retentionPolicyDays(7)
.build())
.hourMetrics(AccountQueuePropertiesHourMetricsArgs.builder()
.version("1.0")
.retentionPolicyDays(7)
.build())
.minuteMetrics(AccountQueuePropertiesMinuteMetricsArgs.builder()
.version("1.0")
.retentionPolicyDays(7)
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAccount:
type: azure:storage:Account
name: example
properties:
name: storageaccountname
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountReplicationType: GRS
tags:
environment: staging
exampleAccountQueueProperties:
type: azure:storage:AccountQueueProperties
name: example
properties:
storageAccountId: ${exampleAccount.id}
corsRules:
- allowedOrigins:
- http://www.example.com
exposedHeaders:
- x-tempo-*
allowedHeaders:
- x-tempo-*
allowedMethods:
- GET
- PUT
maxAgeInSeconds: '500'
logging:
version: '1.0'
delete: true
read: true
write: true
retentionPolicyDays: 7
hourMetrics:
version: '1.0'
retentionPolicyDays: 7
minuteMetrics:
version: '1.0'
retentionPolicyDays: 7
Create AccountQueueProperties Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccountQueueProperties(name: string, args: AccountQueuePropertiesArgs, opts?: CustomResourceOptions);
@overload
def AccountQueueProperties(resource_name: str,
args: AccountQueuePropertiesInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccountQueueProperties(resource_name: str,
opts: Optional[ResourceOptions] = None,
storage_account_id: Optional[str] = None,
cors_rules: Optional[Sequence[AccountQueuePropertiesCorsRuleArgs]] = None,
hour_metrics: Optional[AccountQueuePropertiesHourMetricsArgs] = None,
logging: Optional[AccountQueuePropertiesLoggingArgs] = None,
minute_metrics: Optional[AccountQueuePropertiesMinuteMetricsArgs] = None)
func NewAccountQueueProperties(ctx *Context, name string, args AccountQueuePropertiesArgs, opts ...ResourceOption) (*AccountQueueProperties, error)
public AccountQueueProperties(string name, AccountQueuePropertiesArgs args, CustomResourceOptions? opts = null)
public AccountQueueProperties(String name, AccountQueuePropertiesArgs args)
public AccountQueueProperties(String name, AccountQueuePropertiesArgs args, CustomResourceOptions options)
type: azure:storage:AccountQueueProperties
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AccountQueuePropertiesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AccountQueuePropertiesInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccountQueuePropertiesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountQueuePropertiesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountQueuePropertiesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var accountQueuePropertiesResource = new Azure.Storage.AccountQueueProperties("accountQueuePropertiesResource", new()
{
StorageAccountId = "string",
CorsRules = new[]
{
new Azure.Storage.Inputs.AccountQueuePropertiesCorsRuleArgs
{
AllowedHeaders = new[]
{
"string",
},
AllowedMethods = new[]
{
"string",
},
AllowedOrigins = new[]
{
"string",
},
ExposedHeaders = new[]
{
"string",
},
MaxAgeInSeconds = 0,
},
},
HourMetrics = new Azure.Storage.Inputs.AccountQueuePropertiesHourMetricsArgs
{
Version = "string",
IncludeApis = false,
RetentionPolicyDays = 0,
},
Logging = new Azure.Storage.Inputs.AccountQueuePropertiesLoggingArgs
{
Delete = false,
Read = false,
Version = "string",
Write = false,
RetentionPolicyDays = 0,
},
MinuteMetrics = new Azure.Storage.Inputs.AccountQueuePropertiesMinuteMetricsArgs
{
Version = "string",
IncludeApis = false,
RetentionPolicyDays = 0,
},
});
example, err := storage.NewAccountQueueProperties(ctx, "accountQueuePropertiesResource", &storage.AccountQueuePropertiesArgs{
StorageAccountId: pulumi.String("string"),
CorsRules: storage.AccountQueuePropertiesCorsRuleArray{
&storage.AccountQueuePropertiesCorsRuleArgs{
AllowedHeaders: pulumi.StringArray{
pulumi.String("string"),
},
AllowedMethods: pulumi.StringArray{
pulumi.String("string"),
},
AllowedOrigins: pulumi.StringArray{
pulumi.String("string"),
},
ExposedHeaders: pulumi.StringArray{
pulumi.String("string"),
},
MaxAgeInSeconds: pulumi.Int(0),
},
},
HourMetrics: &storage.AccountQueuePropertiesHourMetricsArgs{
Version: pulumi.String("string"),
IncludeApis: pulumi.Bool(false),
RetentionPolicyDays: pulumi.Int(0),
},
Logging: &storage.AccountQueuePropertiesLoggingArgs{
Delete: pulumi.Bool(false),
Read: pulumi.Bool(false),
Version: pulumi.String("string"),
Write: pulumi.Bool(false),
RetentionPolicyDays: pulumi.Int(0),
},
MinuteMetrics: &storage.AccountQueuePropertiesMinuteMetricsArgs{
Version: pulumi.String("string"),
IncludeApis: pulumi.Bool(false),
RetentionPolicyDays: pulumi.Int(0),
},
})
var accountQueuePropertiesResource = new AccountQueueProperties("accountQueuePropertiesResource", AccountQueuePropertiesArgs.builder()
.storageAccountId("string")
.corsRules(AccountQueuePropertiesCorsRuleArgs.builder()
.allowedHeaders("string")
.allowedMethods("string")
.allowedOrigins("string")
.exposedHeaders("string")
.maxAgeInSeconds(0)
.build())
.hourMetrics(AccountQueuePropertiesHourMetricsArgs.builder()
.version("string")
.includeApis(false)
.retentionPolicyDays(0)
.build())
.logging(AccountQueuePropertiesLoggingArgs.builder()
.delete(false)
.read(false)
.version("string")
.write(false)
.retentionPolicyDays(0)
.build())
.minuteMetrics(AccountQueuePropertiesMinuteMetricsArgs.builder()
.version("string")
.includeApis(false)
.retentionPolicyDays(0)
.build())
.build());
account_queue_properties_resource = azure.storage.AccountQueueProperties("accountQueuePropertiesResource",
storage_account_id="string",
cors_rules=[{
"allowed_headers": ["string"],
"allowed_methods": ["string"],
"allowed_origins": ["string"],
"exposed_headers": ["string"],
"max_age_in_seconds": 0,
}],
hour_metrics={
"version": "string",
"include_apis": False,
"retention_policy_days": 0,
},
logging={
"delete": False,
"read": False,
"version": "string",
"write": False,
"retention_policy_days": 0,
},
minute_metrics={
"version": "string",
"include_apis": False,
"retention_policy_days": 0,
})
const accountQueuePropertiesResource = new azure.storage.AccountQueueProperties("accountQueuePropertiesResource", {
storageAccountId: "string",
corsRules: [{
allowedHeaders: ["string"],
allowedMethods: ["string"],
allowedOrigins: ["string"],
exposedHeaders: ["string"],
maxAgeInSeconds: 0,
}],
hourMetrics: {
version: "string",
includeApis: false,
retentionPolicyDays: 0,
},
logging: {
"delete": false,
read: false,
version: "string",
write: false,
retentionPolicyDays: 0,
},
minuteMetrics: {
version: "string",
includeApis: false,
retentionPolicyDays: 0,
},
});
type: azure:storage:AccountQueueProperties
properties:
corsRules:
- allowedHeaders:
- string
allowedMethods:
- string
allowedOrigins:
- string
exposedHeaders:
- string
maxAgeInSeconds: 0
hourMetrics:
includeApis: false
retentionPolicyDays: 0
version: string
logging:
delete: false
read: false
retentionPolicyDays: 0
version: string
write: false
minuteMetrics:
includeApis: false
retentionPolicyDays: 0
version: string
storageAccountId: string
AccountQueueProperties Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AccountQueueProperties resource accepts the following input properties:
- Storage
Account stringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- Cors
Rules List<AccountQueue Properties Cors Rule> - A
cors_rule
block as defined above. - Hour
Metrics AccountQueue Properties Hour Metrics A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- Logging
Account
Queue Properties Logging - A
logging
block as defined below. - Minute
Metrics AccountQueue Properties Minute Metrics - A
minute_metrics
block as defined below.
- Storage
Account stringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- Cors
Rules []AccountQueue Properties Cors Rule Args - A
cors_rule
block as defined above. - Hour
Metrics AccountQueue Properties Hour Metrics Args A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- Logging
Account
Queue Properties Logging Args - A
logging
block as defined below. - Minute
Metrics AccountQueue Properties Minute Metrics Args - A
minute_metrics
block as defined below.
- storage
Account StringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- cors
Rules List<AccountQueue Properties Cors Rule> - A
cors_rule
block as defined above. - hour
Metrics AccountQueue Properties Hour Metrics A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- logging
Account
Queue Properties Logging - A
logging
block as defined below. - minute
Metrics AccountQueue Properties Minute Metrics - A
minute_metrics
block as defined below.
- storage
Account stringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- cors
Rules AccountQueue Properties Cors Rule[] - A
cors_rule
block as defined above. - hour
Metrics AccountQueue Properties Hour Metrics A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- logging
Account
Queue Properties Logging - A
logging
block as defined below. - minute
Metrics AccountQueue Properties Minute Metrics - A
minute_metrics
block as defined below.
- storage_
account_ strid - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- cors_
rules Sequence[AccountQueue Properties Cors Rule Args] - A
cors_rule
block as defined above. - hour_
metrics AccountQueue Properties Hour Metrics Args A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- logging
Account
Queue Properties Logging Args - A
logging
block as defined below. - minute_
metrics AccountQueue Properties Minute Metrics Args - A
minute_metrics
block as defined below.
- storage
Account StringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- cors
Rules List<Property Map> - A
cors_rule
block as defined above. - hour
Metrics Property Map A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- logging Property Map
- A
logging
block as defined below. - minute
Metrics Property Map - A
minute_metrics
block as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccountQueueProperties resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AccountQueueProperties Resource
Get an existing AccountQueueProperties resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccountQueuePropertiesState, opts?: CustomResourceOptions): AccountQueueProperties
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cors_rules: Optional[Sequence[AccountQueuePropertiesCorsRuleArgs]] = None,
hour_metrics: Optional[AccountQueuePropertiesHourMetricsArgs] = None,
logging: Optional[AccountQueuePropertiesLoggingArgs] = None,
minute_metrics: Optional[AccountQueuePropertiesMinuteMetricsArgs] = None,
storage_account_id: Optional[str] = None) -> AccountQueueProperties
func GetAccountQueueProperties(ctx *Context, name string, id IDInput, state *AccountQueuePropertiesState, opts ...ResourceOption) (*AccountQueueProperties, error)
public static AccountQueueProperties Get(string name, Input<string> id, AccountQueuePropertiesState? state, CustomResourceOptions? opts = null)
public static AccountQueueProperties get(String name, Output<String> id, AccountQueuePropertiesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cors
Rules List<AccountQueue Properties Cors Rule> - A
cors_rule
block as defined above. - Hour
Metrics AccountQueue Properties Hour Metrics A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- Logging
Account
Queue Properties Logging - A
logging
block as defined below. - Minute
Metrics AccountQueue Properties Minute Metrics - A
minute_metrics
block as defined below. - Storage
Account stringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- Cors
Rules []AccountQueue Properties Cors Rule Args - A
cors_rule
block as defined above. - Hour
Metrics AccountQueue Properties Hour Metrics Args A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- Logging
Account
Queue Properties Logging Args - A
logging
block as defined below. - Minute
Metrics AccountQueue Properties Minute Metrics Args - A
minute_metrics
block as defined below. - Storage
Account stringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- cors
Rules List<AccountQueue Properties Cors Rule> - A
cors_rule
block as defined above. - hour
Metrics AccountQueue Properties Hour Metrics A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- logging
Account
Queue Properties Logging - A
logging
block as defined below. - minute
Metrics AccountQueue Properties Minute Metrics - A
minute_metrics
block as defined below. - storage
Account StringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- cors
Rules AccountQueue Properties Cors Rule[] - A
cors_rule
block as defined above. - hour
Metrics AccountQueue Properties Hour Metrics A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- logging
Account
Queue Properties Logging - A
logging
block as defined below. - minute
Metrics AccountQueue Properties Minute Metrics - A
minute_metrics
block as defined below. - storage
Account stringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- cors_
rules Sequence[AccountQueue Properties Cors Rule Args] - A
cors_rule
block as defined above. - hour_
metrics AccountQueue Properties Hour Metrics Args A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- logging
Account
Queue Properties Logging Args - A
logging
block as defined below. - minute_
metrics AccountQueue Properties Minute Metrics Args - A
minute_metrics
block as defined below. - storage_
account_ strid - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
- cors
Rules List<Property Map> - A
cors_rule
block as defined above. - hour
Metrics Property Map A
hour_metrics
block as defined below.NOTE: At least one of
cors_rule
,logging
,minute_metrics
, orhour_metrics
must be specified.- logging Property Map
- A
logging
block as defined below. - minute
Metrics Property Map - A
minute_metrics
block as defined below. - storage
Account StringId - The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
Supporting Types
AccountQueuePropertiesCorsRule, AccountQueuePropertiesCorsRuleArgs
- Allowed
Headers List<string> - A list of headers that are allowed to be a part of the cross-origin request.
- Allowed
Methods List<string> - A list of HTTP methods that are allowed to be executed by the origin. Valid options are
DELETE
,GET
,HEAD
,MERGE
,POST
,OPTIONS
,PUT
orPATCH
. - Allowed
Origins List<string> - A list of origin domains that will be allowed by CORS.
- Exposed
Headers List<string> - A list of response headers that are exposed to CORS clients.
- Max
Age intIn Seconds - The number of seconds the client should cache a preflight response.
- Allowed
Headers []string - A list of headers that are allowed to be a part of the cross-origin request.
- Allowed
Methods []string - A list of HTTP methods that are allowed to be executed by the origin. Valid options are
DELETE
,GET
,HEAD
,MERGE
,POST
,OPTIONS
,PUT
orPATCH
. - Allowed
Origins []string - A list of origin domains that will be allowed by CORS.
- Exposed
Headers []string - A list of response headers that are exposed to CORS clients.
- Max
Age intIn Seconds - The number of seconds the client should cache a preflight response.
- allowed
Headers List<String> - A list of headers that are allowed to be a part of the cross-origin request.
- allowed
Methods List<String> - A list of HTTP methods that are allowed to be executed by the origin. Valid options are
DELETE
,GET
,HEAD
,MERGE
,POST
,OPTIONS
,PUT
orPATCH
. - allowed
Origins List<String> - A list of origin domains that will be allowed by CORS.
- exposed
Headers List<String> - A list of response headers that are exposed to CORS clients.
- max
Age IntegerIn Seconds - The number of seconds the client should cache a preflight response.
- allowed
Headers string[] - A list of headers that are allowed to be a part of the cross-origin request.
- allowed
Methods string[] - A list of HTTP methods that are allowed to be executed by the origin. Valid options are
DELETE
,GET
,HEAD
,MERGE
,POST
,OPTIONS
,PUT
orPATCH
. - allowed
Origins string[] - A list of origin domains that will be allowed by CORS.
- exposed
Headers string[] - A list of response headers that are exposed to CORS clients.
- max
Age numberIn Seconds - The number of seconds the client should cache a preflight response.
- allowed_
headers Sequence[str] - A list of headers that are allowed to be a part of the cross-origin request.
- allowed_
methods Sequence[str] - A list of HTTP methods that are allowed to be executed by the origin. Valid options are
DELETE
,GET
,HEAD
,MERGE
,POST
,OPTIONS
,PUT
orPATCH
. - allowed_
origins Sequence[str] - A list of origin domains that will be allowed by CORS.
- exposed_
headers Sequence[str] - A list of response headers that are exposed to CORS clients.
- max_
age_ intin_ seconds - The number of seconds the client should cache a preflight response.
- allowed
Headers List<String> - A list of headers that are allowed to be a part of the cross-origin request.
- allowed
Methods List<String> - A list of HTTP methods that are allowed to be executed by the origin. Valid options are
DELETE
,GET
,HEAD
,MERGE
,POST
,OPTIONS
,PUT
orPATCH
. - allowed
Origins List<String> - A list of origin domains that will be allowed by CORS.
- exposed
Headers List<String> - A list of response headers that are exposed to CORS clients.
- max
Age NumberIn Seconds - The number of seconds the client should cache a preflight response.
AccountQueuePropertiesHourMetrics, AccountQueuePropertiesHourMetricsArgs
- Version string
- The version of storage analytics to configure.
- Include
Apis bool - Indicates whether metrics should generate summary statistics for called API operations.
- Retention
Policy intDays - Specifies the number of days that logs will be retained.
- Version string
- The version of storage analytics to configure.
- Include
Apis bool - Indicates whether metrics should generate summary statistics for called API operations.
- Retention
Policy intDays - Specifies the number of days that logs will be retained.
- version String
- The version of storage analytics to configure.
- include
Apis Boolean - Indicates whether metrics should generate summary statistics for called API operations.
- retention
Policy IntegerDays - Specifies the number of days that logs will be retained.
- version string
- The version of storage analytics to configure.
- include
Apis boolean - Indicates whether metrics should generate summary statistics for called API operations.
- retention
Policy numberDays - Specifies the number of days that logs will be retained.
- version str
- The version of storage analytics to configure.
- include_
apis bool - Indicates whether metrics should generate summary statistics for called API operations.
- retention_
policy_ intdays - Specifies the number of days that logs will be retained.
- version String
- The version of storage analytics to configure.
- include
Apis Boolean - Indicates whether metrics should generate summary statistics for called API operations.
- retention
Policy NumberDays - Specifies the number of days that logs will be retained.
AccountQueuePropertiesLogging, AccountQueuePropertiesLoggingArgs
- Delete bool
- Indicates whether all delete requests should be logged.
- Read bool
- Indicates whether all read requests should be logged.
- Version string
- The version of storage analytics to configure.
- Write bool
- Indicates whether all write requests should be logged.
- Retention
Policy intDays - Specifies the number of days that logs will be retained.
- Delete bool
- Indicates whether all delete requests should be logged.
- Read bool
- Indicates whether all read requests should be logged.
- Version string
- The version of storage analytics to configure.
- Write bool
- Indicates whether all write requests should be logged.
- Retention
Policy intDays - Specifies the number of days that logs will be retained.
- delete Boolean
- Indicates whether all delete requests should be logged.
- read Boolean
- Indicates whether all read requests should be logged.
- version String
- The version of storage analytics to configure.
- write Boolean
- Indicates whether all write requests should be logged.
- retention
Policy IntegerDays - Specifies the number of days that logs will be retained.
- delete boolean
- Indicates whether all delete requests should be logged.
- read boolean
- Indicates whether all read requests should be logged.
- version string
- The version of storage analytics to configure.
- write boolean
- Indicates whether all write requests should be logged.
- retention
Policy numberDays - Specifies the number of days that logs will be retained.
- delete bool
- Indicates whether all delete requests should be logged.
- read bool
- Indicates whether all read requests should be logged.
- version str
- The version of storage analytics to configure.
- write bool
- Indicates whether all write requests should be logged.
- retention_
policy_ intdays - Specifies the number of days that logs will be retained.
- delete Boolean
- Indicates whether all delete requests should be logged.
- read Boolean
- Indicates whether all read requests should be logged.
- version String
- The version of storage analytics to configure.
- write Boolean
- Indicates whether all write requests should be logged.
- retention
Policy NumberDays - Specifies the number of days that logs will be retained.
AccountQueuePropertiesMinuteMetrics, AccountQueuePropertiesMinuteMetricsArgs
- Version string
- The version of storage analytics to configure.
- Include
Apis bool - Indicates whether metrics should generate summary statistics for called API operations.
- Retention
Policy intDays - Specifies the number of days that logs will be retained.
- Version string
- The version of storage analytics to configure.
- Include
Apis bool - Indicates whether metrics should generate summary statistics for called API operations.
- Retention
Policy intDays - Specifies the number of days that logs will be retained.
- version String
- The version of storage analytics to configure.
- include
Apis Boolean - Indicates whether metrics should generate summary statistics for called API operations.
- retention
Policy IntegerDays - Specifies the number of days that logs will be retained.
- version string
- The version of storage analytics to configure.
- include
Apis boolean - Indicates whether metrics should generate summary statistics for called API operations.
- retention
Policy numberDays - Specifies the number of days that logs will be retained.
- version str
- The version of storage analytics to configure.
- include_
apis bool - Indicates whether metrics should generate summary statistics for called API operations.
- retention_
policy_ intdays - Specifies the number of days that logs will be retained.
- version String
- The version of storage analytics to configure.
- include
Apis Boolean - Indicates whether metrics should generate summary statistics for called API operations.
- retention
Policy NumberDays - Specifies the number of days that logs will be retained.
Import
Storage Account Queue Properties can be imported using the resource id
, e.g.
$ pulumi import azure:storage/accountQueueProperties:AccountQueueProperties queueprops /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.