Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Use this data source to get information on an existing backup plan.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.backup.getPlan({
planId: "my_example_backup_plan_id",
});
import pulumi
import pulumi_aws as aws
example = aws.backup.get_plan(plan_id="my_example_backup_plan_id")
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.LookupPlan(ctx, &backup.LookupPlanArgs{
PlanId: "my_example_backup_plan_id",
}, nil)
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 = Aws.Backup.GetPlan.Invoke(new()
{
PlanId = "my_example_backup_plan_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.backup.BackupFunctions;
import com.pulumi.aws.backup.inputs.GetPlanArgs;
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) {
final var example = BackupFunctions.getPlan(GetPlanArgs.builder()
.planId("my_example_backup_plan_id")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:backup:getPlan
arguments:
planId: my_example_backup_plan_id
Using getPlan
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPlan(args: GetPlanArgs, opts?: InvokeOptions): Promise<GetPlanResult>
function getPlanOutput(args: GetPlanOutputArgs, opts?: InvokeOptions): Output<GetPlanResult>def get_plan(plan_id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetPlanResult
def get_plan_output(plan_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPlanResult]func LookupPlan(ctx *Context, args *LookupPlanArgs, opts ...InvokeOption) (*LookupPlanResult, error)
func LookupPlanOutput(ctx *Context, args *LookupPlanOutputArgs, opts ...InvokeOption) LookupPlanResultOutput> Note: This function is named LookupPlan in the Go SDK.
public static class GetPlan
{
public static Task<GetPlanResult> InvokeAsync(GetPlanArgs args, InvokeOptions? opts = null)
public static Output<GetPlanResult> Invoke(GetPlanInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPlanResult> getPlan(GetPlanArgs args, InvokeOptions options)
public static Output<GetPlanResult> getPlan(GetPlanArgs args, InvokeOptions options)
fn::invoke:
function: aws:backup/getPlan:getPlan
arguments:
# arguments dictionaryThe following arguments are supported:
getPlan Result
The following output properties are available:
- Arn string
- ARN of the backup plan.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Display name of a backup plan.
- Plan
Id string - Region string
- Rules
List<Get
Plan Rule> - Rules of a backup plan.
- Scan
Settings List<GetPlan Scan Setting> - Scanning configuration for the backup rule.
- Dictionary<string, string>
- Metadata that you can assign to help organize the plans you create.
- Version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- Arn string
- ARN of the backup plan.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Display name of a backup plan.
- Plan
Id string - Region string
- Rules
[]Get
Plan Rule - Rules of a backup plan.
- Scan
Settings []GetPlan Scan Setting - Scanning configuration for the backup rule.
- map[string]string
- Metadata that you can assign to help organize the plans you create.
- Version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- arn String
- ARN of the backup plan.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Display name of a backup plan.
- plan
Id String - region String
- rules
List<Get
Plan Rule> - Rules of a backup plan.
- scan
Settings List<GetPlan Scan Setting> - Scanning configuration for the backup rule.
- Map<String,String>
- Metadata that you can assign to help organize the plans you create.
- version String
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- arn string
- ARN of the backup plan.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Display name of a backup plan.
- plan
Id string - region string
- rules
Get
Plan Rule[] - Rules of a backup plan.
- scan
Settings GetPlan Scan Setting[] - Scanning configuration for the backup rule.
- {[key: string]: string}
- Metadata that you can assign to help organize the plans you create.
- version string
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- arn str
- ARN of the backup plan.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Display name of a backup plan.
- plan_
id str - region str
- rules
Sequence[Get
Plan Rule] - Rules of a backup plan.
- scan_
settings Sequence[GetPlan Scan Setting] - Scanning configuration for the backup rule.
- Mapping[str, str]
- Metadata that you can assign to help organize the plans you create.
- version str
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
- arn String
- ARN of the backup plan.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Display name of a backup plan.
- plan
Id String - region String
- rules List<Property Map>
- Rules of a backup plan.
- scan
Settings List<Property Map> - Scanning configuration for the backup rule.
- Map<String>
- Metadata that you can assign to help organize the plans you create.
- version String
- Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan.
Supporting Types
GetPlanRule
- Completion
Window int - Copy
Actions List<GetPlan Rule Copy Action> - Enable
Continuous boolBackup - Lifecycles
List<Get
Plan Rule Lifecycle> - Rule
Name string - Scan
Actions List<GetPlan Rule Scan Action> - Schedule string
- Schedule
Expression stringTimezone - Start
Window int - Target
Logically stringAir Gapped Backup Vault Arn - Target
Vault stringName - Dictionary<string, string>
- Completion
Window int - Copy
Actions []GetPlan Rule Copy Action - Enable
Continuous boolBackup - Lifecycles
[]Get
Plan Rule Lifecycle - Rule
Name string - Scan
Actions []GetPlan Rule Scan Action - Schedule string
- Schedule
Expression stringTimezone - Start
Window int - Target
Logically stringAir Gapped Backup Vault Arn - Target
Vault stringName - map[string]string
- completion
Window Integer - copy
Actions List<GetPlan Rule Copy Action> - enable
Continuous BooleanBackup - lifecycles
List<Get
Plan Rule Lifecycle> - rule
Name String - scan
Actions List<GetPlan Rule Scan Action> - schedule String
- schedule
Expression StringTimezone - start
Window Integer - target
Logically StringAir Gapped Backup Vault Arn - target
Vault StringName - Map<String,String>
- completion
Window number - copy
Actions GetPlan Rule Copy Action[] - enable
Continuous booleanBackup - lifecycles
Get
Plan Rule Lifecycle[] - rule
Name string - scan
Actions GetPlan Rule Scan Action[] - schedule string
- schedule
Expression stringTimezone - start
Window number - target
Logically stringAir Gapped Backup Vault Arn - target
Vault stringName - {[key: string]: string}
- completion_
window int - copy_
actions Sequence[GetPlan Rule Copy Action] - enable_
continuous_ boolbackup - lifecycles
Sequence[Get
Plan Rule Lifecycle] - rule_
name str - scan_
actions Sequence[GetPlan Rule Scan Action] - schedule str
- schedule_
expression_ strtimezone - start_
window int - target_
logically_ strair_ gapped_ backup_ vault_ arn - target_
vault_ strname - Mapping[str, str]
- completion
Window Number - copy
Actions List<Property Map> - enable
Continuous BooleanBackup - lifecycles List<Property Map>
- rule
Name String - scan
Actions List<Property Map> - schedule String
- schedule
Expression StringTimezone - start
Window Number - target
Logically StringAir Gapped Backup Vault Arn - target
Vault StringName - Map<String>
GetPlanRuleCopyAction
GetPlanRuleCopyActionLifecycle
- cold
Storage IntegerAfter - delete
After Integer - opt
In BooleanTo Archive For Supported Resources
- cold
Storage numberAfter - delete
After number - opt
In booleanTo Archive For Supported Resources
- cold
Storage NumberAfter - delete
After Number - opt
In BooleanTo Archive For Supported Resources
GetPlanRuleLifecycle
- cold
Storage IntegerAfter - delete
After Integer - opt
In BooleanTo Archive For Supported Resources
- cold
Storage numberAfter - delete
After number - opt
In booleanTo Archive For Supported Resources
- cold
Storage NumberAfter - delete
After Number - opt
In BooleanTo Archive For Supported Resources
GetPlanRuleScanAction
- Malware
Scanner string - Scan
Mode string
- Malware
Scanner string - Scan
Mode string
- malware
Scanner String - scan
Mode String
- malware
Scanner string - scan
Mode string
- malware_
scanner str - scan_
mode str
- malware
Scanner String - scan
Mode String
GetPlanScanSetting
- Malware
Scanner string - Resource
Types List<string> - Scanner
Role stringArn
- Malware
Scanner string - Resource
Types []string - Scanner
Role stringArn
- malware
Scanner String - resource
Types List<String> - scanner
Role StringArn
- malware
Scanner string - resource
Types string[] - scanner
Role stringArn
- malware_
scanner str - resource_
types Sequence[str] - scanner_
role_ strarn
- malware
Scanner String - resource
Types List<String> - scanner
Role StringArn
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
