@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)
86 lines (85 loc) • 3.11 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::DatabaseSnapshot
*/
export declare function getDatabaseSnapshot(args: GetDatabaseSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseSnapshotResult>;
export interface GetDatabaseSnapshotArgs {
/**
* The name for your new database snapshot.
*/
relationalDatabaseSnapshotName: string;
}
export interface GetDatabaseSnapshotResult {
/**
* The Amazon Resource Name (ARN) of the database snapshot.
*/
readonly arn?: string;
/**
* The timestamp when the database snapshot was created.
*/
readonly createdAt?: string;
/**
* The software of the database snapshot (for example, MySQL).
*/
readonly engine?: string;
/**
* The database engine version for the database snapshot (for example, 5.7.23).
*/
readonly engineVersion?: string;
/**
* The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
*/
readonly fromRelationalDatabaseArn?: string;
/**
* The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.
*/
readonly fromRelationalDatabaseBlueprintId?: string;
/**
* The bundle ID of the database from which the database snapshot was created.
*/
readonly fromRelationalDatabaseBundleId?: string;
/**
* The name of the source database from which the database snapshot was created.
*/
readonly fromRelationalDatabaseName?: string;
/**
* The Region name and Availability Zone where the database snapshot is located.
*/
readonly location?: outputs.lightsail.LocationProperties;
/**
* The name of the database snapshot.
*/
readonly name?: string;
/**
* The Lightsail resource type.
*/
readonly resourceType?: enums.lightsail.DatabaseSnapshotResourceType;
/**
* The size of the disk in GB (for example, 32) for the database snapshot.
*/
readonly sizeInGb?: number;
/**
* The state of the database snapshot.
*/
readonly state?: string;
/**
* The support code for the database snapshot. Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily.
*/
readonly supportCode?: string;
/**
* An array of key-value pairs to apply to this resource.
*/
readonly tags?: outputs.Tag[];
}
/**
* Resource Type definition for AWS::Lightsail::DatabaseSnapshot
*/
export declare function getDatabaseSnapshotOutput(args: GetDatabaseSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseSnapshotResult>;
export interface GetDatabaseSnapshotOutputArgs {
/**
* The name for your new database snapshot.
*/
relationalDatabaseSnapshotName: pulumi.Input<string>;
}