1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. resiliencehub
  6. V2Policy
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.46.0
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:

    AvailabilitySlo V2PolicyAvailabilitySlo
    Availability SLO configuration. See availabilitySlo Block below.
    DataRecovery V2PolicyDataRecovery
    Data recovery configuration. See dataRecovery Block below.
    Description string
    Description of the policy.
    KmsKeyId string
    KMS key ARN.
    MultiAz V2PolicyMultiAz
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    MultiRegion V2PolicyMultiRegion
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    AvailabilitySlo V2PolicyAvailabilitySloArgs
    Availability SLO configuration. See availabilitySlo Block below.
    DataRecovery V2PolicyDataRecoveryArgs
    Data recovery configuration. See dataRecovery Block below.
    Description string
    Description of the policy.
    KmsKeyId string
    KMS key ARN.
    MultiAz V2PolicyMultiAzArgs
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    MultiRegion V2PolicyMultiRegionArgs
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    availability_slo object
    Availability SLO configuration. See availabilitySlo Block below.
    data_recovery object
    Data recovery configuration. See dataRecovery Block below.
    description string
    Description of the policy.
    kms_key_id string
    KMS key ARN.
    multi_az object
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multi_region object
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags map(string)
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    availabilitySlo V2PolicyAvailabilitySlo
    Availability SLO configuration. See availabilitySlo Block below.
    dataRecovery V2PolicyDataRecovery
    Data recovery configuration. See dataRecovery Block below.
    description String
    Description of the policy.
    kmsKeyId String
    KMS key ARN.
    multiAz V2PolicyMultiAz
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multiRegion V2PolicyMultiRegion
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    availabilitySlo V2PolicyAvailabilitySlo
    Availability SLO configuration. See availabilitySlo Block below.
    dataRecovery V2PolicyDataRecovery
    Data recovery configuration. See dataRecovery Block below.
    description string
    Description of the policy.
    kmsKeyId string
    KMS key ARN.
    multiAz V2PolicyMultiAz
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multiRegion V2PolicyMultiRegion
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    availability_slo V2PolicyAvailabilitySloArgs
    Availability SLO configuration. See availabilitySlo Block below.
    data_recovery V2PolicyDataRecoveryArgs
    Data recovery configuration. See dataRecovery Block below.
    description str
    Description of the policy.
    kms_key_id str
    KMS key ARN.
    multi_az V2PolicyMultiAzArgs
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multi_region V2PolicyMultiRegionArgs
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    availabilitySlo Property Map
    Availability SLO configuration. See availabilitySlo Block below.
    dataRecovery Property Map
    Data recovery configuration. See dataRecovery Block below.
    description String
    Description of the policy.
    kmsKeyId String
    KMS key ARN.
    multiAz Property Map
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multiRegion Property Map
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration 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:

    Arn string
    ARN of the policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the policy.
    id string
    The provider-assigned unique ID for this managed resource.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the policy.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the policy.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the policy.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the policy.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    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) -> V2Policy
    func 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.
    The following state arguments are supported:
    Arn string
    ARN of the policy.
    AvailabilitySlo V2PolicyAvailabilitySlo
    Availability SLO configuration. See availabilitySlo Block below.
    DataRecovery V2PolicyDataRecovery
    Data recovery configuration. See dataRecovery Block below.
    Description string
    Description of the policy.
    KmsKeyId string
    KMS key ARN.
    MultiAz V2PolicyMultiAz
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    MultiRegion V2PolicyMultiRegion
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the policy.
    AvailabilitySlo V2PolicyAvailabilitySloArgs
    Availability SLO configuration. See availabilitySlo Block below.
    DataRecovery V2PolicyDataRecoveryArgs
    Data recovery configuration. See dataRecovery Block below.
    Description string
    Description of the policy.
    KmsKeyId string
    KMS key ARN.
    MultiAz V2PolicyMultiAzArgs
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    MultiRegion V2PolicyMultiRegionArgs
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the policy.
    availability_slo object
    Availability SLO configuration. See availabilitySlo Block below.
    data_recovery object
    Data recovery configuration. See dataRecovery Block below.
    description string
    Description of the policy.
    kms_key_id string
    KMS key ARN.
    multi_az object
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multi_region object
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags map(string)
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the policy.
    availabilitySlo V2PolicyAvailabilitySlo
    Availability SLO configuration. See availabilitySlo Block below.
    dataRecovery V2PolicyDataRecovery
    Data recovery configuration. See dataRecovery Block below.
    description String
    Description of the policy.
    kmsKeyId String
    KMS key ARN.
    multiAz V2PolicyMultiAz
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multiRegion V2PolicyMultiRegion
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the policy.
    availabilitySlo V2PolicyAvailabilitySlo
    Availability SLO configuration. See availabilitySlo Block below.
    dataRecovery V2PolicyDataRecovery
    Data recovery configuration. See dataRecovery Block below.
    description string
    Description of the policy.
    kmsKeyId string
    KMS key ARN.
    multiAz V2PolicyMultiAz
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multiRegion V2PolicyMultiRegion
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the policy.
    availability_slo V2PolicyAvailabilitySloArgs
    Availability SLO configuration. See availabilitySlo Block below.
    data_recovery V2PolicyDataRecoveryArgs
    Data recovery configuration. See dataRecovery Block below.
    description str
    Description of the policy.
    kms_key_id str
    KMS key ARN.
    multi_az V2PolicyMultiAzArgs
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multi_region V2PolicyMultiRegionArgs
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the policy.
    availabilitySlo Property Map
    Availability SLO configuration. See availabilitySlo Block below.
    dataRecovery Property Map
    Data recovery configuration. See dataRecovery Block below.
    description String
    Description of the policy.
    kmsKeyId String
    KMS key ARN.
    multiAz Property Map
    Multi-AZ disaster recovery configuration. See multiAz Block below.
    multiRegion Property Map
    Multi-region disaster recovery configuration. See multiRegion Block 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.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration 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

    TimeBetweenBackupsInMinutes int
    Maximum time between backups in minutes.
    TimeBetweenBackupsInMinutes int
    Maximum time between backups in minutes.
    time_between_backups_in_minutes number
    Maximum time between backups in minutes.
    timeBetweenBackupsInMinutes Integer
    Maximum time between backups in minutes.
    timeBetweenBackupsInMinutes number
    Maximum time between backups in minutes.
    time_between_backups_in_minutes int
    Maximum time between backups in minutes.
    timeBetweenBackupsInMinutes Number
    Maximum time between backups in minutes.

    V2PolicyMultiAz, V2PolicyMultiAzArgs

    DisasterRecoveryApproach string
    Multi-AZ disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    RpoInMinutes int
    Recovery point objective in minutes.
    RtoInMinutes int
    Recovery time objective in minutes.
    DisasterRecoveryApproach string
    Multi-AZ disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    RpoInMinutes int
    Recovery point objective in minutes.
    RtoInMinutes int
    Recovery time objective in minutes.
    disaster_recovery_approach string
    Multi-AZ disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpo_in_minutes number
    Recovery point objective in minutes.
    rto_in_minutes number
    Recovery time objective in minutes.
    disasterRecoveryApproach String
    Multi-AZ disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpoInMinutes Integer
    Recovery point objective in minutes.
    rtoInMinutes Integer
    Recovery time objective in minutes.
    disasterRecoveryApproach string
    Multi-AZ disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpoInMinutes number
    Recovery point objective in minutes.
    rtoInMinutes number
    Recovery time objective in minutes.
    disaster_recovery_approach str
    Multi-AZ disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpo_in_minutes int
    Recovery point objective in minutes.
    rto_in_minutes int
    Recovery time objective in minutes.
    disasterRecoveryApproach String
    Multi-AZ disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpoInMinutes Number
    Recovery point objective in minutes.
    rtoInMinutes Number
    Recovery time objective in minutes.

    V2PolicyMultiRegion, V2PolicyMultiRegionArgs

    DisasterRecoveryApproach string
    Multi-region disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    RpoInMinutes int
    Recovery point objective in minutes.
    RtoInMinutes int
    Recovery time objective in minutes.
    DisasterRecoveryApproach string
    Multi-region disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    RpoInMinutes int
    Recovery point objective in minutes.
    RtoInMinutes int
    Recovery time objective in minutes.
    disaster_recovery_approach string
    Multi-region disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpo_in_minutes number
    Recovery point objective in minutes.
    rto_in_minutes number
    Recovery time objective in minutes.
    disasterRecoveryApproach String
    Multi-region disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpoInMinutes Integer
    Recovery point objective in minutes.
    rtoInMinutes Integer
    Recovery time objective in minutes.
    disasterRecoveryApproach string
    Multi-region disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpoInMinutes number
    Recovery point objective in minutes.
    rtoInMinutes number
    Recovery time objective in minutes.
    disaster_recovery_approach str
    Multi-region disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpo_in_minutes int
    Recovery point objective in minutes.
    rto_in_minutes int
    Recovery time objective in minutes.
    disasterRecoveryApproach String
    Multi-region disaster recovery approach. Valid values: ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE.
    rpoInMinutes Number
    Recovery point objective in minutes.
    rtoInMinutes Number
    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 aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.46.0
    published on Thursday, Sep 10, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial