import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Dapr Component for a Container App Environment. * * ## 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 exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", { * name: "acctest-01", * location: example.location, * resourceGroupName: example.name, * sku: "PerGB2018", * retentionInDays: 30, * }); * const exampleEnvironment = new azure.containerapp.Environment("example", { * name: "Example-Environment", * location: example.location, * resourceGroupName: example.name, * logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id, * }); * const exampleEnvironmentDaprComponent = new azure.containerapp.EnvironmentDaprComponent("example", { * name: "example-component", * containerAppEnvironmentId: exampleEnvironment.id, * componentType: "state.azure.blobstorage", * version: "v1", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.App` - 2025-07-01 * * ## Import * * A Dapr Component for a Container App Environment can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:containerapp/environmentDaprComponent:EnvironmentDaprComponent example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/daprComponents/mydaprcomponent" * ``` */ export declare class EnvironmentDaprComponent extends pulumi.CustomResource { /** * Get an existing EnvironmentDaprComponent 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?: EnvironmentDaprComponentState, opts?: pulumi.CustomResourceOptions): EnvironmentDaprComponent; /** * Returns true if the given object is an instance of EnvironmentDaprComponent. 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 EnvironmentDaprComponent; /** * The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. */ readonly componentType: pulumi.Output; /** * The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. */ readonly containerAppEnvironmentId: pulumi.Output; /** * Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` */ readonly ignoreErrors: pulumi.Output; /** * The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. */ readonly initTimeout: pulumi.Output; /** * One or more `metadata` blocks as detailed below. */ readonly metadatas: pulumi.Output; /** * The name for this Dapr component. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A list of scopes to which this component applies. * * > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes */ readonly scopes: pulumi.Output; /** * A `secret` block as detailed below. */ readonly secrets: pulumi.Output; /** * The version of the component. */ readonly version: pulumi.Output; /** * Create a EnvironmentDaprComponent 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: EnvironmentDaprComponentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EnvironmentDaprComponent resources. */ export interface EnvironmentDaprComponentState { /** * The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. */ componentType?: pulumi.Input; /** * The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. */ containerAppEnvironmentId?: pulumi.Input; /** * Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` */ ignoreErrors?: pulumi.Input; /** * The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. */ initTimeout?: pulumi.Input; /** * One or more `metadata` blocks as detailed below. */ metadatas?: pulumi.Input[]>; /** * The name for this Dapr component. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A list of scopes to which this component applies. * * > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes */ scopes?: pulumi.Input[]>; /** * A `secret` block as detailed below. */ secrets?: pulumi.Input[]>; /** * The version of the component. */ version?: pulumi.Input; } /** * The set of arguments for constructing a EnvironmentDaprComponent resource. */ export interface EnvironmentDaprComponentArgs { /** * The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. */ componentType: pulumi.Input; /** * The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. */ containerAppEnvironmentId: pulumi.Input; /** * Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` */ ignoreErrors?: pulumi.Input; /** * The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. */ initTimeout?: pulumi.Input; /** * One or more `metadata` blocks as detailed below. */ metadatas?: pulumi.Input[]>; /** * The name for this Dapr component. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A list of scopes to which this component applies. * * > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes */ scopes?: pulumi.Input[]>; /** * A `secret` block as detailed below. */ secrets?: pulumi.Input[]>; /** * The version of the component. */ version: pulumi.Input; }