RestoreTestingPlan class
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", {
recoveryPointSelection: {
algorithm: "LATEST_WITHIN_WINDOW",
includeVaults: ["*"],
recoveryPointTypes: ["CONTINUOUS"],
},
name: "example_restore_testing_plan",
scheduleExpression: "cron(0 12 ? * * *)",
});
import pulumi
import pulumi_aws as aws
example = aws.backup.RestoreTestingPlan("example",
recovery_point_selection={
"algorithm": "LATEST_WITHIN_WINDOW",
"include_vaults": ["*"],
"recovery_point_types": ["CONTINUOUS"],
},
name="example_restore_testing_plan",
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()
{
RecoveryPointSelection = new Aws.Backup.Inputs.RestoreTestingPlanRecoveryPointSelectionArgs
{
Algorithm = "LATEST_WITHIN_WINDOW",
IncludeVaults = new[]
{
"*",
},
RecoveryPointTypes = new[]
{
"CONTINUOUS",
},
},
Name = "example_restore_testing_plan",
ScheduleExpression = "cron(0 12 ? * * *)",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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{
RecoveryPointSelection: &backup.RestoreTestingPlanRecoveryPointSelectionArgs{
Algorithm: pulumi.String("LATEST_WITHIN_WINDOW"),
IncludeVaults: pulumi.StringArray{
pulumi.String("*"),
},
RecoveryPointTypes: pulumi.StringArray{
pulumi.String("CONTINUOUS"),
},
},
Name: pulumi.String("example_restore_testing_plan"),
ScheduleExpression: pulumi.String("cron(0 12 ? * * *)"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_backup_restoretestingplan" "example" {
recovery_point_selection = {
algorithm = "LATEST_WITHIN_WINDOW"
include_vaults = ["*"]
recovery_point_types = ["CONTINUOUS"]
}
name = "example_restore_testing_plan"
schedule_expression = "cron(0 12 ? * * *)"
}
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.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 RestoreTestingPlan("example", RestoreTestingPlanArgs.builder()
.recoveryPointSelection(RestoreTestingPlanRecoveryPointSelectionArgs.builder()
.algorithm("LATEST_WITHIN_WINDOW")
.includeVaults("*")
.recoveryPointTypes("CONTINUOUS")
.build())
.name("example_restore_testing_plan")
.scheduleExpression("cron(0 12 ? * * *)")
.build());
}
}
resources:
example:
type: aws:backup:RestoreTestingPlan
properties:
recoveryPointSelection:
algorithm: LATEST_WITHIN_WINDOW
includeVaults:
- '*'
recoveryPointTypes:
- CONTINUOUS
name: example_restore_testing_plan
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
Constructors
- RestoreTestingPlan(String name, {RestoreTestingPlanArgs? args, CustomResourceOptions? options})
-
Creates a new RestoreTestingPlan.
nameThe Pulumi resource name.argsArguments used to configure this RestoreTestingPlan. The set of arguments for RestoreTestingPlan.optionsResource options controlling this resource's behavior. - RestoreTestingPlan.reference(String urn)
- Creates a typed reference to an existing RestoreTestingPlan resource.
Properties
-
arn
↔ Output<
String> -
ARN of the Restore Testing Plan.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
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.
latefinal
-
recoveryPointSelection
↔ Output<
RestoreTestingPlanRecoveryPointSelection> -
Specifies the recovery point selection configuration. See RecoveryPointSelection section for more details.
latefinal
-
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scheduleExpression
↔ Output<
String> -
The schedule expression for the restore testing plan.
latefinal
-
scheduleExpressionTimezone
↔ Output<
String> -
The timezone for the schedule expression. If not provided, the state value will be used.
latefinal
-
startWindowHours
↔ Output<
int> -
The number of hours in the start window for the restore testing plan. Must be between 1 and 168.
latefinal
-
latefinal
-
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.latefinal -
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {RestoreTestingPlanState? state, CustomResourceOptions? options}) → RestoreTestingPlan -
Gets an existing RestoreTestingPlan resource's state with the given
nameandid.