@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
70 lines (69 loc) • 2.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
/**
* Resource Type definition for AWS::Lightsail::DiskSnapshot
*/
export declare function getDiskSnapshot(args: GetDiskSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetDiskSnapshotResult>;
export interface GetDiskSnapshotArgs {
/**
* The name of the disk snapshot (e.g., my-disk-snapshot).
*/
diskSnapshotName: string;
}
export interface GetDiskSnapshotResult {
/**
* The timestamp when the disk snapshot was created.
*/
readonly createdAt?: string;
/**
* The Amazon Resource Name (ARN) of the disk snapshot.
*/
readonly diskSnapshotArn?: string;
/**
* The name of the source disk from which the disk snapshot was created.
*/
readonly fromDiskName?: string;
/**
* A Boolean value indicating whether the snapshot was created from an automatic snapshot.
*/
readonly isFromAutoSnapshot?: boolean;
/**
* The AWS Region and Availability Zone where the disk snapshot was created.
*/
readonly location?: outputs.lightsail.LocationProperties;
/**
* The progress of the disk snapshot creation operation.
*/
readonly progress?: string;
/**
* The Lightsail resource type (DiskSnapshot).
*/
readonly resourceType?: enums.lightsail.DiskSnapshotResourceType;
/**
* The size of the disk snapshot in GB.
*/
readonly sizeInGb?: number;
/**
* The status of the disk snapshot operation.
*/
readonly state?: enums.lightsail.DiskSnapshotState;
/**
* The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
*/
readonly supportCode?: string;
/**
* An array of key-value pairs to apply to this resource.
*/
readonly tags?: outputs.Tag[];
}
/**
* Resource Type definition for AWS::Lightsail::DiskSnapshot
*/
export declare function getDiskSnapshotOutput(args: GetDiskSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDiskSnapshotResult>;
export interface GetDiskSnapshotOutputArgs {
/**
* The name of the disk snapshot (e.g., my-disk-snapshot).
*/
diskSnapshotName: pulumi.Input<string>;
}