import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages the Queue Properties of 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: "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 * * Storage Account Queue Properties can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:storage/accountQueueProperties:AccountQueueProperties queueprops /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount * ``` */ export declare class AccountQueueProperties extends pulumi.CustomResource { /** * Get an existing AccountQueueProperties 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?: AccountQueuePropertiesState, opts?: pulumi.CustomResourceOptions): AccountQueueProperties; /** * Returns true if the given object is an instance of AccountQueueProperties. 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 AccountQueueProperties; /** * A `corsRule` block as defined above. */ readonly corsRules: pulumi.Output; /** * A `hourMetrics` block as defined below. * * > **Note:** At least one of `corsRule`, `logging`, `minuteMetrics`, or `hourMetrics` must be specified. */ readonly hourMetrics: pulumi.Output; /** * A `logging` block as defined below. */ readonly logging: pulumi.Output; /** * A `minuteMetrics` block as defined below. */ readonly minuteMetrics: pulumi.Output; /** * The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created. */ readonly storageAccountId: pulumi.Output; /** * Create a AccountQueueProperties 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: AccountQueuePropertiesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccountQueueProperties resources. */ export interface AccountQueuePropertiesState { /** * A `corsRule` block as defined above. */ corsRules?: pulumi.Input[]>; /** * A `hourMetrics` block as defined below. * * > **Note:** At least one of `corsRule`, `logging`, `minuteMetrics`, or `hourMetrics` must be specified. */ hourMetrics?: pulumi.Input; /** * A `logging` block as defined below. */ logging?: pulumi.Input; /** * A `minuteMetrics` block as defined below. */ minuteMetrics?: pulumi.Input; /** * The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created. */ storageAccountId?: pulumi.Input; } /** * The set of arguments for constructing a AccountQueueProperties resource. */ export interface AccountQueuePropertiesArgs { /** * A `corsRule` block as defined above. */ corsRules?: pulumi.Input[]>; /** * A `hourMetrics` block as defined below. * * > **Note:** At least one of `corsRule`, `logging`, `minuteMetrics`, or `hourMetrics` must be specified. */ hourMetrics?: pulumi.Input; /** * A `logging` block as defined below. */ logging?: pulumi.Input; /** * A `minuteMetrics` block as defined below. */ minuteMetrics?: pulumi.Input; /** * The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created. */ storageAccountId: pulumi.Input; }