azure-native.app.DaprComponentResiliencyPolicy
Explore with Pulumi AI
Dapr Component Resiliency Policy. Azure REST API version: 2023-08-01-preview.
Other available API versions: 2023-11-02-preview, 2024-02-02-preview, 2024-08-02-preview, 2024-10-02-preview.
Example Usage
Create or update dapr component resiliency policy with all options
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var daprComponentResiliencyPolicy = new AzureNative.App.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", new()
{
ComponentName = "mydaprcomponent",
EnvironmentName = "myenvironment",
InboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
{
HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
{
MaxRetries = 15,
RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
{
InitialDelayInMilliseconds = 2000,
MaxIntervalInMilliseconds = 5500,
},
},
TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
{
ResponseTimeoutInSeconds = 30,
},
},
Name = "myresiliencypolicy",
OutboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
{
HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
{
MaxRetries = 5,
RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
{
InitialDelayInMilliseconds = 100,
MaxIntervalInMilliseconds = 30000,
},
},
TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
{
ResponseTimeoutInSeconds = 12,
},
},
ResourceGroupName = "examplerg",
});
});
package main
import (
app "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.NewDaprComponentResiliencyPolicy(ctx, "daprComponentResiliencyPolicy", &app.DaprComponentResiliencyPolicyArgs{
ComponentName: pulumi.String("mydaprcomponent"),
EnvironmentName: pulumi.String("myenvironment"),
InboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
MaxRetries: pulumi.Int(15),
RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
InitialDelayInMilliseconds: pulumi.Int(2000),
MaxIntervalInMilliseconds: pulumi.Int(5500),
},
},
TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
ResponseTimeoutInSeconds: pulumi.Int(30),
},
},
Name: pulumi.String("myresiliencypolicy"),
OutboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
MaxRetries: pulumi.Int(5),
RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
InitialDelayInMilliseconds: pulumi.Int(100),
MaxIntervalInMilliseconds: pulumi.Int(30000),
},
},
TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
ResponseTimeoutInSeconds: pulumi.Int(12),
},
},
ResourceGroupName: pulumi.String("examplerg"),
})
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.DaprComponentResiliencyPolicy;
import com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs;
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 daprComponentResiliencyPolicy = new DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", DaprComponentResiliencyPolicyArgs.builder()
.componentName("mydaprcomponent")
.environmentName("myenvironment")
.inboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
.httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
.maxRetries(15)
.retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
.initialDelayInMilliseconds(2000)
.maxIntervalInMilliseconds(5500)
.build())
.build())
.timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
.responseTimeoutInSeconds(30)
.build())
.build())
.name("myresiliencypolicy")
.outboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
.httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
.maxRetries(5)
.retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
.initialDelayInMilliseconds(100)
.maxIntervalInMilliseconds(30000)
.build())
.build())
.timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
.responseTimeoutInSeconds(12)
.build())
.build())
.resourceGroupName("examplerg")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
dapr_component_resiliency_policy = azure_native.app.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy",
component_name="mydaprcomponent",
environment_name="myenvironment",
inbound_policy={
"http_retry_policy": {
"max_retries": 15,
"retry_back_off": {
"initial_delay_in_milliseconds": 2000,
"max_interval_in_milliseconds": 5500,
},
},
"timeout_policy": {
"response_timeout_in_seconds": 30,
},
},
name="myresiliencypolicy",
outbound_policy={
"http_retry_policy": {
"max_retries": 5,
"retry_back_off": {
"initial_delay_in_milliseconds": 100,
"max_interval_in_milliseconds": 30000,
},
},
"timeout_policy": {
"response_timeout_in_seconds": 12,
},
},
resource_group_name="examplerg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const daprComponentResiliencyPolicy = new azure_native.app.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", {
componentName: "mydaprcomponent",
environmentName: "myenvironment",
inboundPolicy: {
httpRetryPolicy: {
maxRetries: 15,
retryBackOff: {
initialDelayInMilliseconds: 2000,
maxIntervalInMilliseconds: 5500,
},
},
timeoutPolicy: {
responseTimeoutInSeconds: 30,
},
},
name: "myresiliencypolicy",
outboundPolicy: {
httpRetryPolicy: {
maxRetries: 5,
retryBackOff: {
initialDelayInMilliseconds: 100,
maxIntervalInMilliseconds: 30000,
},
},
timeoutPolicy: {
responseTimeoutInSeconds: 12,
},
},
resourceGroupName: "examplerg",
});
resources:
daprComponentResiliencyPolicy:
type: azure-native:app:DaprComponentResiliencyPolicy
properties:
componentName: mydaprcomponent
environmentName: myenvironment
inboundPolicy:
httpRetryPolicy:
maxRetries: 15
retryBackOff:
initialDelayInMilliseconds: 2000
maxIntervalInMilliseconds: 5500
timeoutPolicy:
responseTimeoutInSeconds: 30
name: myresiliencypolicy
outboundPolicy:
httpRetryPolicy:
maxRetries: 5
retryBackOff:
initialDelayInMilliseconds: 100
maxIntervalInMilliseconds: 30000
timeoutPolicy:
responseTimeoutInSeconds: 12
resourceGroupName: examplerg
Create or update dapr component resiliency policy with outbound policy only
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var daprComponentResiliencyPolicy = new AzureNative.App.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", new()
{
ComponentName = "mydaprcomponent",
EnvironmentName = "myenvironment",
Name = "myresiliencypolicy",
OutboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
{
HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
{
MaxRetries = 5,
RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
{
InitialDelayInMilliseconds = 100,
MaxIntervalInMilliseconds = 30000,
},
},
TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
{
ResponseTimeoutInSeconds = 12,
},
},
ResourceGroupName = "examplerg",
});
});
package main
import (
app "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.NewDaprComponentResiliencyPolicy(ctx, "daprComponentResiliencyPolicy", &app.DaprComponentResiliencyPolicyArgs{
ComponentName: pulumi.String("mydaprcomponent"),
EnvironmentName: pulumi.String("myenvironment"),
Name: pulumi.String("myresiliencypolicy"),
OutboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
MaxRetries: pulumi.Int(5),
RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
InitialDelayInMilliseconds: pulumi.Int(100),
MaxIntervalInMilliseconds: pulumi.Int(30000),
},
},
TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
ResponseTimeoutInSeconds: pulumi.Int(12),
},
},
ResourceGroupName: pulumi.String("examplerg"),
})
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.DaprComponentResiliencyPolicy;
import com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs;
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 daprComponentResiliencyPolicy = new DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", DaprComponentResiliencyPolicyArgs.builder()
.componentName("mydaprcomponent")
.environmentName("myenvironment")
.name("myresiliencypolicy")
.outboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
.httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
.maxRetries(5)
.retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
.initialDelayInMilliseconds(100)
.maxIntervalInMilliseconds(30000)
.build())
.build())
.timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
.responseTimeoutInSeconds(12)
.build())
.build())
.resourceGroupName("examplerg")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
dapr_component_resiliency_policy = azure_native.app.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy",
component_name="mydaprcomponent",
environment_name="myenvironment",
name="myresiliencypolicy",
outbound_policy={
"http_retry_policy": {
"max_retries": 5,
"retry_back_off": {
"initial_delay_in_milliseconds": 100,
"max_interval_in_milliseconds": 30000,
},
},
"timeout_policy": {
"response_timeout_in_seconds": 12,
},
},
resource_group_name="examplerg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const daprComponentResiliencyPolicy = new azure_native.app.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", {
componentName: "mydaprcomponent",
environmentName: "myenvironment",
name: "myresiliencypolicy",
outboundPolicy: {
httpRetryPolicy: {
maxRetries: 5,
retryBackOff: {
initialDelayInMilliseconds: 100,
maxIntervalInMilliseconds: 30000,
},
},
timeoutPolicy: {
responseTimeoutInSeconds: 12,
},
},
resourceGroupName: "examplerg",
});
resources:
daprComponentResiliencyPolicy:
type: azure-native:app:DaprComponentResiliencyPolicy
properties:
componentName: mydaprcomponent
environmentName: myenvironment
name: myresiliencypolicy
outboundPolicy:
httpRetryPolicy:
maxRetries: 5
retryBackOff:
initialDelayInMilliseconds: 100
maxIntervalInMilliseconds: 30000
timeoutPolicy:
responseTimeoutInSeconds: 12
resourceGroupName: examplerg
Create or update dapr component resiliency policy with sparse options
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var daprComponentResiliencyPolicy = new AzureNative.App.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", new()
{
ComponentName = "mydaprcomponent",
EnvironmentName = "myenvironment",
InboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
{
HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
{
MaxRetries = 5,
RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
{
InitialDelayInMilliseconds = 2000,
MaxIntervalInMilliseconds = 5500,
},
},
},
Name = "myresiliencypolicy",
OutboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
{
TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
{
ResponseTimeoutInSeconds = 12,
},
},
ResourceGroupName = "examplerg",
});
});
package main
import (
app "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.NewDaprComponentResiliencyPolicy(ctx, "daprComponentResiliencyPolicy", &app.DaprComponentResiliencyPolicyArgs{
ComponentName: pulumi.String("mydaprcomponent"),
EnvironmentName: pulumi.String("myenvironment"),
InboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
MaxRetries: pulumi.Int(5),
RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
InitialDelayInMilliseconds: pulumi.Int(2000),
MaxIntervalInMilliseconds: pulumi.Int(5500),
},
},
},
Name: pulumi.String("myresiliencypolicy"),
OutboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
ResponseTimeoutInSeconds: pulumi.Int(12),
},
},
ResourceGroupName: pulumi.String("examplerg"),
})
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.DaprComponentResiliencyPolicy;
import com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs;
import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs;
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 daprComponentResiliencyPolicy = new DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", DaprComponentResiliencyPolicyArgs.builder()
.componentName("mydaprcomponent")
.environmentName("myenvironment")
.inboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
.httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
.maxRetries(5)
.retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
.initialDelayInMilliseconds(2000)
.maxIntervalInMilliseconds(5500)
.build())
.build())
.build())
.name("myresiliencypolicy")
.outboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
.timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
.responseTimeoutInSeconds(12)
.build())
.build())
.resourceGroupName("examplerg")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
dapr_component_resiliency_policy = azure_native.app.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy",
component_name="mydaprcomponent",
environment_name="myenvironment",
inbound_policy={
"http_retry_policy": {
"max_retries": 5,
"retry_back_off": {
"initial_delay_in_milliseconds": 2000,
"max_interval_in_milliseconds": 5500,
},
},
},
name="myresiliencypolicy",
outbound_policy={
"timeout_policy": {
"response_timeout_in_seconds": 12,
},
},
resource_group_name="examplerg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const daprComponentResiliencyPolicy = new azure_native.app.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", {
componentName: "mydaprcomponent",
environmentName: "myenvironment",
inboundPolicy: {
httpRetryPolicy: {
maxRetries: 5,
retryBackOff: {
initialDelayInMilliseconds: 2000,
maxIntervalInMilliseconds: 5500,
},
},
},
name: "myresiliencypolicy",
outboundPolicy: {
timeoutPolicy: {
responseTimeoutInSeconds: 12,
},
},
resourceGroupName: "examplerg",
});
resources:
daprComponentResiliencyPolicy:
type: azure-native:app:DaprComponentResiliencyPolicy
properties:
componentName: mydaprcomponent
environmentName: myenvironment
inboundPolicy:
httpRetryPolicy:
maxRetries: 5
retryBackOff:
initialDelayInMilliseconds: 2000
maxIntervalInMilliseconds: 5500
name: myresiliencypolicy
outboundPolicy:
timeoutPolicy:
responseTimeoutInSeconds: 12
resourceGroupName: examplerg
Create DaprComponentResiliencyPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DaprComponentResiliencyPolicy(name: string, args: DaprComponentResiliencyPolicyArgs, opts?: CustomResourceOptions);
@overload
def DaprComponentResiliencyPolicy(resource_name: str,
args: DaprComponentResiliencyPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DaprComponentResiliencyPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
component_name: Optional[str] = None,
environment_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
inbound_policy: Optional[DaprComponentResiliencyPolicyConfigurationArgs] = None,
name: Optional[str] = None,
outbound_policy: Optional[DaprComponentResiliencyPolicyConfigurationArgs] = None)
func NewDaprComponentResiliencyPolicy(ctx *Context, name string, args DaprComponentResiliencyPolicyArgs, opts ...ResourceOption) (*DaprComponentResiliencyPolicy, error)
public DaprComponentResiliencyPolicy(string name, DaprComponentResiliencyPolicyArgs args, CustomResourceOptions? opts = null)
public DaprComponentResiliencyPolicy(String name, DaprComponentResiliencyPolicyArgs args)
public DaprComponentResiliencyPolicy(String name, DaprComponentResiliencyPolicyArgs args, CustomResourceOptions options)
type: azure-native:app:DaprComponentResiliencyPolicy
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 DaprComponentResiliencyPolicyArgs
- 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 DaprComponentResiliencyPolicyArgs
- 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 DaprComponentResiliencyPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DaprComponentResiliencyPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DaprComponentResiliencyPolicyArgs
- 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 daprComponentResiliencyPolicyResource = new AzureNative.App.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicyResource", new()
{
ComponentName = "string",
EnvironmentName = "string",
ResourceGroupName = "string",
InboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
{
HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
{
MaxRetries = 0,
RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
{
InitialDelayInMilliseconds = 0,
MaxIntervalInMilliseconds = 0,
},
},
TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
{
ResponseTimeoutInSeconds = 0,
},
},
Name = "string",
OutboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
{
HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
{
MaxRetries = 0,
RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
{
InitialDelayInMilliseconds = 0,
MaxIntervalInMilliseconds = 0,
},
},
TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
{
ResponseTimeoutInSeconds = 0,
},
},
});
example, err := app.NewDaprComponentResiliencyPolicy(ctx, "daprComponentResiliencyPolicyResource", &app.DaprComponentResiliencyPolicyArgs{
ComponentName: pulumi.String("string"),
EnvironmentName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
InboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
MaxRetries: pulumi.Int(0),
RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
InitialDelayInMilliseconds: pulumi.Int(0),
MaxIntervalInMilliseconds: pulumi.Int(0),
},
},
TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
ResponseTimeoutInSeconds: pulumi.Int(0),
},
},
Name: pulumi.String("string"),
OutboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
MaxRetries: pulumi.Int(0),
RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
InitialDelayInMilliseconds: pulumi.Int(0),
MaxIntervalInMilliseconds: pulumi.Int(0),
},
},
TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
ResponseTimeoutInSeconds: pulumi.Int(0),
},
},
})
var daprComponentResiliencyPolicyResource = new DaprComponentResiliencyPolicy("daprComponentResiliencyPolicyResource", DaprComponentResiliencyPolicyArgs.builder()
.componentName("string")
.environmentName("string")
.resourceGroupName("string")
.inboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
.httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
.maxRetries(0)
.retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
.initialDelayInMilliseconds(0)
.maxIntervalInMilliseconds(0)
.build())
.build())
.timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
.responseTimeoutInSeconds(0)
.build())
.build())
.name("string")
.outboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
.httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
.maxRetries(0)
.retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
.initialDelayInMilliseconds(0)
.maxIntervalInMilliseconds(0)
.build())
.build())
.timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
.responseTimeoutInSeconds(0)
.build())
.build())
.build());
dapr_component_resiliency_policy_resource = azure_native.app.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicyResource",
component_name="string",
environment_name="string",
resource_group_name="string",
inbound_policy={
"http_retry_policy": {
"max_retries": 0,
"retry_back_off": {
"initial_delay_in_milliseconds": 0,
"max_interval_in_milliseconds": 0,
},
},
"timeout_policy": {
"response_timeout_in_seconds": 0,
},
},
name="string",
outbound_policy={
"http_retry_policy": {
"max_retries": 0,
"retry_back_off": {
"initial_delay_in_milliseconds": 0,
"max_interval_in_milliseconds": 0,
},
},
"timeout_policy": {
"response_timeout_in_seconds": 0,
},
})
const daprComponentResiliencyPolicyResource = new azure_native.app.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicyResource", {
componentName: "string",
environmentName: "string",
resourceGroupName: "string",
inboundPolicy: {
httpRetryPolicy: {
maxRetries: 0,
retryBackOff: {
initialDelayInMilliseconds: 0,
maxIntervalInMilliseconds: 0,
},
},
timeoutPolicy: {
responseTimeoutInSeconds: 0,
},
},
name: "string",
outboundPolicy: {
httpRetryPolicy: {
maxRetries: 0,
retryBackOff: {
initialDelayInMilliseconds: 0,
maxIntervalInMilliseconds: 0,
},
},
timeoutPolicy: {
responseTimeoutInSeconds: 0,
},
},
});
type: azure-native:app:DaprComponentResiliencyPolicy
properties:
componentName: string
environmentName: string
inboundPolicy:
httpRetryPolicy:
maxRetries: 0
retryBackOff:
initialDelayInMilliseconds: 0
maxIntervalInMilliseconds: 0
timeoutPolicy:
responseTimeoutInSeconds: 0
name: string
outboundPolicy:
httpRetryPolicy:
maxRetries: 0
retryBackOff:
initialDelayInMilliseconds: 0
maxIntervalInMilliseconds: 0
timeoutPolicy:
responseTimeoutInSeconds: 0
resourceGroupName: string
DaprComponentResiliencyPolicy 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 DaprComponentResiliencyPolicy resource accepts the following input properties:
- Component
Name string - Name of the Dapr Component.
- Environment
Name string - Name of the Managed Environment.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Inbound
Policy Pulumi.Azure Native. App. Inputs. Dapr Component Resiliency Policy Configuration - The optional inbound component resiliency policy configuration
- Name string
- Name of the Dapr Component Resiliency Policy.
- Outbound
Policy Pulumi.Azure Native. App. Inputs. Dapr Component Resiliency Policy Configuration - The optional outbound component resiliency policy configuration
- Component
Name string - Name of the Dapr Component.
- Environment
Name string - Name of the Managed Environment.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Inbound
Policy DaprComponent Resiliency Policy Configuration Args - The optional inbound component resiliency policy configuration
- Name string
- Name of the Dapr Component Resiliency Policy.
- Outbound
Policy DaprComponent Resiliency Policy Configuration Args - The optional outbound component resiliency policy configuration
- component
Name String - Name of the Dapr Component.
- environment
Name String - Name of the Managed Environment.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- inbound
Policy DaprComponent Resiliency Policy Configuration - The optional inbound component resiliency policy configuration
- name String
- Name of the Dapr Component Resiliency Policy.
- outbound
Policy DaprComponent Resiliency Policy Configuration - The optional outbound component resiliency policy configuration
- component
Name string - Name of the Dapr Component.
- environment
Name string - Name of the Managed Environment.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- inbound
Policy DaprComponent Resiliency Policy Configuration - The optional inbound component resiliency policy configuration
- name string
- Name of the Dapr Component Resiliency Policy.
- outbound
Policy DaprComponent Resiliency Policy Configuration - The optional outbound component resiliency policy configuration
- component_
name str - Name of the Dapr Component.
- environment_
name str - Name of the Managed Environment.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- inbound_
policy DaprComponent Resiliency Policy Configuration Args - The optional inbound component resiliency policy configuration
- name str
- Name of the Dapr Component Resiliency Policy.
- outbound_
policy DaprComponent Resiliency Policy Configuration Args - The optional outbound component resiliency policy configuration
- component
Name String - Name of the Dapr Component.
- environment
Name String - Name of the Managed Environment.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- inbound
Policy Property Map - The optional inbound component resiliency policy configuration
- name String
- Name of the Dapr Component Resiliency Policy.
- outbound
Policy Property Map - The optional outbound component resiliency policy configuration
Outputs
All input properties are implicitly available as output properties. Additionally, the DaprComponentResiliencyPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed 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.
- 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.
- 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.
- 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.
- 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.
- 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
DaprComponentResiliencyPolicyConfiguration, DaprComponentResiliencyPolicyConfigurationArgs
- Http
Retry Pulumi.Policy Azure Native. App. Inputs. Dapr Component Resiliency Policy Http Retry Policy Configuration - The optional HTTP retry policy configuration
- Timeout
Policy Pulumi.Azure Native. App. Inputs. Dapr Component Resiliency Policy Timeout Policy Configuration - The optional timeout policy configuration
- Http
Retry DaprPolicy Component Resiliency Policy Http Retry Policy Configuration - The optional HTTP retry policy configuration
- Timeout
Policy DaprComponent Resiliency Policy Timeout Policy Configuration - The optional timeout policy configuration
- http
Retry DaprPolicy Component Resiliency Policy Http Retry Policy Configuration - The optional HTTP retry policy configuration
- timeout
Policy DaprComponent Resiliency Policy Timeout Policy Configuration - The optional timeout policy configuration
- http
Retry DaprPolicy Component Resiliency Policy Http Retry Policy Configuration - The optional HTTP retry policy configuration
- timeout
Policy DaprComponent Resiliency Policy Timeout Policy Configuration - The optional timeout policy configuration
- http_
retry_ Daprpolicy Component Resiliency Policy Http Retry Policy Configuration - The optional HTTP retry policy configuration
- timeout_
policy DaprComponent Resiliency Policy Timeout Policy Configuration - The optional timeout policy configuration
- http
Retry Property MapPolicy - The optional HTTP retry policy configuration
- timeout
Policy Property Map - The optional timeout policy configuration
DaprComponentResiliencyPolicyConfigurationResponse, DaprComponentResiliencyPolicyConfigurationResponseArgs
- Http
Retry Pulumi.Policy Azure Native. App. Inputs. Dapr Component Resiliency Policy Http Retry Policy Configuration Response - The optional HTTP retry policy configuration
- Timeout
Policy Pulumi.Azure Native. App. Inputs. Dapr Component Resiliency Policy Timeout Policy Configuration Response - The optional timeout policy configuration
- Http
Retry DaprPolicy Component Resiliency Policy Http Retry Policy Configuration Response - The optional HTTP retry policy configuration
- Timeout
Policy DaprComponent Resiliency Policy Timeout Policy Configuration Response - The optional timeout policy configuration
- http
Retry DaprPolicy Component Resiliency Policy Http Retry Policy Configuration Response - The optional HTTP retry policy configuration
- timeout
Policy DaprComponent Resiliency Policy Timeout Policy Configuration Response - The optional timeout policy configuration
- http
Retry DaprPolicy Component Resiliency Policy Http Retry Policy Configuration Response - The optional HTTP retry policy configuration
- timeout
Policy DaprComponent Resiliency Policy Timeout Policy Configuration Response - The optional timeout policy configuration
- http_
retry_ Daprpolicy Component Resiliency Policy Http Retry Policy Configuration Response - The optional HTTP retry policy configuration
- timeout_
policy DaprComponent Resiliency Policy Timeout Policy Configuration Response - The optional timeout policy configuration
- http
Retry Property MapPolicy - The optional HTTP retry policy configuration
- timeout
Policy Property Map - The optional timeout policy configuration
DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration, DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
- Initial
Delay intIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- Max
Interval intIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
- Initial
Delay intIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- Max
Interval intIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
- initial
Delay IntegerIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- max
Interval IntegerIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
- initial
Delay numberIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- max
Interval numberIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
- initial_
delay_ intin_ milliseconds - The optional initial delay in milliseconds before an operation is retried
- max_
interval_ intin_ milliseconds - The optional maximum time interval in milliseconds between retry attempts
- initial
Delay NumberIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- max
Interval NumberIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationResponse, DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationResponseArgs
- Initial
Delay intIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- Max
Interval intIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
- Initial
Delay intIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- Max
Interval intIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
- initial
Delay IntegerIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- max
Interval IntegerIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
- initial
Delay numberIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- max
Interval numberIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
- initial_
delay_ intin_ milliseconds - The optional initial delay in milliseconds before an operation is retried
- max_
interval_ intin_ milliseconds - The optional maximum time interval in milliseconds between retry attempts
- initial
Delay NumberIn Milliseconds - The optional initial delay in milliseconds before an operation is retried
- max
Interval NumberIn Milliseconds - The optional maximum time interval in milliseconds between retry attempts
DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration, DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
- Max
Retries int - The optional maximum number of retries
- Retry
Back Pulumi.Off Azure Native. App. Inputs. Dapr Component Resiliency Policy Http Retry Back Off Configuration - The optional retry backoff configuration
- Max
Retries int - The optional maximum number of retries
- Retry
Back DaprOff Component Resiliency Policy Http Retry Back Off Configuration - The optional retry backoff configuration
- max
Retries Integer - The optional maximum number of retries
- retry
Back DaprOff Component Resiliency Policy Http Retry Back Off Configuration - The optional retry backoff configuration
- max
Retries number - The optional maximum number of retries
- retry
Back DaprOff Component Resiliency Policy Http Retry Back Off Configuration - The optional retry backoff configuration
- max_
retries int - The optional maximum number of retries
- retry_
back_ Daproff Component Resiliency Policy Http Retry Back Off Configuration - The optional retry backoff configuration
- max
Retries Number - The optional maximum number of retries
- retry
Back Property MapOff - The optional retry backoff configuration
DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponse, DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponseArgs
- Max
Retries int - The optional maximum number of retries
- Retry
Back Pulumi.Off Azure Native. App. Inputs. Dapr Component Resiliency Policy Http Retry Back Off Configuration Response - The optional retry backoff configuration
- Max
Retries int - The optional maximum number of retries
- Retry
Back DaprOff Component Resiliency Policy Http Retry Back Off Configuration Response - The optional retry backoff configuration
- max
Retries Integer - The optional maximum number of retries
- retry
Back DaprOff Component Resiliency Policy Http Retry Back Off Configuration Response - The optional retry backoff configuration
- max
Retries number - The optional maximum number of retries
- retry
Back DaprOff Component Resiliency Policy Http Retry Back Off Configuration Response - The optional retry backoff configuration
- max_
retries int - The optional maximum number of retries
- retry_
back_ Daproff Component Resiliency Policy Http Retry Back Off Configuration Response - The optional retry backoff configuration
- max
Retries Number - The optional maximum number of retries
- retry
Back Property MapOff - The optional retry backoff configuration
DaprComponentResiliencyPolicyTimeoutPolicyConfiguration, DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
- Response
Timeout intIn Seconds - The optional response timeout in seconds
- Response
Timeout intIn Seconds - The optional response timeout in seconds
- response
Timeout IntegerIn Seconds - The optional response timeout in seconds
- response
Timeout numberIn Seconds - The optional response timeout in seconds
- response_
timeout_ intin_ seconds - The optional response timeout in seconds
- response
Timeout NumberIn Seconds - The optional response timeout in seconds
DaprComponentResiliencyPolicyTimeoutPolicyConfigurationResponse, DaprComponentResiliencyPolicyTimeoutPolicyConfigurationResponseArgs
- Response
Timeout intIn Seconds - The optional response timeout in seconds
- Response
Timeout intIn Seconds - The optional response timeout in seconds
- response
Timeout IntegerIn Seconds - The optional response timeout in seconds
- response
Timeout numberIn Seconds - The optional response timeout in seconds
- response_
timeout_ intin_ seconds - The optional response timeout in seconds
- response
Timeout NumberIn Seconds - The optional response timeout in seconds
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:DaprComponentResiliencyPolicy myresiliencypolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0