1. Packages
  2. AWS
  3. API Docs
  4. backup
  5. RestoreTestingSelection
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.backup.RestoreTestingSelection

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Resource for managing an AWS Backup Restore Testing Selection.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.backup.RestoreTestingSelection("example", {
        name: "ec2_selection",
        restoreTestingPlanName: exampleAwsBackupRestoreTestingPlan.name,
        protectedResourceType: "EC2",
        iamRoleArn: exampleAwsIamRole.arn,
        protectedResourceArns: ["*"],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.backup.RestoreTestingSelection("example",
        name="ec2_selection",
        restore_testing_plan_name=example_aws_backup_restore_testing_plan["name"],
        protected_resource_type="EC2",
        iam_role_arn=example_aws_iam_role["arn"],
        protected_resource_arns=["*"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/backup"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := backup.NewRestoreTestingSelection(ctx, "example", &backup.RestoreTestingSelectionArgs{
    			Name:                   pulumi.String("ec2_selection"),
    			RestoreTestingPlanName: pulumi.Any(exampleAwsBackupRestoreTestingPlan.Name),
    			ProtectedResourceType:  pulumi.String("EC2"),
    			IamRoleArn:             pulumi.Any(exampleAwsIamRole.Arn),
    			ProtectedResourceArns: pulumi.StringArray{
    				pulumi.String("*"),
    			},
    		})
    		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.Backup.RestoreTestingSelection("example", new()
        {
            Name = "ec2_selection",
            RestoreTestingPlanName = exampleAwsBackupRestoreTestingPlan.Name,
            ProtectedResourceType = "EC2",
            IamRoleArn = exampleAwsIamRole.Arn,
            ProtectedResourceArns = new[]
            {
                "*",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.backup.RestoreTestingSelection;
    import com.pulumi.aws.backup.RestoreTestingSelectionArgs;
    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 example = new RestoreTestingSelection("example", RestoreTestingSelectionArgs.builder()
                .name("ec2_selection")
                .restoreTestingPlanName(exampleAwsBackupRestoreTestingPlan.name())
                .protectedResourceType("EC2")
                .iamRoleArn(exampleAwsIamRole.arn())
                .protectedResourceArns("*")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:backup:RestoreTestingSelection
        properties:
          name: ec2_selection
          restoreTestingPlanName: ${exampleAwsBackupRestoreTestingPlan.name}
          protectedResourceType: EC2
          iamRoleArn: ${exampleAwsIamRole.arn}
          protectedResourceArns:
            - '*'
    

    Advanced Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.backup.RestoreTestingSelection("example", {
        name: "ec2_selection",
        restoreTestingPlanName: exampleAwsBackupRestoreTestingPlan.name,
        protectedResourceType: "EC2",
        iamRoleArn: exampleAwsIamRole.arn,
        protectedResourceConditions: {
            stringEquals: [{
                key: "aws:ResourceTag/backup",
                value: "true",
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.backup.RestoreTestingSelection("example",
        name="ec2_selection",
        restore_testing_plan_name=example_aws_backup_restore_testing_plan["name"],
        protected_resource_type="EC2",
        iam_role_arn=example_aws_iam_role["arn"],
        protected_resource_conditions={
            "string_equals": [{
                "key": "aws:ResourceTag/backup",
                "value": "true",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/backup"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := backup.NewRestoreTestingSelection(ctx, "example", &backup.RestoreTestingSelectionArgs{
    			Name:                   pulumi.String("ec2_selection"),
    			RestoreTestingPlanName: pulumi.Any(exampleAwsBackupRestoreTestingPlan.Name),
    			ProtectedResourceType:  pulumi.String("EC2"),
    			IamRoleArn:             pulumi.Any(exampleAwsIamRole.Arn),
    			ProtectedResourceConditions: &backup.RestoreTestingSelectionProtectedResourceConditionsArgs{
    				StringEquals: backup.RestoreTestingSelectionProtectedResourceConditionsStringEqualArray{
    					&backup.RestoreTestingSelectionProtectedResourceConditionsStringEqualArgs{
    						Key:   pulumi.String("aws:ResourceTag/backup"),
    						Value: pulumi.String("true"),
    					},
    				},
    			},
    		})
    		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.Backup.RestoreTestingSelection("example", new()
        {
            Name = "ec2_selection",
            RestoreTestingPlanName = exampleAwsBackupRestoreTestingPlan.Name,
            ProtectedResourceType = "EC2",
            IamRoleArn = exampleAwsIamRole.Arn,
            ProtectedResourceConditions = new Aws.Backup.Inputs.RestoreTestingSelectionProtectedResourceConditionsArgs
            {
                StringEquals = new[]
                {
                    new Aws.Backup.Inputs.RestoreTestingSelectionProtectedResourceConditionsStringEqualArgs
                    {
                        Key = "aws:ResourceTag/backup",
                        Value = "true",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.backup.RestoreTestingSelection;
    import com.pulumi.aws.backup.RestoreTestingSelectionArgs;
    import com.pulumi.aws.backup.inputs.RestoreTestingSelectionProtectedResourceConditionsArgs;
    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 example = new RestoreTestingSelection("example", RestoreTestingSelectionArgs.builder()
                .name("ec2_selection")
                .restoreTestingPlanName(exampleAwsBackupRestoreTestingPlan.name())
                .protectedResourceType("EC2")
                .iamRoleArn(exampleAwsIamRole.arn())
                .protectedResourceConditions(RestoreTestingSelectionProtectedResourceConditionsArgs.builder()
                    .stringEquals(RestoreTestingSelectionProtectedResourceConditionsStringEqualArgs.builder()
                        .key("aws:ResourceTag/backup")
                        .value(true)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:backup:RestoreTestingSelection
        properties:
          name: ec2_selection
          restoreTestingPlanName: ${exampleAwsBackupRestoreTestingPlan.name}
          protectedResourceType: EC2
          iamRoleArn: ${exampleAwsIamRole.arn}
          protectedResourceConditions:
            stringEquals:
              - key: aws:ResourceTag/backup
                value: true
    

    Create RestoreTestingSelection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RestoreTestingSelection(name: string, args: RestoreTestingSelectionArgs, opts?: CustomResourceOptions);
    @overload
    def RestoreTestingSelection(resource_name: str,
                                args: RestoreTestingSelectionArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def RestoreTestingSelection(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                iam_role_arn: Optional[str] = None,
                                protected_resource_type: Optional[str] = None,
                                restore_testing_plan_name: Optional[str] = None,
                                name: Optional[str] = None,
                                protected_resource_arns: Optional[Sequence[str]] = None,
                                protected_resource_conditions: Optional[RestoreTestingSelectionProtectedResourceConditionsArgs] = None,
                                restore_metadata_overrides: Optional[Mapping[str, str]] = None,
                                validation_window_hours: Optional[int] = None)
    func NewRestoreTestingSelection(ctx *Context, name string, args RestoreTestingSelectionArgs, opts ...ResourceOption) (*RestoreTestingSelection, error)
    public RestoreTestingSelection(string name, RestoreTestingSelectionArgs args, CustomResourceOptions? opts = null)
    public RestoreTestingSelection(String name, RestoreTestingSelectionArgs args)
    public RestoreTestingSelection(String name, RestoreTestingSelectionArgs args, CustomResourceOptions options)
    
    type: aws:backup:RestoreTestingSelection
    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 RestoreTestingSelectionArgs
    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 RestoreTestingSelectionArgs
    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 RestoreTestingSelectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RestoreTestingSelectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RestoreTestingSelectionArgs
    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 restoreTestingSelectionResource = new Aws.Backup.RestoreTestingSelection("restoreTestingSelectionResource", new()
    {
        IamRoleArn = "string",
        ProtectedResourceType = "string",
        RestoreTestingPlanName = "string",
        Name = "string",
        ProtectedResourceArns = new[]
        {
            "string",
        },
        ProtectedResourceConditions = new Aws.Backup.Inputs.RestoreTestingSelectionProtectedResourceConditionsArgs
        {
            StringEquals = new[]
            {
                new Aws.Backup.Inputs.RestoreTestingSelectionProtectedResourceConditionsStringEqualArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
            StringNotEquals = new[]
            {
                new Aws.Backup.Inputs.RestoreTestingSelectionProtectedResourceConditionsStringNotEqualArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
        },
        RestoreMetadataOverrides = 
        {
            { "string", "string" },
        },
        ValidationWindowHours = 0,
    });
    
    example, err := backup.NewRestoreTestingSelection(ctx, "restoreTestingSelectionResource", &backup.RestoreTestingSelectionArgs{
    	IamRoleArn:             pulumi.String("string"),
    	ProtectedResourceType:  pulumi.String("string"),
    	RestoreTestingPlanName: pulumi.String("string"),
    	Name:                   pulumi.String("string"),
    	ProtectedResourceArns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ProtectedResourceConditions: &backup.RestoreTestingSelectionProtectedResourceConditionsArgs{
    		StringEquals: backup.RestoreTestingSelectionProtectedResourceConditionsStringEqualArray{
    			&backup.RestoreTestingSelectionProtectedResourceConditionsStringEqualArgs{
    				Key:   pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		StringNotEquals: backup.RestoreTestingSelectionProtectedResourceConditionsStringNotEqualArray{
    			&backup.RestoreTestingSelectionProtectedResourceConditionsStringNotEqualArgs{
    				Key:   pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    	},
    	RestoreMetadataOverrides: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ValidationWindowHours: pulumi.Int(0),
    })
    
    var restoreTestingSelectionResource = new RestoreTestingSelection("restoreTestingSelectionResource", RestoreTestingSelectionArgs.builder()
        .iamRoleArn("string")
        .protectedResourceType("string")
        .restoreTestingPlanName("string")
        .name("string")
        .protectedResourceArns("string")
        .protectedResourceConditions(RestoreTestingSelectionProtectedResourceConditionsArgs.builder()
            .stringEquals(RestoreTestingSelectionProtectedResourceConditionsStringEqualArgs.builder()
                .key("string")
                .value("string")
                .build())
            .stringNotEquals(RestoreTestingSelectionProtectedResourceConditionsStringNotEqualArgs.builder()
                .key("string")
                .value("string")
                .build())
            .build())
        .restoreMetadataOverrides(Map.of("string", "string"))
        .validationWindowHours(0)
        .build());
    
    restore_testing_selection_resource = aws.backup.RestoreTestingSelection("restoreTestingSelectionResource",
        iam_role_arn="string",
        protected_resource_type="string",
        restore_testing_plan_name="string",
        name="string",
        protected_resource_arns=["string"],
        protected_resource_conditions={
            "string_equals": [{
                "key": "string",
                "value": "string",
            }],
            "string_not_equals": [{
                "key": "string",
                "value": "string",
            }],
        },
        restore_metadata_overrides={
            "string": "string",
        },
        validation_window_hours=0)
    
    const restoreTestingSelectionResource = new aws.backup.RestoreTestingSelection("restoreTestingSelectionResource", {
        iamRoleArn: "string",
        protectedResourceType: "string",
        restoreTestingPlanName: "string",
        name: "string",
        protectedResourceArns: ["string"],
        protectedResourceConditions: {
            stringEquals: [{
                key: "string",
                value: "string",
            }],
            stringNotEquals: [{
                key: "string",
                value: "string",
            }],
        },
        restoreMetadataOverrides: {
            string: "string",
        },
        validationWindowHours: 0,
    });
    
    type: aws:backup:RestoreTestingSelection
    properties:
        iamRoleArn: string
        name: string
        protectedResourceArns:
            - string
        protectedResourceConditions:
            stringEquals:
                - key: string
                  value: string
            stringNotEquals:
                - key: string
                  value: string
        protectedResourceType: string
        restoreMetadataOverrides:
            string: string
        restoreTestingPlanName: string
        validationWindowHours: 0
    

    RestoreTestingSelection 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 RestoreTestingSelection resource accepts the following input properties:

    IamRoleArn string
    The ARN of the IAM role.
    ProtectedResourceType string
    The type of the protected resource.
    RestoreTestingPlanName string
    The name of the restore testing plan.
    Name string
    The name of the backup restore testing selection.
    ProtectedResourceArns List<string>
    The ARNs for the protected resources.
    ProtectedResourceConditions RestoreTestingSelectionProtectedResourceConditions
    The conditions for the protected resource.
    RestoreMetadataOverrides Dictionary<string, string>
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    ValidationWindowHours int
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    IamRoleArn string
    The ARN of the IAM role.
    ProtectedResourceType string
    The type of the protected resource.
    RestoreTestingPlanName string
    The name of the restore testing plan.
    Name string
    The name of the backup restore testing selection.
    ProtectedResourceArns []string
    The ARNs for the protected resources.
    ProtectedResourceConditions RestoreTestingSelectionProtectedResourceConditionsArgs
    The conditions for the protected resource.
    RestoreMetadataOverrides map[string]string
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    ValidationWindowHours int
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    iamRoleArn String
    The ARN of the IAM role.
    protectedResourceType String
    The type of the protected resource.
    restoreTestingPlanName String
    The name of the restore testing plan.
    name String
    The name of the backup restore testing selection.
    protectedResourceArns List<String>
    The ARNs for the protected resources.
    protectedResourceConditions RestoreTestingSelectionProtectedResourceConditions
    The conditions for the protected resource.
    restoreMetadataOverrides Map<String,String>
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    validationWindowHours Integer
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    iamRoleArn string
    The ARN of the IAM role.
    protectedResourceType string
    The type of the protected resource.
    restoreTestingPlanName string
    The name of the restore testing plan.
    name string
    The name of the backup restore testing selection.
    protectedResourceArns string[]
    The ARNs for the protected resources.
    protectedResourceConditions RestoreTestingSelectionProtectedResourceConditions
    The conditions for the protected resource.
    restoreMetadataOverrides {[key: string]: string}
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    validationWindowHours number
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    iam_role_arn str
    The ARN of the IAM role.
    protected_resource_type str
    The type of the protected resource.
    restore_testing_plan_name str
    The name of the restore testing plan.
    name str
    The name of the backup restore testing selection.
    protected_resource_arns Sequence[str]
    The ARNs for the protected resources.
    protected_resource_conditions RestoreTestingSelectionProtectedResourceConditionsArgs
    The conditions for the protected resource.
    restore_metadata_overrides Mapping[str, str]
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    validation_window_hours int
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    iamRoleArn String
    The ARN of the IAM role.
    protectedResourceType String
    The type of the protected resource.
    restoreTestingPlanName String
    The name of the restore testing plan.
    name String
    The name of the backup restore testing selection.
    protectedResourceArns List<String>
    The ARNs for the protected resources.
    protectedResourceConditions Property Map
    The conditions for the protected resource.
    restoreMetadataOverrides Map<String>
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    validationWindowHours Number
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RestoreTestingSelection resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RestoreTestingSelection Resource

    Get an existing RestoreTestingSelection 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?: RestoreTestingSelectionState, opts?: CustomResourceOptions): RestoreTestingSelection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            iam_role_arn: Optional[str] = None,
            name: Optional[str] = None,
            protected_resource_arns: Optional[Sequence[str]] = None,
            protected_resource_conditions: Optional[RestoreTestingSelectionProtectedResourceConditionsArgs] = None,
            protected_resource_type: Optional[str] = None,
            restore_metadata_overrides: Optional[Mapping[str, str]] = None,
            restore_testing_plan_name: Optional[str] = None,
            validation_window_hours: Optional[int] = None) -> RestoreTestingSelection
    func GetRestoreTestingSelection(ctx *Context, name string, id IDInput, state *RestoreTestingSelectionState, opts ...ResourceOption) (*RestoreTestingSelection, error)
    public static RestoreTestingSelection Get(string name, Input<string> id, RestoreTestingSelectionState? state, CustomResourceOptions? opts = null)
    public static RestoreTestingSelection get(String name, Output<String> id, RestoreTestingSelectionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    IamRoleArn string
    The ARN of the IAM role.
    Name string
    The name of the backup restore testing selection.
    ProtectedResourceArns List<string>
    The ARNs for the protected resources.
    ProtectedResourceConditions RestoreTestingSelectionProtectedResourceConditions
    The conditions for the protected resource.
    ProtectedResourceType string
    The type of the protected resource.
    RestoreMetadataOverrides Dictionary<string, string>
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    RestoreTestingPlanName string
    The name of the restore testing plan.
    ValidationWindowHours int
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    IamRoleArn string
    The ARN of the IAM role.
    Name string
    The name of the backup restore testing selection.
    ProtectedResourceArns []string
    The ARNs for the protected resources.
    ProtectedResourceConditions RestoreTestingSelectionProtectedResourceConditionsArgs
    The conditions for the protected resource.
    ProtectedResourceType string
    The type of the protected resource.
    RestoreMetadataOverrides map[string]string
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    RestoreTestingPlanName string
    The name of the restore testing plan.
    ValidationWindowHours int
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    iamRoleArn String
    The ARN of the IAM role.
    name String
    The name of the backup restore testing selection.
    protectedResourceArns List<String>
    The ARNs for the protected resources.
    protectedResourceConditions RestoreTestingSelectionProtectedResourceConditions
    The conditions for the protected resource.
    protectedResourceType String
    The type of the protected resource.
    restoreMetadataOverrides Map<String,String>
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    restoreTestingPlanName String
    The name of the restore testing plan.
    validationWindowHours Integer
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    iamRoleArn string
    The ARN of the IAM role.
    name string
    The name of the backup restore testing selection.
    protectedResourceArns string[]
    The ARNs for the protected resources.
    protectedResourceConditions RestoreTestingSelectionProtectedResourceConditions
    The conditions for the protected resource.
    protectedResourceType string
    The type of the protected resource.
    restoreMetadataOverrides {[key: string]: string}
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    restoreTestingPlanName string
    The name of the restore testing plan.
    validationWindowHours number
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    iam_role_arn str
    The ARN of the IAM role.
    name str
    The name of the backup restore testing selection.
    protected_resource_arns Sequence[str]
    The ARNs for the protected resources.
    protected_resource_conditions RestoreTestingSelectionProtectedResourceConditionsArgs
    The conditions for the protected resource.
    protected_resource_type str
    The type of the protected resource.
    restore_metadata_overrides Mapping[str, str]
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    restore_testing_plan_name str
    The name of the restore testing plan.
    validation_window_hours int
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.
    iamRoleArn String
    The ARN of the IAM role.
    name String
    The name of the backup restore testing selection.
    protectedResourceArns List<String>
    The ARNs for the protected resources.
    protectedResourceConditions Property Map
    The conditions for the protected resource.
    protectedResourceType String
    The type of the protected resource.
    restoreMetadataOverrides Map<String>
    Override certain restore metadata keys. See the complete list of restore testing inferred metadata .
    restoreTestingPlanName String
    The name of the restore testing plan.
    validationWindowHours Number
    The amount of hours available to run a validation script on the data. Valid range is 1 to 168.

    Supporting Types

    RestoreTestingSelectionProtectedResourceConditions, RestoreTestingSelectionProtectedResourceConditionsArgs

    StringEquals List<RestoreTestingSelectionProtectedResourceConditionsStringEqual>
    The list of string equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching.". See the structure for details
    StringNotEquals List<RestoreTestingSelectionProtectedResourceConditionsStringNotEqual>
    The list of string not equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching.". See the structure for details
    StringEquals []RestoreTestingSelectionProtectedResourceConditionsStringEqual
    The list of string equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching.". See the structure for details
    StringNotEquals []RestoreTestingSelectionProtectedResourceConditionsStringNotEqual
    The list of string not equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching.". See the structure for details
    stringEquals List<RestoreTestingSelectionProtectedResourceConditionsStringEqual>
    The list of string equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching.". See the structure for details
    stringNotEquals List<RestoreTestingSelectionProtectedResourceConditionsStringNotEqual>
    The list of string not equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching.". See the structure for details
    stringEquals RestoreTestingSelectionProtectedResourceConditionsStringEqual[]
    The list of string equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching.". See the structure for details
    stringNotEquals RestoreTestingSelectionProtectedResourceConditionsStringNotEqual[]
    The list of string not equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching.". See the structure for details
    string_equals Sequence[RestoreTestingSelectionProtectedResourceConditionsStringEqual]
    The list of string equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching.". See the structure for details
    string_not_equals Sequence[RestoreTestingSelectionProtectedResourceConditionsStringNotEqual]
    The list of string not equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching.". See the structure for details
    stringEquals List<Property Map>
    The list of string equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching.". See the structure for details
    stringNotEquals List<Property Map>
    The list of string not equals conditions for resource tags. Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching.". See the structure for details

    RestoreTestingSelectionProtectedResourceConditionsStringEqual, RestoreTestingSelectionProtectedResourceConditionsStringEqualArgs

    Key string
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    Value string
    The value of the Tag. Maximum length of 256.
    Key string
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    Value string
    The value of the Tag. Maximum length of 256.
    key String
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    value String
    The value of the Tag. Maximum length of 256.
    key string
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    value string
    The value of the Tag. Maximum length of 256.
    key str
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    value str
    The value of the Tag. Maximum length of 256.
    key String
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    value String
    The value of the Tag. Maximum length of 256.

    RestoreTestingSelectionProtectedResourceConditionsStringNotEqual, RestoreTestingSelectionProtectedResourceConditionsStringNotEqualArgs

    Key string
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    Value string
    The value of the Tag. Maximum length of 256.
    Key string
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    Value string
    The value of the Tag. Maximum length of 256.
    key String
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    value String
    The value of the Tag. Maximum length of 256.
    key string
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    value string
    The value of the Tag. Maximum length of 256.
    key str
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    value str
    The value of the Tag. Maximum length of 256.
    key String
    The Tag name, must start with one of the following prefixes: [aws:ResourceTag/] with a Minimum length of 1. Maximum length of 128, and can contain characters that are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /.
    value String
    The value of the Tag. Maximum length of 256.

    Import

    Using pulumi import, import Backup Restore Testing Selection using name:restore_testing_plan_name. For example:

    $ pulumi import aws:backup/restoreTestingSelection:RestoreTestingSelection example restore_testing_selection_12345678:restore_testing_plan_12345678
    

    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 v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi