aws.backup.Plan
Explore with Pulumi AI
Provides an AWS Backup plan resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.backup.Plan("example", {
name: "my_example_backup_plan",
rules: [{
ruleName: "my_example_backup_rule",
targetVaultName: test.name,
schedule: "cron(0 12 * * ? *)",
lifecycle: {
deleteAfter: 14,
},
}],
advancedBackupSettings: [{
backupOptions: {
WindowsVSS: "enabled",
},
resourceType: "EC2",
}],
});
import pulumi
import pulumi_aws as aws
example = aws.backup.Plan("example",
name="my_example_backup_plan",
rules=[{
"rule_name": "my_example_backup_rule",
"target_vault_name": test["name"],
"schedule": "cron(0 12 * * ? *)",
"lifecycle": {
"delete_after": 14,
},
}],
advanced_backup_settings=[{
"backup_options": {
"WindowsVSS": "enabled",
},
"resource_type": "EC2",
}])
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.NewPlan(ctx, "example", &backup.PlanArgs{
Name: pulumi.String("my_example_backup_plan"),
Rules: backup.PlanRuleArray{
&backup.PlanRuleArgs{
RuleName: pulumi.String("my_example_backup_rule"),
TargetVaultName: pulumi.Any(test.Name),
Schedule: pulumi.String("cron(0 12 * * ? *)"),
Lifecycle: &backup.PlanRuleLifecycleArgs{
DeleteAfter: pulumi.Int(14),
},
},
},
AdvancedBackupSettings: backup.PlanAdvancedBackupSettingArray{
&backup.PlanAdvancedBackupSettingArgs{
BackupOptions: pulumi.StringMap{
"WindowsVSS": pulumi.String("enabled"),
},
ResourceType: pulumi.String("EC2"),
},
},
})
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.Plan("example", new()
{
Name = "my_example_backup_plan",
Rules = new[]
{
new Aws.Backup.Inputs.PlanRuleArgs
{
RuleName = "my_example_backup_rule",
TargetVaultName = test.Name,
Schedule = "cron(0 12 * * ? *)",
Lifecycle = new Aws.Backup.Inputs.PlanRuleLifecycleArgs
{
DeleteAfter = 14,
},
},
},
AdvancedBackupSettings = new[]
{
new Aws.Backup.Inputs.PlanAdvancedBackupSettingArgs
{
BackupOptions =
{
{ "WindowsVSS", "enabled" },
},
ResourceType = "EC2",
},
},
});
});
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()
.name("my_example_backup_plan")
.rules(PlanRuleArgs.builder()
.ruleName("my_example_backup_rule")
.targetVaultName(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());
}
}
resources:
example:
type: aws:backup:Plan
properties:
name: my_example_backup_plan
rules:
- ruleName: my_example_backup_rule
targetVaultName: ${test.name}
schedule: cron(0 12 * * ? *)
lifecycle:
deleteAfter: 14
advancedBackupSettings:
- backupOptions:
WindowsVSS: enabled
resourceType: EC2
Create Plan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Plan(name: string, args: PlanArgs, opts?: CustomResourceOptions);
@overload
def Plan(resource_name: str,
args: PlanArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Plan(resource_name: str,
opts: Optional[ResourceOptions] = None,
rules: Optional[Sequence[PlanRuleArgs]] = None,
advanced_backup_settings: Optional[Sequence[PlanAdvancedBackupSettingArgs]] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPlan(ctx *Context, name string, args PlanArgs, opts ...ResourceOption) (*Plan, error)
public Plan(string name, PlanArgs args, CustomResourceOptions? opts = null)
type: aws:backup:Plan
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 PlanArgs
- 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 PlanArgs
- 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 PlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PlanArgs
- 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 planResource = new Aws.Backup.Plan("planResource", new()
{
Rules = new[]
{
new Aws.Backup.Inputs.PlanRuleArgs
{
RuleName = "string",
TargetVaultName = "string",
CompletionWindow = 0,
CopyActions = new[]
{
new Aws.Backup.Inputs.PlanRuleCopyActionArgs
{
DestinationVaultArn = "string",
Lifecycle = new Aws.Backup.Inputs.PlanRuleCopyActionLifecycleArgs
{
ColdStorageAfter = 0,
DeleteAfter = 0,
OptInToArchiveForSupportedResources = false,
},
},
},
EnableContinuousBackup = false,
Lifecycle = new Aws.Backup.Inputs.PlanRuleLifecycleArgs
{
ColdStorageAfter = 0,
DeleteAfter = 0,
OptInToArchiveForSupportedResources = false,
},
RecoveryPointTags =
{
{ "string", "string" },
},
Schedule = "string",
ScheduleExpressionTimezone = "string",
StartWindow = 0,
},
},
AdvancedBackupSettings = new[]
{
new Aws.Backup.Inputs.PlanAdvancedBackupSettingArgs
{
BackupOptions =
{
{ "string", "string" },
},
ResourceType = "string",
},
},
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := backup.NewPlan(ctx, "planResource", &backup.PlanArgs{
Rules: backup.PlanRuleArray{
&backup.PlanRuleArgs{
RuleName: pulumi.String("string"),
TargetVaultName: pulumi.String("string"),
CompletionWindow: pulumi.Int(0),
CopyActions: backup.PlanRuleCopyActionArray{
&backup.PlanRuleCopyActionArgs{
DestinationVaultArn: pulumi.String("string"),
Lifecycle: &backup.PlanRuleCopyActionLifecycleArgs{
ColdStorageAfter: pulumi.Int(0),
DeleteAfter: pulumi.Int(0),
OptInToArchiveForSupportedResources: pulumi.Bool(false),
},
},
},
EnableContinuousBackup: pulumi.Bool(false),
Lifecycle: &backup.PlanRuleLifecycleArgs{
ColdStorageAfter: pulumi.Int(0),
DeleteAfter: pulumi.Int(0),
OptInToArchiveForSupportedResources: pulumi.Bool(false),
},
RecoveryPointTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Schedule: pulumi.String("string"),
ScheduleExpressionTimezone: pulumi.String("string"),
StartWindow: pulumi.Int(0),
},
},
AdvancedBackupSettings: backup.PlanAdvancedBackupSettingArray{
&backup.PlanAdvancedBackupSettingArgs{
BackupOptions: pulumi.StringMap{
"string": pulumi.String("string"),
},
ResourceType: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var planResource = new Plan("planResource", PlanArgs.builder()
.rules(PlanRuleArgs.builder()
.ruleName("string")
.targetVaultName("string")
.completionWindow(0)
.copyActions(PlanRuleCopyActionArgs.builder()
.destinationVaultArn("string")
.lifecycle(PlanRuleCopyActionLifecycleArgs.builder()
.coldStorageAfter(0)
.deleteAfter(0)
.optInToArchiveForSupportedResources(false)
.build())
.build())
.enableContinuousBackup(false)
.lifecycle(PlanRuleLifecycleArgs.builder()
.coldStorageAfter(0)
.deleteAfter(0)
.optInToArchiveForSupportedResources(false)
.build())
.recoveryPointTags(Map.of("string", "string"))
.schedule("string")
.scheduleExpressionTimezone("string")
.startWindow(0)
.build())
.advancedBackupSettings(PlanAdvancedBackupSettingArgs.builder()
.backupOptions(Map.of("string", "string"))
.resourceType("string")
.build())
.name("string")
.tags(Map.of("string", "string"))
.build());
plan_resource = aws.backup.Plan("planResource",
rules=[{
"rule_name": "string",
"target_vault_name": "string",
"completion_window": 0,
"copy_actions": [{
"destination_vault_arn": "string",
"lifecycle": {
"cold_storage_after": 0,
"delete_after": 0,
"opt_in_to_archive_for_supported_resources": False,
},
}],
"enable_continuous_backup": False,
"lifecycle": {
"cold_storage_after": 0,
"delete_after": 0,
"opt_in_to_archive_for_supported_resources": False,
},
"recovery_point_tags": {
"string": "string",
},
"schedule": "string",
"schedule_expression_timezone": "string",
"start_window": 0,
}],
advanced_backup_settings=[{
"backup_options": {
"string": "string",
},
"resource_type": "string",
}],
name="string",
tags={
"string": "string",
})
const planResource = new aws.backup.Plan("planResource", {
rules: [{
ruleName: "string",
targetVaultName: "string",
completionWindow: 0,
copyActions: [{
destinationVaultArn: "string",
lifecycle: {
coldStorageAfter: 0,
deleteAfter: 0,
optInToArchiveForSupportedResources: false,
},
}],
enableContinuousBackup: false,
lifecycle: {
coldStorageAfter: 0,
deleteAfter: 0,
optInToArchiveForSupportedResources: false,
},
recoveryPointTags: {
string: "string",
},
schedule: "string",
scheduleExpressionTimezone: "string",
startWindow: 0,
}],
advancedBackupSettings: [{
backupOptions: {
string: "string",
},
resourceType: "string",
}],
name: "string",
tags: {
string: "string",
},
});
type: aws:backup:Plan
properties:
advancedBackupSettings:
- backupOptions:
string: string
resourceType: string
name: string
rules:
- completionWindow: 0
copyActions:
- destinationVaultArn: string
lifecycle:
coldStorageAfter: 0
deleteAfter: 0
optInToArchiveForSupportedResources: false
enableContinuousBackup: false
lifecycle:
coldStorageAfter: 0
deleteAfter: 0
optInToArchiveForSupportedResources: false
recoveryPointTags:
string: string
ruleName: string
schedule: string
scheduleExpressionTimezone: string
startWindow: 0
targetVaultName: string
tags:
string: string
Plan 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 Plan resource accepts the following input properties:
- Rules
List<Plan
Rule> - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- Advanced
Backup List<PlanSettings Advanced Backup Setting> - An object that specifies backup options for each resource type.
- Name string
- The display name of a backup plan.
- Dictionary<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.
- Rules
[]Plan
Rule Args - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- Advanced
Backup []PlanSettings Advanced Backup Setting Args - An object that specifies backup options for each resource type.
- Name string
- The display name of a backup plan.
- 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.
- rules
List<Plan
Rule> - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- advanced
Backup List<PlanSettings Advanced Backup Setting> - An object that specifies backup options for each resource type.
- name String
- The display name of a backup plan.
- 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.
- rules
Plan
Rule[] - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- advanced
Backup PlanSettings Advanced Backup Setting[] - An object that specifies backup options for each resource type.
- name string
- The display name of a backup plan.
- {[key: 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.
- rules
Sequence[Plan
Rule Args] - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- advanced_
backup_ Sequence[Plansettings Advanced Backup Setting Args] - An object that specifies backup options for each resource type.
- name str
- The display name of a backup plan.
- Mapping[str, str]
- 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.
- rules List<Property Map>
- A rule object that specifies a scheduled task that is used to back up a selection of resources.
- advanced
Backup List<Property Map>Settings - An object that specifies backup options for each resource type.
- name String
- The display name of a backup plan.
- Map<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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Plan resource produces the following output properties:
- Arn string
- The ARN of the backup plan.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- Arn string
- The ARN of the backup plan.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- arn String
- The ARN of the backup plan.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - version String
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- arn string
- The ARN of the backup plan.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- arn str
- The ARN of the backup plan.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - version str
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- arn String
- The ARN of the backup plan.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - version String
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
Look up Existing Plan Resource
Get an existing Plan 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?: PlanState, opts?: CustomResourceOptions): Plan
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
advanced_backup_settings: Optional[Sequence[PlanAdvancedBackupSettingArgs]] = None,
arn: Optional[str] = None,
name: Optional[str] = None,
rules: Optional[Sequence[PlanRuleArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
version: Optional[str] = None) -> Plan
func GetPlan(ctx *Context, name string, id IDInput, state *PlanState, opts ...ResourceOption) (*Plan, error)
public static Plan Get(string name, Input<string> id, PlanState? state, CustomResourceOptions? opts = null)
public static Plan get(String name, Output<String> id, PlanState 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.
- Advanced
Backup List<PlanSettings Advanced Backup Setting> - An object that specifies backup options for each resource type.
- Arn string
- The ARN of the backup plan.
- Name string
- The display name of a backup plan.
- Rules
List<Plan
Rule> - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- Dictionary<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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- Advanced
Backup []PlanSettings Advanced Backup Setting Args - An object that specifies backup options for each resource type.
- Arn string
- The ARN of the backup plan.
- Name string
- The display name of a backup plan.
- Rules
[]Plan
Rule Args - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- advanced
Backup List<PlanSettings Advanced Backup Setting> - An object that specifies backup options for each resource type.
- arn String
- The ARN of the backup plan.
- name String
- The display name of a backup plan.
- rules
List<Plan
Rule> - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - version String
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- advanced
Backup PlanSettings Advanced Backup Setting[] - An object that specifies backup options for each resource type.
- arn string
- The ARN of the backup plan.
- name string
- The display name of a backup plan.
- rules
Plan
Rule[] - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- {[key: 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- advanced_
backup_ Sequence[Plansettings Advanced Backup Setting Args] - An object that specifies backup options for each resource type.
- arn str
- The ARN of the backup plan.
- name str
- The display name of a backup plan.
- rules
Sequence[Plan
Rule Args] - A rule object that specifies a scheduled task that is used to back up a selection of resources.
- Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - version str
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- advanced
Backup List<Property Map>Settings - An object that specifies backup options for each resource type.
- arn String
- The ARN of the backup plan.
- name String
- The display name of a backup plan.
- rules List<Property Map>
- A rule object that specifies a scheduled task that is used to back up a selection of resources.
- Map<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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - version String
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
Supporting Types
PlanAdvancedBackupSetting, PlanAdvancedBackupSettingArgs
- Backup
Options Dictionary<string, string> - Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to
{ WindowsVSS = "enabled" }
to enable Windows VSS backup option and create a VSS Windows backup. - Resource
Type string - The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values:
EC2
.
- Backup
Options map[string]string - Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to
{ WindowsVSS = "enabled" }
to enable Windows VSS backup option and create a VSS Windows backup. - Resource
Type string - The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values:
EC2
.
- backup
Options Map<String,String> - Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to
{ WindowsVSS = "enabled" }
to enable Windows VSS backup option and create a VSS Windows backup. - resource
Type String - The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values:
EC2
.
- backup
Options {[key: string]: string} - Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to
{ WindowsVSS = "enabled" }
to enable Windows VSS backup option and create a VSS Windows backup. - resource
Type string - The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values:
EC2
.
- backup_
options Mapping[str, str] - Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to
{ WindowsVSS = "enabled" }
to enable Windows VSS backup option and create a VSS Windows backup. - resource_
type str - The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values:
EC2
.
- backup
Options Map<String> - Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to
{ WindowsVSS = "enabled" }
to enable Windows VSS backup option and create a VSS Windows backup. - resource
Type String - The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values:
EC2
.
PlanRule, PlanRuleArgs
- Rule
Name string - An display name for a backup rule.
- Target
Vault stringName - The name of a logical container where backups are stored.
- Completion
Window int - The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error.
- Copy
Actions List<PlanRule Copy Action> - Configuration block(s) with copy operation settings. Detailed below.
- Enable
Continuous boolBackup - Enable continuous backups for supported resources.
- Lifecycle
Plan
Rule Lifecycle - The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below.
- Dictionary<string, string>
- Metadata that you can assign to help organize the resources that you create.
- Schedule string
- A CRON expression specifying when AWS Backup initiates a backup job.
- Schedule
Expression stringTimezone - The timezone in which the schedule expression is set. Default value:
"Etc/UTC"
. - Start
Window int - The amount of time in minutes before beginning a backup.
- Rule
Name string - An display name for a backup rule.
- Target
Vault stringName - The name of a logical container where backups are stored.
- Completion
Window int - The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error.
- Copy
Actions []PlanRule Copy Action - Configuration block(s) with copy operation settings. Detailed below.
- Enable
Continuous boolBackup - Enable continuous backups for supported resources.
- Lifecycle
Plan
Rule Lifecycle - The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below.
- map[string]string
- Metadata that you can assign to help organize the resources that you create.
- Schedule string
- A CRON expression specifying when AWS Backup initiates a backup job.
- Schedule
Expression stringTimezone - The timezone in which the schedule expression is set. Default value:
"Etc/UTC"
. - Start
Window int - The amount of time in minutes before beginning a backup.
- rule
Name String - An display name for a backup rule.
- target
Vault StringName - The name of a logical container where backups are stored.
- completion
Window Integer - The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error.
- copy
Actions List<PlanRule Copy Action> - Configuration block(s) with copy operation settings. Detailed below.
- enable
Continuous BooleanBackup - Enable continuous backups for supported resources.
- lifecycle
Plan
Rule Lifecycle - The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below.
- Map<String,String>
- Metadata that you can assign to help organize the resources that you create.
- schedule String
- A CRON expression specifying when AWS Backup initiates a backup job.
- schedule
Expression StringTimezone - The timezone in which the schedule expression is set. Default value:
"Etc/UTC"
. - start
Window Integer - The amount of time in minutes before beginning a backup.
- rule
Name string - An display name for a backup rule.
- target
Vault stringName - The name of a logical container where backups are stored.
- completion
Window number - The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error.
- copy
Actions PlanRule Copy Action[] - Configuration block(s) with copy operation settings. Detailed below.
- enable
Continuous booleanBackup - Enable continuous backups for supported resources.
- lifecycle
Plan
Rule Lifecycle - The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below.
- {[key: string]: string}
- Metadata that you can assign to help organize the resources that you create.
- schedule string
- A CRON expression specifying when AWS Backup initiates a backup job.
- schedule
Expression stringTimezone - The timezone in which the schedule expression is set. Default value:
"Etc/UTC"
. - start
Window number - The amount of time in minutes before beginning a backup.
- rule_
name str - An display name for a backup rule.
- target_
vault_ strname - The name of a logical container where backups are stored.
- completion_
window int - The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error.
- copy_
actions Sequence[PlanRule Copy Action] - Configuration block(s) with copy operation settings. Detailed below.
- enable_
continuous_ boolbackup - Enable continuous backups for supported resources.
- lifecycle
Plan
Rule Lifecycle - The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below.
- Mapping[str, str]
- Metadata that you can assign to help organize the resources that you create.
- schedule str
- A CRON expression specifying when AWS Backup initiates a backup job.
- schedule_
expression_ strtimezone - The timezone in which the schedule expression is set. Default value:
"Etc/UTC"
. - start_
window int - The amount of time in minutes before beginning a backup.
- rule
Name String - An display name for a backup rule.
- target
Vault StringName - The name of a logical container where backups are stored.
- completion
Window Number - The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error.
- copy
Actions List<Property Map> - Configuration block(s) with copy operation settings. Detailed below.
- enable
Continuous BooleanBackup - Enable continuous backups for supported resources.
- lifecycle Property Map
- The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below.
- Map<String>
- Metadata that you can assign to help organize the resources that you create.
- schedule String
- A CRON expression specifying when AWS Backup initiates a backup job.
- schedule
Expression StringTimezone - The timezone in which the schedule expression is set. Default value:
"Etc/UTC"
. - start
Window Number - The amount of time in minutes before beginning a backup.
PlanRuleCopyAction, PlanRuleCopyActionArgs
- Destination
Vault stringArn - An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup.
- Lifecycle
Plan
Rule Copy Action Lifecycle - The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. Fields documented above.
- Destination
Vault stringArn - An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup.
- Lifecycle
Plan
Rule Copy Action Lifecycle - The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. Fields documented above.
- destination
Vault StringArn - An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup.
- lifecycle
Plan
Rule Copy Action Lifecycle - The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. Fields documented above.
- destination
Vault stringArn - An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup.
- lifecycle
Plan
Rule Copy Action Lifecycle - The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. Fields documented above.
- destination_
vault_ strarn - An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup.
- lifecycle
Plan
Rule Copy Action Lifecycle - The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. Fields documented above.
- destination
Vault StringArn - An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup.
- lifecycle Property Map
- The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. Fields documented above.
PlanRuleCopyActionLifecycle, PlanRuleCopyActionLifecycleArgs
- Cold
Storage intAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- Delete
After int - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - Opt
In boolTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- Cold
Storage intAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- Delete
After int - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - Opt
In boolTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- cold
Storage IntegerAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- delete
After Integer - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - opt
In BooleanTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- cold
Storage numberAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- delete
After number - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - opt
In booleanTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- cold_
storage_ intafter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- delete_
after int - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - opt_
in_ boolto_ archive_ for_ supported_ resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- cold
Storage NumberAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- delete
After Number - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - opt
In BooleanTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
PlanRuleLifecycle, PlanRuleLifecycleArgs
- Cold
Storage intAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- Delete
After int - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - Opt
In boolTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- Cold
Storage intAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- Delete
After int - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - Opt
In boolTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- cold
Storage IntegerAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- delete
After Integer - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - opt
In BooleanTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- cold
Storage numberAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- delete
After number - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - opt
In booleanTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- cold_
storage_ intafter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- delete_
after int - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - opt_
in_ boolto_ archive_ for_ supported_ resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
- cold
Storage NumberAfter - Specifies the number of days after creation that a recovery point is moved to cold storage.
- delete
After Number - Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than
cold_storage_after
. - opt
In BooleanTo Archive For Supported Resources - This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
Import
Using pulumi import
, import Backup Plan using the id
. For example:
$ pulumi import aws:backup/plan:Plan test <id>
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.