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
Data source for managing an Amazon ARC Region Switch plan.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.arcregionswitch.getPlan({
arn: "arn:aws:arcregionswitch:us-west-2:123456789012:plan/example-plan",
});
import pulumi
import pulumi_aws as aws
example = aws.arcregionswitch.get_plan(arn="arn:aws:arcregionswitch:us-west-2:123456789012:plan/example-plan")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/arcregionswitch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := arcregionswitch.LookupPlan(ctx, &arcregionswitch.LookupPlanArgs{
Arn: "arn:aws:arcregionswitch:us-west-2:123456789012:plan/example-plan",
}, 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.ArcRegionSwitch.GetPlan.Invoke(new()
{
Arn = "arn:aws:arcregionswitch:us-west-2:123456789012:plan/example-plan",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.arcregionswitch.ArcregionswitchFunctions;
import com.pulumi.aws.arcregionswitch.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 = ArcregionswitchFunctions.getPlan(GetPlanArgs.builder()
.arn("arn:aws:arcregionswitch:us-west-2:123456789012:plan/example-plan")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:arcregionswitch:getPlan
arguments:
arn: arn:aws:arcregionswitch:us-west-2:123456789012:plan/example-plan
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(arn: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPlanResult
def get_plan_output(arn: Optional[pulumi.Input[str]] = None,
region: Optional[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:arcregionswitch/getPlan:getPlan
arguments:
# arguments dictionaryThe following arguments are supported:
getPlan Result
The following output properties are available:
- Arn string
- Description string
- Description of the plan.
- Execution
Role string - Execution role ARN for the plan.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the plan.
- Owner string
- Owner of the plan.
- Primary
Region string - Primary region for the plan.
- Recovery
Approach string - Recovery approach for the plan.
- Recovery
Time intObjective Minutes - Recovery time objective in minutes.
- Region string
- Regions List<string>
- List of regions included in the plan.
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Updated
At string - Timestamp when the plan was last updated (RFC3339 format).
- Version string
- Version of the plan.
- Arn string
- Description string
- Description of the plan.
- Execution
Role string - Execution role ARN for the plan.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the plan.
- Owner string
- Owner of the plan.
- Primary
Region string - Primary region for the plan.
- Recovery
Approach string - Recovery approach for the plan.
- Recovery
Time intObjective Minutes - Recovery time objective in minutes.
- Region string
- Regions []string
- List of regions included in the plan.
- map[string]string
- Map of tags assigned to the resource.
- Updated
At string - Timestamp when the plan was last updated (RFC3339 format).
- Version string
- Version of the plan.
- arn String
- description String
- Description of the plan.
- execution
Role String - Execution role ARN for the plan.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the plan.
- owner String
- Owner of the plan.
- primary
Region String - Primary region for the plan.
- recovery
Approach String - Recovery approach for the plan.
- recovery
Time IntegerObjective Minutes - Recovery time objective in minutes.
- region String
- regions List<String>
- List of regions included in the plan.
- Map<String,String>
- Map of tags assigned to the resource.
- updated
At String - Timestamp when the plan was last updated (RFC3339 format).
- version String
- Version of the plan.
- arn string
- description string
- Description of the plan.
- execution
Role string - Execution role ARN for the plan.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the plan.
- owner string
- Owner of the plan.
- primary
Region string - Primary region for the plan.
- recovery
Approach string - Recovery approach for the plan.
- recovery
Time numberObjective Minutes - Recovery time objective in minutes.
- region string
- regions string[]
- List of regions included in the plan.
- {[key: string]: string}
- Map of tags assigned to the resource.
- updated
At string - Timestamp when the plan was last updated (RFC3339 format).
- version string
- Version of the plan.
- arn str
- description str
- Description of the plan.
- execution_
role str - Execution role ARN for the plan.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the plan.
- owner str
- Owner of the plan.
- primary_
region str - Primary region for the plan.
- recovery_
approach str - Recovery approach for the plan.
- recovery_
time_ intobjective_ minutes - Recovery time objective in minutes.
- region str
- regions Sequence[str]
- List of regions included in the plan.
- Mapping[str, str]
- Map of tags assigned to the resource.
- updated_
at str - Timestamp when the plan was last updated (RFC3339 format).
- version str
- Version of the plan.
- arn String
- description String
- Description of the plan.
- execution
Role String - Execution role ARN for the plan.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the plan.
- owner String
- Owner of the plan.
- primary
Region String - Primary region for the plan.
- recovery
Approach String - Recovery approach for the plan.
- recovery
Time NumberObjective Minutes - Recovery time objective in minutes.
- region String
- regions List<String>
- List of regions included in the plan.
- Map<String>
- Map of tags assigned to the resource.
- updated
At String - Timestamp when the plan was last updated (RFC3339 format).
- version String
- Version of the plan.
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
