Plan

class Plan : KotlinCustomResource

Provides an AWS Backup plan resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.backup.Plan;
import com.pulumi.aws.backup.PlanArgs;
import com.pulumi.aws.backup.inputs.PlanRuleArgs;
import com.pulumi.aws.backup.inputs.PlanRuleLifecycleArgs;
import com.pulumi.aws.backup.inputs.PlanAdvancedBackupSettingArgs;
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 Plan("example", PlanArgs.builder()
.rules(PlanRuleArgs.builder()
.ruleName("my_example_backup_rule")
.targetVaultName(aws_backup_vault.test().name())
.schedule("cron(0 12 * * ? *)")
.lifecycle(PlanRuleLifecycleArgs.builder()
.deleteAfter(14)
.build())
.build())
.advancedBackupSettings(PlanAdvancedBackupSettingArgs.builder()
.backupOptions(Map.of("WindowsVSS", "enabled"))
.resourceType("EC2")
.build())
.build());
}
}

Import

Backup Plan can be imported using the id, e.g.,

$ pulumi import aws:backup/plan:Plan test <id>

Properties

Link copied to clipboard

An object that specifies backup options for each resource type.

Link copied to clipboard
val arn: Output<String>

The ARN of the backup plan.

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

The display name of a backup plan.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rules: Output<List<PlanRule>>

A rule object that specifies a scheduled task that is used to back up a selection of resources.

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

Metadata that you can assign to help organize the plans you create. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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>
Link copied to clipboard
val version: Output<String>

Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.