RestoreTestingPlan

class RestoreTestingPlan : KotlinCustomResource

Resource for managing an AWS Backup Restore Testing Plan.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.backup.RestoreTestingPlan("example", {
name: "example_restore_testing_plan",
recoveryPointSelection: {
algorithm: "LATEST_WITHIN_WINDOW",
includeVaults: ["*"],
recoveryPointTypes: ["CONTINUOUS"],
},
scheduleExpression: "cron(0 12 ? * * *)",
});
import pulumi
import pulumi_aws as aws
example = aws.backup.RestoreTestingPlan("example",
name="example_restore_testing_plan",
recovery_point_selection={
"algorithm": "LATEST_WITHIN_WINDOW",
"include_vaults": ["*"],
"recovery_point_types": ["CONTINUOUS"],
},
schedule_expression="cron(0 12 ? * * *)")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Backup.RestoreTestingPlan("example", new()
{
Name = "example_restore_testing_plan",
RecoveryPointSelection = new Aws.Backup.Inputs.RestoreTestingPlanRecoveryPointSelectionArgs
{
Algorithm = "LATEST_WITHIN_WINDOW",
IncludeVaults = new[]
{
"*",
},
RecoveryPointTypes = new[]
{
"CONTINUOUS",
},
},
ScheduleExpression = "cron(0 12 ? * * *)",
});
});
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.NewRestoreTestingPlan(ctx, "example", &backup.RestoreTestingPlanArgs{
Name: pulumi.String("example_restore_testing_plan"),
RecoveryPointSelection: &backup.RestoreTestingPlanRecoveryPointSelectionArgs{
Algorithm: pulumi.String("LATEST_WITHIN_WINDOW"),
IncludeVaults: pulumi.StringArray{
pulumi.String("*"),
},
RecoveryPointTypes: pulumi.StringArray{
pulumi.String("CONTINUOUS"),
},
},
ScheduleExpression: pulumi.String("cron(0 12 ? * * *)"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.backup.RestoreTestingPlan;
import com.pulumi.aws.backup.RestoreTestingPlanArgs;
import com.pulumi.aws.backup.inputs.RestoreTestingPlanRecoveryPointSelectionArgs;
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 RestoreTestingPlan("example", RestoreTestingPlanArgs.builder()
.name("example_restore_testing_plan")
.recoveryPointSelection(RestoreTestingPlanRecoveryPointSelectionArgs.builder()
.algorithm("LATEST_WITHIN_WINDOW")
.includeVaults("*")
.recoveryPointTypes("CONTINUOUS")
.build())
.scheduleExpression("cron(0 12 ? * * *)")
.build());
}
}
resources:
example:
type: aws:backup:RestoreTestingPlan
properties:
name: example_restore_testing_plan
recoveryPointSelection:
algorithm: LATEST_WITHIN_WINDOW
includeVaults:
- '*'
recoveryPointTypes:
- CONTINUOUS
scheduleExpression: cron(0 12 ? * * *)

Import

Using pulumi import, import Backup Restore Testing Plan using the name. For example:

$ pulumi import aws:backup/restoreTestingPlan:RestoreTestingPlan example my_testing_plan

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the Restore Testing Plan.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the restore testing plan. Must be between 1 and 50 characters long and contain only alphanumeric characters and underscores.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Specifies the recovery point selection configuration. See RecoveryPointSelection section for more details.

Link copied to clipboard

The schedule expression for the restore testing plan.

Link copied to clipboard

The timezone for the schedule expression. If not provided, the state value will be used.

Link copied to clipboard
val startWindowHours: Output<Int>

The number of hours in the start window for the restore testing plan. Must be between 1 and 168.

Link copied to clipboard
val tags: Output<Map<String, String>>?
Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>