We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.75.0
published on Monday, Aug 17, 2026 by Pulumi
published on Monday, Aug 17, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.75.0
published on Monday, Aug 17, 2026 by Pulumi
published on Monday, Aug 17, 2026 by Pulumi
Creates a legal hold on recovery points (backups). A legal hold prevents backups from being deleted while under hold.
Using getLegalHold
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 getLegalHold(args: GetLegalHoldArgs, opts?: InvokeOptions): Promise<GetLegalHoldResult>
function getLegalHoldOutput(args: GetLegalHoldOutputArgs, opts?: InvokeOutputOptions): Output<GetLegalHoldResult>def get_legal_hold(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLegalHoldResult
def get_legal_hold_output(arn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetLegalHoldResult]func LookupLegalHold(ctx *Context, args *LookupLegalHoldArgs, opts ...InvokeOption) (*LookupLegalHoldResult, error)
func LookupLegalHoldOutput(ctx *Context, args *LookupLegalHoldOutputArgs, opts ...InvokeOption) LookupLegalHoldResultOutput> Note: This function is named LookupLegalHold in the Go SDK.
public static class GetLegalHold
{
public static Task<GetLegalHoldResult> InvokeAsync(GetLegalHoldArgs args, InvokeOptions? opts = null)
public static Output<GetLegalHoldResult> Invoke(GetLegalHoldInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetLegalHoldResult> Invoke(GetLegalHoldInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetLegalHoldResult> getLegalHold(GetLegalHoldArgs args, InvokeOptions options)
public static Output<GetLegalHoldResult> getLegalHold(GetLegalHoldArgs args, InvokeOptions options)
public static Output<GetLegalHoldResult> getLegalHold(GetLegalHoldArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:backup:getLegalHold
arguments:
# arguments dictionarydata "aws-native_backup_get_legal_hold" "name" {
# arguments
}The following arguments are supported:
- Arn string
- The Amazon Resource Name (ARN) of the legal hold.
- Arn string
- The Amazon Resource Name (ARN) of the legal hold.
- arn string
- The Amazon Resource Name (ARN) of the legal hold.
- arn String
- The Amazon Resource Name (ARN) of the legal hold.
- arn string
- The Amazon Resource Name (ARN) of the legal hold.
- arn str
- The Amazon Resource Name (ARN) of the legal hold.
- arn String
- The Amazon Resource Name (ARN) of the legal hold.
getLegalHold Result
The following output properties are available:
- Arn string
- The Amazon Resource Name (ARN) of the legal hold.
- Creation
Date string - The time when the legal hold was created.
- Legal
Hold stringId - The ID of the legal hold.
- Status
Pulumi.
Aws Native. Backup. Legal Hold Status - The status of the legal hold.
-
List<Pulumi.
Aws Native. Outputs. Tag> - Optional tags to include.
- Arn string
- The Amazon Resource Name (ARN) of the legal hold.
- Creation
Date string - The time when the legal hold was created.
- Legal
Hold stringId - The ID of the legal hold.
- Status
Legal
Hold Status - The status of the legal hold.
- Tag
- Optional tags to include.
- arn string
- The Amazon Resource Name (ARN) of the legal hold.
- creation_
date string - The time when the legal hold was created.
- legal_
hold_ stringid - The ID of the legal hold.
- status "CREATING" | "ACTIVE" | "CANCELING" | "CANCELED"
- The status of the legal hold.
- list(object)
- Optional tags to include.
- arn String
- The Amazon Resource Name (ARN) of the legal hold.
- creation
Date String - The time when the legal hold was created.
- legal
Hold StringId - The ID of the legal hold.
- status
Legal
Hold Status - The status of the legal hold.
- List<Tag>
- Optional tags to include.
- arn string
- The Amazon Resource Name (ARN) of the legal hold.
- creation
Date string - The time when the legal hold was created.
- legal
Hold stringId - The ID of the legal hold.
- status
Legal
Hold Status - The status of the legal hold.
- Tag[]
- Optional tags to include.
- arn str
- The Amazon Resource Name (ARN) of the legal hold.
- creation_
date str - The time when the legal hold was created.
- legal_
hold_ strid - The ID of the legal hold.
- status
Legal
Hold Status - The status of the legal hold.
- Sequence[root_Tag]
- Optional tags to include.
- arn String
- The Amazon Resource Name (ARN) of the legal hold.
- creation
Date String - The time when the legal hold was created.
- legal
Hold StringId - The ID of the legal hold.
- status "CREATING" | "ACTIVE" | "CANCELING" | "CANCELED"
- The status of the legal hold.
- List<Property Map>
- Optional tags to include.
Supporting Types
LegalHoldStatus
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.75.0
published on Monday, Aug 17, 2026 by Pulumi
published on Monday, Aug 17, 2026 by Pulumi