azure-native.app.ConnectedEnvironmentsDaprComponent
Explore with Pulumi AI
Dapr Component. Azure REST API version: 2022-10-01.
Example Usage
Create or update dapr component
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var connectedEnvironmentsDaprComponent = new AzureNative.App.ConnectedEnvironmentsDaprComponent("connectedEnvironmentsDaprComponent", new()
{
ComponentName = "reddog",
ComponentType = "state.azure.cosmosdb",
ConnectedEnvironmentName = "myenvironment",
IgnoreErrors = false,
InitTimeout = "50s",
Metadata = new[]
{
new AzureNative.App.Inputs.DaprMetadataArgs
{
Name = "url",
Value = "<COSMOS-URL>",
},
new AzureNative.App.Inputs.DaprMetadataArgs
{
Name = "database",
Value = "itemsDB",
},
new AzureNative.App.Inputs.DaprMetadataArgs
{
Name = "collection",
Value = "items",
},
new AzureNative.App.Inputs.DaprMetadataArgs
{
Name = "masterkey",
SecretRef = "masterkey",
},
},
ResourceGroupName = "examplerg",
Scopes = new[]
{
"container-app-1",
"container-app-2",
},
Secrets = new[]
{
new AzureNative.App.Inputs.SecretArgs
{
Name = "masterkey",
Value = "keyvalue",
},
},
Version = "v1",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/app/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.NewConnectedEnvironmentsDaprComponent(ctx, "connectedEnvironmentsDaprComponent", &app.ConnectedEnvironmentsDaprComponentArgs{
ComponentName: pulumi.String("reddog"),
ComponentType: pulumi.String("state.azure.cosmosdb"),
ConnectedEnvironmentName: pulumi.String("myenvironment"),
IgnoreErrors: pulumi.Bool(false),
InitTimeout: pulumi.String("50s"),
Metadata: []app.DaprMetadataArgs{
{
Name: pulumi.String("url"),
Value: pulumi.String("<COSMOS-URL>"),
},
{
Name: pulumi.String("database"),
Value: pulumi.String("itemsDB"),
},
{
Name: pulumi.String("collection"),
Value: pulumi.String("items"),
},
{
Name: pulumi.String("masterkey"),
SecretRef: pulumi.String("masterkey"),
},
},
ResourceGroupName: pulumi.String("examplerg"),
Scopes: pulumi.StringArray{
pulumi.String("container-app-1"),
pulumi.String("container-app-2"),
},
Secrets: []app.SecretArgs{
{
Name: pulumi.String("masterkey"),
Value: pulumi.String("keyvalue"),
},
},
Version: pulumi.String("v1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.ConnectedEnvironmentsDaprComponent;
import com.pulumi.azurenative.app.ConnectedEnvironmentsDaprComponentArgs;
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 connectedEnvironmentsDaprComponent = new ConnectedEnvironmentsDaprComponent("connectedEnvironmentsDaprComponent", ConnectedEnvironmentsDaprComponentArgs.builder()
.componentName("reddog")
.componentType("state.azure.cosmosdb")
.connectedEnvironmentName("myenvironment")
.ignoreErrors(false)
.initTimeout("50s")
.metadata(
Map.ofEntries(
Map.entry("name", "url"),
Map.entry("value", "<COSMOS-URL>")
),
Map.ofEntries(
Map.entry("name", "database"),
Map.entry("value", "itemsDB")
),
Map.ofEntries(
Map.entry("name", "collection"),
Map.entry("value", "items")
),
Map.ofEntries(
Map.entry("name", "masterkey"),
Map.entry("secretRef", "masterkey")
))
.resourceGroupName("examplerg")
.scopes(
"container-app-1",
"container-app-2")
.secrets(Map.ofEntries(
Map.entry("name", "masterkey"),
Map.entry("value", "keyvalue")
))
.version("v1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
connected_environments_dapr_component = azure_native.app.ConnectedEnvironmentsDaprComponent("connectedEnvironmentsDaprComponent",
component_name="reddog",
component_type="state.azure.cosmosdb",
connected_environment_name="myenvironment",
ignore_errors=False,
init_timeout="50s",
metadata=[
azure_native.app.DaprMetadataArgs(
name="url",
value="<COSMOS-URL>",
),
azure_native.app.DaprMetadataArgs(
name="database",
value="itemsDB",
),
azure_native.app.DaprMetadataArgs(
name="collection",
value="items",
),
azure_native.app.DaprMetadataArgs(
name="masterkey",
secret_ref="masterkey",
),
],
resource_group_name="examplerg",
scopes=[
"container-app-1",
"container-app-2",
],
secrets=[azure_native.app.SecretArgs(
name="masterkey",
value="keyvalue",
)],
version="v1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const connectedEnvironmentsDaprComponent = new azure_native.app.ConnectedEnvironmentsDaprComponent("connectedEnvironmentsDaprComponent", {
componentName: "reddog",
componentType: "state.azure.cosmosdb",
connectedEnvironmentName: "myenvironment",
ignoreErrors: false,
initTimeout: "50s",
metadata: [
{
name: "url",
value: "<COSMOS-URL>",
},
{
name: "database",
value: "itemsDB",
},
{
name: "collection",
value: "items",
},
{
name: "masterkey",
secretRef: "masterkey",
},
],
resourceGroupName: "examplerg",
scopes: [
"container-app-1",
"container-app-2",
],
secrets: [{
name: "masterkey",
value: "keyvalue",
}],
version: "v1",
});
resources:
connectedEnvironmentsDaprComponent:
type: azure-native:app:ConnectedEnvironmentsDaprComponent
properties:
componentName: reddog
componentType: state.azure.cosmosdb
connectedEnvironmentName: myenvironment
ignoreErrors: false
initTimeout: 50s
metadata:
- name: url
value: <COSMOS-URL>
- name: database
value: itemsDB
- name: collection
value: items
- name: masterkey
secretRef: masterkey
resourceGroupName: examplerg
scopes:
- container-app-1
- container-app-2
secrets:
- name: masterkey
value: keyvalue
version: v1
Create ConnectedEnvironmentsDaprComponent Resource
new ConnectedEnvironmentsDaprComponent(name: string, args: ConnectedEnvironmentsDaprComponentArgs, opts?: CustomResourceOptions);
@overload
def ConnectedEnvironmentsDaprComponent(resource_name: str,
opts: Optional[ResourceOptions] = None,
component_name: Optional[str] = None,
component_type: Optional[str] = None,
connected_environment_name: Optional[str] = None,
ignore_errors: Optional[bool] = None,
init_timeout: Optional[str] = None,
metadata: Optional[Sequence[DaprMetadataArgs]] = None,
resource_group_name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
secret_store_component: Optional[str] = None,
secrets: Optional[Sequence[SecretArgs]] = None,
version: Optional[str] = None)
@overload
def ConnectedEnvironmentsDaprComponent(resource_name: str,
args: ConnectedEnvironmentsDaprComponentArgs,
opts: Optional[ResourceOptions] = None)
func NewConnectedEnvironmentsDaprComponent(ctx *Context, name string, args ConnectedEnvironmentsDaprComponentArgs, opts ...ResourceOption) (*ConnectedEnvironmentsDaprComponent, error)
public ConnectedEnvironmentsDaprComponent(string name, ConnectedEnvironmentsDaprComponentArgs args, CustomResourceOptions? opts = null)
public ConnectedEnvironmentsDaprComponent(String name, ConnectedEnvironmentsDaprComponentArgs args)
public ConnectedEnvironmentsDaprComponent(String name, ConnectedEnvironmentsDaprComponentArgs args, CustomResourceOptions options)
type: azure-native:app:ConnectedEnvironmentsDaprComponent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectedEnvironmentsDaprComponentArgs
- 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 ConnectedEnvironmentsDaprComponentArgs
- 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 ConnectedEnvironmentsDaprComponentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectedEnvironmentsDaprComponentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectedEnvironmentsDaprComponentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ConnectedEnvironmentsDaprComponent Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ConnectedEnvironmentsDaprComponent resource accepts the following input properties:
- Connected
Environment stringName Name of the connected environment.
- Resource
Group stringName The name of the resource group. The name is case insensitive.
- Component
Name string Name of the Dapr Component.
- Component
Type string Component type
- Ignore
Errors bool Boolean describing if the component errors are ignores
- Init
Timeout string Initialization timeout
- Metadata
List<Pulumi.
Azure Native. App. Inputs. Dapr Metadata> Component metadata
- Scopes List<string>
Names of container apps that can use this Dapr component
- Secret
Store stringComponent Name of a Dapr component to retrieve component secrets from
- Secrets
List<Pulumi.
Azure Native. App. Inputs. Secret> Collection of secrets used by a Dapr component
- Version string
Component version
- Connected
Environment stringName Name of the connected environment.
- Resource
Group stringName The name of the resource group. The name is case insensitive.
- Component
Name string Name of the Dapr Component.
- Component
Type string Component type
- Ignore
Errors bool Boolean describing if the component errors are ignores
- Init
Timeout string Initialization timeout
- Metadata
[]Dapr
Metadata Args Component metadata
- Scopes []string
Names of container apps that can use this Dapr component
- Secret
Store stringComponent Name of a Dapr component to retrieve component secrets from
- Secrets
[]Secret
Args Collection of secrets used by a Dapr component
- Version string
Component version
- connected
Environment StringName Name of the connected environment.
- resource
Group StringName The name of the resource group. The name is case insensitive.
- component
Name String Name of the Dapr Component.
- component
Type String Component type
- ignore
Errors Boolean Boolean describing if the component errors are ignores
- init
Timeout String Initialization timeout
- metadata
List<Dapr
Metadata> Component metadata
- scopes List<String>
Names of container apps that can use this Dapr component
- secret
Store StringComponent Name of a Dapr component to retrieve component secrets from
- secrets List<Secret>
Collection of secrets used by a Dapr component
- version String
Component version
- connected
Environment stringName Name of the connected environment.
- resource
Group stringName The name of the resource group. The name is case insensitive.
- component
Name string Name of the Dapr Component.
- component
Type string Component type
- ignore
Errors boolean Boolean describing if the component errors are ignores
- init
Timeout string Initialization timeout
- metadata
Dapr
Metadata[] Component metadata
- scopes string[]
Names of container apps that can use this Dapr component
- secret
Store stringComponent Name of a Dapr component to retrieve component secrets from
- secrets Secret[]
Collection of secrets used by a Dapr component
- version string
Component version
- connected_
environment_ strname Name of the connected environment.
- resource_
group_ strname The name of the resource group. The name is case insensitive.
- component_
name str Name of the Dapr Component.
- component_
type str Component type
- ignore_
errors bool Boolean describing if the component errors are ignores
- init_
timeout str Initialization timeout
- metadata
Sequence[Dapr
Metadata Args] Component metadata
- scopes Sequence[str]
Names of container apps that can use this Dapr component
- secret_
store_ strcomponent Name of a Dapr component to retrieve component secrets from
- secrets
Sequence[Secret
Args] Collection of secrets used by a Dapr component
- version str
Component version
- connected
Environment StringName Name of the connected environment.
- resource
Group StringName The name of the resource group. The name is case insensitive.
- component
Name String Name of the Dapr Component.
- component
Type String Component type
- ignore
Errors Boolean Boolean describing if the component errors are ignores
- init
Timeout String Initialization timeout
- metadata List<Property Map>
Component metadata
- scopes List<String>
Names of container apps that can use this Dapr component
- secret
Store StringComponent Name of a Dapr component to retrieve component secrets from
- secrets List<Property Map>
Collection of secrets used by a Dapr component
- version String
Component version
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectedEnvironmentsDaprComponent resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The name of the resource
- System
Data Pulumi.Azure Native. App. Outputs. System Data Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The name of the resource
- System
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
The provider-assigned unique ID for this managed resource.
- name String
The name of the resource
- system
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
The provider-assigned unique ID for this managed resource.
- name string
The name of the resource
- system
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
The provider-assigned unique ID for this managed resource.
- name str
The name of the resource
- system_
data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
The provider-assigned unique ID for this managed resource.
- name String
The name of the resource
- system
Data Property Map Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
DaprMetadata, DaprMetadataArgs
- name str
Metadata property name.
- secret_
ref str Name of the Dapr Component secret from which to pull the metadata property value.
- value str
Metadata property value.
DaprMetadataResponse, DaprMetadataResponseArgs
- name str
Metadata property name.
- secret_
ref str Name of the Dapr Component secret from which to pull the metadata property value.
- value str
Metadata property value.
Secret, SecretArgs
- Identity string
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- Key
Vault stringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- Name string
Secret Name.
- Value string
Secret Value.
- Identity string
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- Key
Vault stringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- Name string
Secret Name.
- Value string
Secret Value.
- identity String
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- key
Vault StringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- name String
Secret Name.
- value String
Secret Value.
- identity string
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- key
Vault stringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- name string
Secret Name.
- value string
Secret Value.
- identity str
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- key_
vault_ strurl Azure Key Vault URL pointing to the secret referenced by the container app.
- name str
Secret Name.
- value str
Secret Value.
- identity String
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- key
Vault StringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- name String
Secret Name.
- value String
Secret Value.
SecretResponse, SecretResponseArgs
- Identity string
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- Key
Vault stringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- Name string
Secret Name.
- Identity string
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- Key
Vault stringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- Name string
Secret Name.
- identity String
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- key
Vault StringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- name String
Secret Name.
- identity string
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- key
Vault stringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- name string
Secret Name.
- identity str
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- key_
vault_ strurl Azure Key Vault URL pointing to the secret referenced by the container app.
- name str
Secret Name.
- identity String
Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
- key
Vault StringUrl Azure Key Vault URL pointing to the secret referenced by the container app.
- name String
Secret Name.
SystemDataResponse, SystemDataResponseArgs
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
- created
At string The timestamp of resource creation (UTC).
- created
By string The identity that created the resource.
- created
By stringType The type of identity that created the resource.
- last
Modified stringAt The timestamp of resource last modification (UTC)
- last
Modified stringBy The identity that last modified the resource.
- last
Modified stringBy Type The type of identity that last modified the resource.
- created_
at str The timestamp of resource creation (UTC).
- created_
by str The identity that created the resource.
- created_
by_ strtype The type of identity that created the resource.
- last_
modified_ strat The timestamp of resource last modification (UTC)
- last_
modified_ strby The identity that last modified the resource.
- last_
modified_ strby_ type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:app:ConnectedEnvironmentsDaprComponent reddog /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0