PlanArgs

data class PlanArgs(val advancedBackupSettings: Output<List<PlanAdvancedBackupSettingArgs>>? = null, val name: Output<String>? = null, val rules: Output<List<PlanRuleArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<PlanArgs>

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>

Constructors

Link copied to clipboard
constructor(advancedBackupSettings: Output<List<PlanAdvancedBackupSettingArgs>>? = null, name: Output<String>? = null, rules: Output<List<PlanRuleArgs>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

An object that specifies backup options for each resource type.

Link copied to clipboard
val name: Output<String>? = null

The display name of a backup plan.

Link copied to clipboard
val rules: Output<List<PlanRuleArgs>>? = null

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>>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): PlanArgs