We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
aws-native.lightsail.getDiskSnapshot
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
Resource Type definition for AWS::Lightsail::DiskSnapshot
Using getDiskSnapshot
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 getDiskSnapshot(args: GetDiskSnapshotArgs, opts?: InvokeOptions): Promise<GetDiskSnapshotResult>
function getDiskSnapshotOutput(args: GetDiskSnapshotOutputArgs, opts?: InvokeOptions): Output<GetDiskSnapshotResult>def get_disk_snapshot(disk_snapshot_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDiskSnapshotResult
def get_disk_snapshot_output(disk_snapshot_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDiskSnapshotResult]func LookupDiskSnapshot(ctx *Context, args *LookupDiskSnapshotArgs, opts ...InvokeOption) (*LookupDiskSnapshotResult, error)
func LookupDiskSnapshotOutput(ctx *Context, args *LookupDiskSnapshotOutputArgs, opts ...InvokeOption) LookupDiskSnapshotResultOutput> Note: This function is named LookupDiskSnapshot in the Go SDK.
public static class GetDiskSnapshot
{
public static Task<GetDiskSnapshotResult> InvokeAsync(GetDiskSnapshotArgs args, InvokeOptions? opts = null)
public static Output<GetDiskSnapshotResult> Invoke(GetDiskSnapshotInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDiskSnapshotResult> getDiskSnapshot(GetDiskSnapshotArgs args, InvokeOptions options)
public static Output<GetDiskSnapshotResult> getDiskSnapshot(GetDiskSnapshotArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:lightsail:getDiskSnapshot
arguments:
# arguments dictionaryThe following arguments are supported:
- Disk
Snapshot stringName - The name of the disk snapshot (e.g., my-disk-snapshot).
- Disk
Snapshot stringName - The name of the disk snapshot (e.g., my-disk-snapshot).
- disk
Snapshot StringName - The name of the disk snapshot (e.g., my-disk-snapshot).
- disk
Snapshot stringName - The name of the disk snapshot (e.g., my-disk-snapshot).
- disk_
snapshot_ strname - The name of the disk snapshot (e.g., my-disk-snapshot).
- disk
Snapshot StringName - The name of the disk snapshot (e.g., my-disk-snapshot).
getDiskSnapshot Result
The following output properties are available:
- Created
At string - The timestamp when the disk snapshot was created.
- Disk
Snapshot stringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- From
Disk stringName - The name of the source disk from which the disk snapshot was created.
- Is
From boolAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- Location
Pulumi.
Aws Native. Lightsail. Outputs. Location Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- Progress string
- The progress of the disk snapshot creation operation.
- Resource
Type Pulumi.Aws Native. Lightsail. Disk Snapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- Size
In intGb - The size of the disk snapshot in GB.
- State
Pulumi.
Aws Native. Lightsail. Disk Snapshot State - The status of the disk snapshot operation.
- Support
Code string - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
-
List<Pulumi.
Aws Native. Outputs. Tag> - An array of key-value pairs to apply to this resource.
- Created
At string - The timestamp when the disk snapshot was created.
- Disk
Snapshot stringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- From
Disk stringName - The name of the source disk from which the disk snapshot was created.
- Is
From boolAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- Location
Location
Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- Progress string
- The progress of the disk snapshot creation operation.
- Resource
Type DiskSnapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- Size
In intGb - The size of the disk snapshot in GB.
- State
Disk
Snapshot State Enum - The status of the disk snapshot operation.
- Support
Code string - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- Tag
- An array of key-value pairs to apply to this resource.
- created
At String - The timestamp when the disk snapshot was created.
- disk
Snapshot StringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- from
Disk StringName - The name of the source disk from which the disk snapshot was created.
- is
From BooleanAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- location
Location
Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- progress String
- The progress of the disk snapshot creation operation.
- resource
Type DiskSnapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- size
In IntegerGb - The size of the disk snapshot in GB.
- state
Disk
Snapshot State - The status of the disk snapshot operation.
- support
Code String - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- created
At string - The timestamp when the disk snapshot was created.
- disk
Snapshot stringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- from
Disk stringName - The name of the source disk from which the disk snapshot was created.
- is
From booleanAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- location
Location
Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- progress string
- The progress of the disk snapshot creation operation.
- resource
Type DiskSnapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- size
In numberGb - The size of the disk snapshot in GB.
- state
Disk
Snapshot State - The status of the disk snapshot operation.
- support
Code string - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- Tag[]
- An array of key-value pairs to apply to this resource.
- created_
at str - The timestamp when the disk snapshot was created.
- disk_
snapshot_ strarn - The Amazon Resource Name (ARN) of the disk snapshot.
- from_
disk_ strname - The name of the source disk from which the disk snapshot was created.
- is_
from_ boolauto_ snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- location
Location
Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- progress str
- The progress of the disk snapshot creation operation.
- resource_
type DiskSnapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- size_
in_ intgb - The size of the disk snapshot in GB.
- state
Disk
Snapshot State - The status of the disk snapshot operation.
- support_
code str - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- Sequence[root_Tag]
- An array of key-value pairs to apply to this resource.
- created
At String - The timestamp when the disk snapshot was created.
- disk
Snapshot StringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- from
Disk StringName - The name of the source disk from which the disk snapshot was created.
- is
From BooleanAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- location Property Map
- The AWS Region and Availability Zone where the disk snapshot was created.
- progress String
- The progress of the disk snapshot creation operation.
- resource
Type "DiskSnapshot" - The Lightsail resource type (DiskSnapshot).
- size
In NumberGb - The size of the disk snapshot in GB.
- state "pending" | "completed" | "error" | "unknown"
- The status of the disk snapshot operation.
- support
Code String - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Supporting Types
DiskSnapshotResourceType
DiskSnapshotState
LocationProperties
- Availability
Zone string - The Availability Zone where the disk snapshot was created.
- Region
Name string - The AWS Region where the disk snapshot was created.
- Availability
Zone string - The Availability Zone where the disk snapshot was created.
- Region
Name string - The AWS Region where the disk snapshot was created.
- availability
Zone String - The Availability Zone where the disk snapshot was created.
- region
Name String - The AWS Region where the disk snapshot was created.
- availability
Zone string - The Availability Zone where the disk snapshot was created.
- region
Name string - The AWS Region where the disk snapshot was created.
- availability_
zone str - The Availability Zone where the disk snapshot was created.
- region_
name str - The AWS Region where the disk snapshot was created.
- availability
Zone String - The Availability Zone where the disk snapshot was created.
- region
Name String - The AWS Region where the disk snapshot was created.
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.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
