EnvironmentDaprComponentArgs

data class EnvironmentDaprComponentArgs(val componentType: Output<String>? = null, val containerAppEnvironmentId: Output<String>? = null, val ignoreErrors: Output<Boolean>? = null, val initTimeout: Output<String>? = null, val metadatas: Output<List<EnvironmentDaprComponentMetadataArgs>>? = null, val name: Output<String>? = null, val scopes: Output<List<String>>? = null, val secrets: Output<List<EnvironmentDaprComponentSecretArgs>>? = null, val version: Output<String>? = null) : ConvertibleToJava<EnvironmentDaprComponentArgs>

Manages a Dapr Component for a Container App Environment.

Example Usage

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.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.containerapp.Environment;
import com.pulumi.azure.containerapp.EnvironmentArgs;
import com.pulumi.azure.containerapp.EnvironmentDaprComponent;
import com.pulumi.azure.containerapp.EnvironmentDaprComponentArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
.build());
var exampleEnvironmentDaprComponent = new EnvironmentDaprComponent("exampleEnvironmentDaprComponent", EnvironmentDaprComponentArgs.builder()
.containerAppEnvironmentId(exampleEnvironment.id())
.componentType("state.azure.blobstorage")
.version("v1")
.build());
}
}

Import

A Dapr Component for a Container App Environment can be imported using the resource id, e.g.

$ pulumi import azure:containerapp/environmentDaprComponent:EnvironmentDaprComponent example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/daprComponents/mydaprcomponent"

Constructors

Link copied to clipboard
fun EnvironmentDaprComponentArgs(componentType: Output<String>? = null, containerAppEnvironmentId: Output<String>? = null, ignoreErrors: Output<Boolean>? = null, initTimeout: Output<String>? = null, metadatas: Output<List<EnvironmentDaprComponentMetadataArgs>>? = null, name: Output<String>? = null, scopes: Output<List<String>>? = null, secrets: Output<List<EnvironmentDaprComponentSecretArgs>>? = null, version: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EnvironmentDaprComponentArgs

Properties

Link copied to clipboard
val componentType: Output<String>? = null

The Dapr Component Type. For example state.azure.blobstorage.

Link copied to clipboard
val containerAppEnvironmentId: Output<String>? = null

The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.

Link copied to clipboard
val ignoreErrors: Output<Boolean>? = null

Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to false

Link copied to clipboard
val initTimeout: Output<String>? = null

The timeout for component initialisation as a ISO8601 formatted string. e.g. 5s, 2h, 1m. Defaults to 5s

Link copied to clipboard

One or more metadata blocks as detailed below.

Link copied to clipboard
val name: Output<String>? = null

The name for this Dapr component. Changing this forces a new resource to be created.

Link copied to clipboard
val scopes: Output<List<String>>? = null

A list of scopes to which this component applies.

Link copied to clipboard

A secret block as detailed below.

Link copied to clipboard
val version: Output<String>? = null

The version of the component.