published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi
Resource for managing an AWS Resilience Hub V2 Policy.
A resilience policy defines your resilience expectations through modular, composable requirements. Rather than choosing a single rigid policy type, you construct policies by selecting the requirements that matter to your application: availability SLO, multi-AZ disaster recovery, multi-region disaster recovery, and data recovery objectives.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.resiliencehub.V2Policy("example", {
availabilitySlo: {
target: 99.9,
},
name: "example-policy",
});
import pulumi
import pulumi_aws as aws
example = aws.resiliencehub.V2Policy("example",
availability_slo={
"target": 99.9,
},
name="example-policy")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/resiliencehub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resiliencehub.NewV2Policy(ctx, "example", &resiliencehub.V2PolicyArgs{
AvailabilitySlo: &resiliencehub.V2PolicyAvailabilitySloArgs{
Target: pulumi.Float64(99.9),
},
Name: pulumi.String("example-policy"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ResilienceHub.V2Policy("example", new()
{
AvailabilitySlo = new Aws.ResilienceHub.Inputs.V2PolicyAvailabilitySloArgs
{
Target = 99.9,
},
Name = "example-policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resiliencehub.V2Policy;
import com.pulumi.aws.resiliencehub.V2PolicyArgs;
import com.pulumi.aws.resiliencehub.inputs.V2PolicyAvailabilitySloArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new V2Policy("example", V2PolicyArgs.builder()
.availabilitySlo(V2PolicyAvailabilitySloArgs.builder()
.target(99.9)
.build())
.name("example-policy")
.build());
}
}
resources:
example:
type: aws:resiliencehub:V2Policy
properties:
availabilitySlo:
target: 99.9
name: example-policy
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_resiliencehub_v2policy" "example" {
availability_slo = {
target = 99.9
}
name = "example-policy"
}
Multi-AZ with Data Recovery
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.resiliencehub.V2Policy("example", {
availabilitySlo: {
target: 99.99,
},
dataRecovery: {
timeBetweenBackupsInMinutes: 60,
},
multiAz: {
disasterRecoveryApproach: "ACTIVE_ACTIVE",
rpoInMinutes: 5,
rtoInMinutes: 10,
},
name: "example-policy",
description: "Policy with multi-AZ and data recovery targets",
tags: {
Environment: "production",
},
});
import pulumi
import pulumi_aws as aws
example = aws.resiliencehub.V2Policy("example",
availability_slo={
"target": 99.99,
},
data_recovery={
"time_between_backups_in_minutes": 60,
},
multi_az={
"disaster_recovery_approach": "ACTIVE_ACTIVE",
"rpo_in_minutes": 5,
"rto_in_minutes": 10,
},
name="example-policy",
description="Policy with multi-AZ and data recovery targets",
tags={
"Environment": "production",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/resiliencehub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resiliencehub.NewV2Policy(ctx, "example", &resiliencehub.V2PolicyArgs{
AvailabilitySlo: &resiliencehub.V2PolicyAvailabilitySloArgs{
Target: pulumi.Float64(99.99),
},
DataRecovery: &resiliencehub.V2PolicyDataRecoveryArgs{
TimeBetweenBackupsInMinutes: pulumi.Int(60),
},
MultiAz: &resiliencehub.V2PolicyMultiAzArgs{
DisasterRecoveryApproach: pulumi.String("ACTIVE_ACTIVE"),
RpoInMinutes: pulumi.Int(5),
RtoInMinutes: pulumi.Int(10),
},
Name: pulumi.String("example-policy"),
Description: pulumi.String("Policy with multi-AZ and data recovery targets"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("production"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ResilienceHub.V2Policy("example", new()
{
AvailabilitySlo = new Aws.ResilienceHub.Inputs.V2PolicyAvailabilitySloArgs
{
Target = 99.99,
},
DataRecovery = new Aws.ResilienceHub.Inputs.V2PolicyDataRecoveryArgs
{
TimeBetweenBackupsInMinutes = 60,
},
MultiAz = new Aws.ResilienceHub.Inputs.V2PolicyMultiAzArgs
{
DisasterRecoveryApproach = "ACTIVE_ACTIVE",
RpoInMinutes = 5,
RtoInMinutes = 10,
},
Name = "example-policy",
Description = "Policy with multi-AZ and data recovery targets",
Tags =
{
{ "Environment", "production" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resiliencehub.V2Policy;
import com.pulumi.aws.resiliencehub.V2PolicyArgs;
import com.pulumi.aws.resiliencehub.inputs.V2PolicyAvailabilitySloArgs;
import com.pulumi.aws.resiliencehub.inputs.V2PolicyDataRecoveryArgs;
import com.pulumi.aws.resiliencehub.inputs.V2PolicyMultiAzArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new V2Policy("example", V2PolicyArgs.builder()
.availabilitySlo(V2PolicyAvailabilitySloArgs.builder()
.target(99.99)
.build())
.dataRecovery(V2PolicyDataRecoveryArgs.builder()
.timeBetweenBackupsInMinutes(60)
.build())
.multiAz(V2PolicyMultiAzArgs.builder()
.disasterRecoveryApproach("ACTIVE_ACTIVE")
.rpoInMinutes(5)
.rtoInMinutes(10)
.build())
.name("example-policy")
.description("Policy with multi-AZ and data recovery targets")
.tags(Map.of("Environment", "production"))
.build());
}
}
resources:
example:
type: aws:resiliencehub:V2Policy
properties:
availabilitySlo:
target: 99.99
dataRecovery:
timeBetweenBackupsInMinutes: 60
multiAz:
disasterRecoveryApproach: ACTIVE_ACTIVE
rpoInMinutes: 5
rtoInMinutes: 10
name: example-policy
description: Policy with multi-AZ and data recovery targets
tags:
Environment: production
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_resiliencehub_v2policy" "example" {
availability_slo = {
target = 99.99
}
data_recovery = {
time_between_backups_in_minutes = 60
}
multi_az = {
disaster_recovery_approach = "ACTIVE_ACTIVE"
rpo_in_minutes = 5
rto_in_minutes = 10
}
name = "example-policy"
description = "Policy with multi-AZ and data recovery targets"
tags = {
"Environment" = "production"
}
}
Multi-Region
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.resiliencehub.V2Policy("example", {
availabilitySlo: {
target: 99.95,
},
multiRegion: {
disasterRecoveryApproach: "ACTIVE_PASSIVE",
rpoInMinutes: 15,
rtoInMinutes: 30,
},
name: "example-multi-region-policy",
});
import pulumi
import pulumi_aws as aws
example = aws.resiliencehub.V2Policy("example",
availability_slo={
"target": 99.95,
},
multi_region={
"disaster_recovery_approach": "ACTIVE_PASSIVE",
"rpo_in_minutes": 15,
"rto_in_minutes": 30,
},
name="example-multi-region-policy")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/resiliencehub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resiliencehub.NewV2Policy(ctx, "example", &resiliencehub.V2PolicyArgs{
AvailabilitySlo: &resiliencehub.V2PolicyAvailabilitySloArgs{
Target: pulumi.Float64(99.95),
},
MultiRegion: &resiliencehub.V2PolicyMultiRegionArgs{
DisasterRecoveryApproach: pulumi.String("ACTIVE_PASSIVE"),
RpoInMinutes: pulumi.Int(15),
RtoInMinutes: pulumi.Int(30),
},
Name: pulumi.String("example-multi-region-policy"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ResilienceHub.V2Policy("example", new()
{
AvailabilitySlo = new Aws.ResilienceHub.Inputs.V2PolicyAvailabilitySloArgs
{
Target = 99.95,
},
MultiRegion = new Aws.ResilienceHub.Inputs.V2PolicyMultiRegionArgs
{
DisasterRecoveryApproach = "ACTIVE_PASSIVE",
RpoInMinutes = 15,
RtoInMinutes = 30,
},
Name = "example-multi-region-policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resiliencehub.V2Policy;
import com.pulumi.aws.resiliencehub.V2PolicyArgs;
import com.pulumi.aws.resiliencehub.inputs.V2PolicyAvailabilitySloArgs;
import com.pulumi.aws.resiliencehub.inputs.V2PolicyMultiRegionArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new V2Policy("example", V2PolicyArgs.builder()
.availabilitySlo(V2PolicyAvailabilitySloArgs.builder()
.target(99.95)
.build())
.multiRegion(V2PolicyMultiRegionArgs.builder()
.disasterRecoveryApproach("ACTIVE_PASSIVE")
.rpoInMinutes(15)
.rtoInMinutes(30)
.build())
.name("example-multi-region-policy")
.build());
}
}
resources:
example:
type: aws:resiliencehub:V2Policy
properties:
availabilitySlo:
target: 99.95
multiRegion:
disasterRecoveryApproach: ACTIVE_PASSIVE
rpoInMinutes: 15
rtoInMinutes: 30
name: example-multi-region-policy
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_resiliencehub_v2policy" "example" {
availability_slo = {
target = 99.95
}
multi_region = {
disaster_recovery_approach = "ACTIVE_PASSIVE"
rpo_in_minutes = 15
rto_in_minutes = 30
}
name = "example-multi-region-policy"
}
Create V2Policy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new V2Policy(name: string, args?: V2PolicyArgs, opts?: CustomResourceOptions);@overload
def V2Policy(resource_name: str,
args: Optional[V2PolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def V2Policy(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_slo: Optional[V2PolicyAvailabilitySloArgs] = None,
data_recovery: Optional[V2PolicyDataRecoveryArgs] = None,
description: Optional[str] = None,
kms_key_id: Optional[str] = None,
multi_az: Optional[V2PolicyMultiAzArgs] = None,
multi_region: Optional[V2PolicyMultiRegionArgs] = None,
name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewV2Policy(ctx *Context, name string, args *V2PolicyArgs, opts ...ResourceOption) (*V2Policy, error)public V2Policy(string name, V2PolicyArgs? args = null, CustomResourceOptions? opts = null)
public V2Policy(String name, V2PolicyArgs args)
public V2Policy(String name, V2PolicyArgs args, CustomResourceOptions options)
type: aws:resiliencehub:V2Policy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_resiliencehub_v2_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args V2PolicyArgs
- 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 V2PolicyArgs
- 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 V2PolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args V2PolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args V2PolicyArgs
- 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 v2policyResource = new Aws.ResilienceHub.V2Policy("v2policyResource", new()
{
AvailabilitySlo = new Aws.ResilienceHub.Inputs.V2PolicyAvailabilitySloArgs
{
Target = 0.0,
},
DataRecovery = new Aws.ResilienceHub.Inputs.V2PolicyDataRecoveryArgs
{
TimeBetweenBackupsInMinutes = 0,
},
Description = "string",
KmsKeyId = "string",
MultiAz = new Aws.ResilienceHub.Inputs.V2PolicyMultiAzArgs
{
DisasterRecoveryApproach = "string",
RpoInMinutes = 0,
RtoInMinutes = 0,
},
MultiRegion = new Aws.ResilienceHub.Inputs.V2PolicyMultiRegionArgs
{
DisasterRecoveryApproach = "string",
RpoInMinutes = 0,
RtoInMinutes = 0,
},
Name = "string",
Region = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := resiliencehub.NewV2Policy(ctx, "v2policyResource", &resiliencehub.V2PolicyArgs{
AvailabilitySlo: &resiliencehub.V2PolicyAvailabilitySloArgs{
Target: pulumi.Float64(0),
},
DataRecovery: &resiliencehub.V2PolicyDataRecoveryArgs{
TimeBetweenBackupsInMinutes: pulumi.Int(0),
},
Description: pulumi.String("string"),
KmsKeyId: pulumi.String("string"),
MultiAz: &resiliencehub.V2PolicyMultiAzArgs{
DisasterRecoveryApproach: pulumi.String("string"),
RpoInMinutes: pulumi.Int(0),
RtoInMinutes: pulumi.Int(0),
},
MultiRegion: &resiliencehub.V2PolicyMultiRegionArgs{
DisasterRecoveryApproach: pulumi.String("string"),
RpoInMinutes: pulumi.Int(0),
RtoInMinutes: pulumi.Int(0),
},
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "aws_resiliencehub_v2_policy" "v2policyResource" {
lifecycle {
create_before_destroy = true
}
availability_slo = {
target = 0
}
data_recovery = {
time_between_backups_in_minutes = 0
}
description = "string"
kms_key_id = "string"
multi_az = {
disaster_recovery_approach = "string"
rpo_in_minutes = 0
rto_in_minutes = 0
}
multi_region = {
disaster_recovery_approach = "string"
rpo_in_minutes = 0
rto_in_minutes = 0
}
name = "string"
region = "string"
tags = {
"string" = "string"
}
}
var v2policyResource = new V2Policy("v2policyResource", V2PolicyArgs.builder()
.availabilitySlo(V2PolicyAvailabilitySloArgs.builder()
.target(0.0)
.build())
.dataRecovery(V2PolicyDataRecoveryArgs.builder()
.timeBetweenBackupsInMinutes(0)
.build())
.description("string")
.kmsKeyId("string")
.multiAz(V2PolicyMultiAzArgs.builder()
.disasterRecoveryApproach("string")
.rpoInMinutes(0)
.rtoInMinutes(0)
.build())
.multiRegion(V2PolicyMultiRegionArgs.builder()
.disasterRecoveryApproach("string")
.rpoInMinutes(0)
.rtoInMinutes(0)
.build())
.name("string")
.region("string")
.tags(Map.of("string", "string"))
.build());
v2policy_resource = aws.resiliencehub.V2Policy("v2policyResource",
availability_slo={
"target": float(0),
},
data_recovery={
"time_between_backups_in_minutes": 0,
},
description="string",
kms_key_id="string",
multi_az={
"disaster_recovery_approach": "string",
"rpo_in_minutes": 0,
"rto_in_minutes": 0,
},
multi_region={
"disaster_recovery_approach": "string",
"rpo_in_minutes": 0,
"rto_in_minutes": 0,
},
name="string",
region="string",
tags={
"string": "string",
})
const v2policyResource = new aws.resiliencehub.V2Policy("v2policyResource", {
availabilitySlo: {
target: 0,
},
dataRecovery: {
timeBetweenBackupsInMinutes: 0,
},
description: "string",
kmsKeyId: "string",
multiAz: {
disasterRecoveryApproach: "string",
rpoInMinutes: 0,
rtoInMinutes: 0,
},
multiRegion: {
disasterRecoveryApproach: "string",
rpoInMinutes: 0,
rtoInMinutes: 0,
},
name: "string",
region: "string",
tags: {
string: "string",
},
});
type: aws:resiliencehub:V2Policy
properties:
availabilitySlo:
target: 0
dataRecovery:
timeBetweenBackupsInMinutes: 0
description: string
kmsKeyId: string
multiAz:
disasterRecoveryApproach: string
rpoInMinutes: 0
rtoInMinutes: 0
multiRegion:
disasterRecoveryApproach: string
rpoInMinutes: 0
rtoInMinutes: 0
name: string
region: string
tags:
string: string
V2Policy 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 V2Policy resource accepts the following input properties:
- Availability
Slo V2PolicyAvailability Slo - Availability SLO configuration. See
availabilitySloBlock below. - Data
Recovery V2PolicyData Recovery - Data recovery configuration. See
dataRecoveryBlock below. - Description string
- Description of the policy.
- Kms
Key stringId - KMS key ARN.
- Multi
Az V2PolicyMulti Az - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - Multi
Region V2PolicyMulti Region - Multi-region disaster recovery configuration. See
multiRegionBlock below. - Name string
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Availability
Slo V2PolicyAvailability Slo Args - Availability SLO configuration. See
availabilitySloBlock below. - Data
Recovery V2PolicyData Recovery Args - Data recovery configuration. See
dataRecoveryBlock below. - Description string
- Description of the policy.
- Kms
Key stringId - KMS key ARN.
- Multi
Az V2PolicyMulti Az Args - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - Multi
Region V2PolicyMulti Region Args - Multi-region disaster recovery configuration. See
multiRegionBlock below. - Name string
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability_
slo object - Availability SLO configuration. See
availabilitySloBlock below. - data_
recovery object - Data recovery configuration. See
dataRecoveryBlock below. - description string
- Description of the policy.
- kms_
key_ stringid - KMS key ARN.
- multi_
az object - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi_
region object - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name string
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map(string)
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability
Slo V2PolicyAvailability Slo - Availability SLO configuration. See
availabilitySloBlock below. - data
Recovery V2PolicyData Recovery - Data recovery configuration. See
dataRecoveryBlock below. - description String
- Description of the policy.
- kms
Key StringId - KMS key ARN.
- multi
Az V2PolicyMulti Az - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Region V2PolicyMulti Region - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name String
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability
Slo V2PolicyAvailability Slo - Availability SLO configuration. See
availabilitySloBlock below. - data
Recovery V2PolicyData Recovery - Data recovery configuration. See
dataRecoveryBlock below. - description string
- Description of the policy.
- kms
Key stringId - KMS key ARN.
- multi
Az V2PolicyMulti Az - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Region V2PolicyMulti Region - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name string
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability_
slo V2PolicyAvailability Slo Args - Availability SLO configuration. See
availabilitySloBlock below. - data_
recovery V2PolicyData Recovery Args - Data recovery configuration. See
dataRecoveryBlock below. - description str
- Description of the policy.
- kms_
key_ strid - KMS key ARN.
- multi_
az V2PolicyMulti Az Args - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi_
region V2PolicyMulti Region Args - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name str
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability
Slo Property Map - Availability SLO configuration. See
availabilitySloBlock below. - data
Recovery Property Map - Data recovery configuration. See
dataRecoveryBlock below. - description String
- Description of the policy.
- kms
Key StringId - KMS key ARN.
- multi
Az Property Map - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Region Property Map - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name String
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the V2Policy resource produces the following output properties:
Look up Existing V2Policy Resource
Get an existing V2Policy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: V2PolicyState, opts?: CustomResourceOptions): V2Policy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
availability_slo: Optional[V2PolicyAvailabilitySloArgs] = None,
data_recovery: Optional[V2PolicyDataRecoveryArgs] = None,
description: Optional[str] = None,
kms_key_id: Optional[str] = None,
multi_az: Optional[V2PolicyMultiAzArgs] = None,
multi_region: Optional[V2PolicyMultiRegionArgs] = None,
name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> V2Policyfunc GetV2Policy(ctx *Context, name string, id IDInput, state *V2PolicyState, opts ...ResourceOption) (*V2Policy, error)public static V2Policy Get(string name, Input<string> id, V2PolicyState? state, CustomResourceOptions? opts = null)public static V2Policy get(String name, Output<String> id, V2PolicyState state, CustomResourceOptions options)resources: _: type: aws:resiliencehub:V2Policy get: id: ${id}import {
to = aws_resiliencehub_v2_policy.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the policy.
- Availability
Slo V2PolicyAvailability Slo - Availability SLO configuration. See
availabilitySloBlock below. - Data
Recovery V2PolicyData Recovery - Data recovery configuration. See
dataRecoveryBlock below. - Description string
- Description of the policy.
- Kms
Key stringId - KMS key ARN.
- Multi
Az V2PolicyMulti Az - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - Multi
Region V2PolicyMulti Region - Multi-region disaster recovery configuration. See
multiRegionBlock below. - Name string
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- ARN of the policy.
- Availability
Slo V2PolicyAvailability Slo Args - Availability SLO configuration. See
availabilitySloBlock below. - Data
Recovery V2PolicyData Recovery Args - Data recovery configuration. See
dataRecoveryBlock below. - Description string
- Description of the policy.
- Kms
Key stringId - KMS key ARN.
- Multi
Az V2PolicyMulti Az Args - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - Multi
Region V2PolicyMulti Region Args - Multi-region disaster recovery configuration. See
multiRegionBlock below. - Name string
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the policy.
- availability_
slo object - Availability SLO configuration. See
availabilitySloBlock below. - data_
recovery object - Data recovery configuration. See
dataRecoveryBlock below. - description string
- Description of the policy.
- kms_
key_ stringid - KMS key ARN.
- multi_
az object - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi_
region object - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name string
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map(string)
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the policy.
- availability
Slo V2PolicyAvailability Slo - Availability SLO configuration. See
availabilitySloBlock below. - data
Recovery V2PolicyData Recovery - Data recovery configuration. See
dataRecoveryBlock below. - description String
- Description of the policy.
- kms
Key StringId - KMS key ARN.
- multi
Az V2PolicyMulti Az - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Region V2PolicyMulti Region - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name String
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the policy.
- availability
Slo V2PolicyAvailability Slo - Availability SLO configuration. See
availabilitySloBlock below. - data
Recovery V2PolicyData Recovery - Data recovery configuration. See
dataRecoveryBlock below. - description string
- Description of the policy.
- kms
Key stringId - KMS key ARN.
- multi
Az V2PolicyMulti Az - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Region V2PolicyMulti Region - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name string
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- ARN of the policy.
- availability_
slo V2PolicyAvailability Slo Args - Availability SLO configuration. See
availabilitySloBlock below. - data_
recovery V2PolicyData Recovery Args - Data recovery configuration. See
dataRecoveryBlock below. - description str
- Description of the policy.
- kms_
key_ strid - KMS key ARN.
- multi_
az V2PolicyMulti Az Args - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi_
region V2PolicyMulti Region Args - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name str
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the policy.
- availability
Slo Property Map - Availability SLO configuration. See
availabilitySloBlock below. - data
Recovery Property Map - Data recovery configuration. See
dataRecoveryBlock below. - description String
- Description of the policy.
- kms
Key StringId - KMS key ARN.
- multi
Az Property Map - Multi-AZ disaster recovery configuration. See
multiAzBlock below. - multi
Region Property Map - Multi-region disaster recovery configuration. See
multiRegionBlock below. - name String
Name of the policy. Changing this value requires creating a new resource.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Supporting Types
V2PolicyAvailabilitySlo, V2PolicyAvailabilitySloArgs
- Target double
- Availability target as a percentage (e.g.,
99.9).
- Target float64
- Availability target as a percentage (e.g.,
99.9).
- target number
- Availability target as a percentage (e.g.,
99.9).
- target Double
- Availability target as a percentage (e.g.,
99.9).
- target number
- Availability target as a percentage (e.g.,
99.9).
- target float
- Availability target as a percentage (e.g.,
99.9).
- target Number
- Availability target as a percentage (e.g.,
99.9).
V2PolicyDataRecovery, V2PolicyDataRecoveryArgs
- Time
Between intBackups In Minutes - Maximum time between backups in minutes.
- Time
Between intBackups In Minutes - Maximum time between backups in minutes.
- time_
between_ numberbackups_ in_ minutes - Maximum time between backups in minutes.
- time
Between IntegerBackups In Minutes - Maximum time between backups in minutes.
- time
Between numberBackups In Minutes - Maximum time between backups in minutes.
- time_
between_ intbackups_ in_ minutes - Maximum time between backups in minutes.
- time
Between NumberBackups In Minutes - Maximum time between backups in minutes.
V2PolicyMultiAz, V2PolicyMultiAzArgs
- Disaster
Recovery stringApproach - Multi-AZ disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - Rpo
In intMinutes - Recovery point objective in minutes.
- Rto
In intMinutes - Recovery time objective in minutes.
- Disaster
Recovery stringApproach - Multi-AZ disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - Rpo
In intMinutes - Recovery point objective in minutes.
- Rto
In intMinutes - Recovery time objective in minutes.
- disaster_
recovery_ stringapproach - Multi-AZ disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo_
in_ numberminutes - Recovery point objective in minutes.
- rto_
in_ numberminutes - Recovery time objective in minutes.
- disaster
Recovery StringApproach - Multi-AZ disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo
In IntegerMinutes - Recovery point objective in minutes.
- rto
In IntegerMinutes - Recovery time objective in minutes.
- disaster
Recovery stringApproach - Multi-AZ disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo
In numberMinutes - Recovery point objective in minutes.
- rto
In numberMinutes - Recovery time objective in minutes.
- disaster_
recovery_ strapproach - Multi-AZ disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo_
in_ intminutes - Recovery point objective in minutes.
- rto_
in_ intminutes - Recovery time objective in minutes.
- disaster
Recovery StringApproach - Multi-AZ disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo
In NumberMinutes - Recovery point objective in minutes.
- rto
In NumberMinutes - Recovery time objective in minutes.
V2PolicyMultiRegion, V2PolicyMultiRegionArgs
- Disaster
Recovery stringApproach - Multi-region disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - Rpo
In intMinutes - Recovery point objective in minutes.
- Rto
In intMinutes - Recovery time objective in minutes.
- Disaster
Recovery stringApproach - Multi-region disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - Rpo
In intMinutes - Recovery point objective in minutes.
- Rto
In intMinutes - Recovery time objective in minutes.
- disaster_
recovery_ stringapproach - Multi-region disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo_
in_ numberminutes - Recovery point objective in minutes.
- rto_
in_ numberminutes - Recovery time objective in minutes.
- disaster
Recovery StringApproach - Multi-region disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo
In IntegerMinutes - Recovery point objective in minutes.
- rto
In IntegerMinutes - Recovery time objective in minutes.
- disaster
Recovery stringApproach - Multi-region disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo
In numberMinutes - Recovery point objective in minutes.
- rto
In numberMinutes - Recovery time objective in minutes.
- disaster_
recovery_ strapproach - Multi-region disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo_
in_ intminutes - Recovery point objective in minutes.
- rto_
in_ intminutes - Recovery time objective in minutes.
- disaster
Recovery StringApproach - Multi-region disaster recovery approach. Valid values:
ACTIVE_ACTIVE,HOT_STANDBY,WARM_STANDBY,PILOT_LIGHT,BACKUP_AND_RESTORE. - rpo
In NumberMinutes - Recovery point objective in minutes.
- rto
In NumberMinutes - Recovery time objective in minutes.
Import
Identity Schema
Required
arn(String) ARN of the Resilience Hub V2 Policy.
Using pulumi import, import Resilience Hub V2 Policy using the arn. For example:
$ pulumi import aws:resiliencehub/v2Policy:V2Policy example arn:aws:resiliencehub:us-west-2:123456789012:policy/example-policy:abc123
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, Sep 10, 2026 by Pulumi