@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)
117 lines (116 loc) • 4.67 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
/**
* Resource Type definition for AWS::Lightsail::DatabaseSnapshot
*/
export declare class DatabaseSnapshot extends pulumi.CustomResource {
/**
* Get an existing DatabaseSnapshot resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): DatabaseSnapshot;
/**
* Returns true if the given object is an instance of DatabaseSnapshot. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is DatabaseSnapshot;
/**
* The Amazon Resource Name (ARN) of the database snapshot.
*/
readonly arn: pulumi.Output<string>;
/**
* The timestamp when the database snapshot was created.
*/
readonly createdAt: pulumi.Output<string>;
/**
* The software of the database snapshot (for example, MySQL).
*/
readonly engine: pulumi.Output<string>;
/**
* The database engine version for the database snapshot (for example, 5.7.23).
*/
readonly engineVersion: pulumi.Output<string>;
/**
* The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
*/
readonly fromRelationalDatabaseArn: pulumi.Output<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: pulumi.Output<string>;
/**
* The bundle ID of the database from which the database snapshot was created.
*/
readonly fromRelationalDatabaseBundleId: pulumi.Output<string>;
/**
* The name of the source database from which the database snapshot was created.
*/
readonly fromRelationalDatabaseName: pulumi.Output<string>;
/**
* The Region name and Availability Zone where the database snapshot is located.
*/
readonly location: pulumi.Output<outputs.lightsail.LocationProperties>;
/**
* The name of the database snapshot.
*/
readonly name: pulumi.Output<string>;
/**
* The name of the database on which to base your new snapshot.
*/
readonly relationalDatabaseName: pulumi.Output<string>;
/**
* The name for your new database snapshot.
*/
readonly relationalDatabaseSnapshotName: pulumi.Output<string>;
/**
* The Lightsail resource type.
*/
readonly resourceType: pulumi.Output<enums.lightsail.DatabaseSnapshotResourceType>;
/**
* The size of the disk in GB (for example, 32) for the database snapshot.
*/
readonly sizeInGb: pulumi.Output<number>;
/**
* The state of the database snapshot.
*/
readonly state: pulumi.Output<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: pulumi.Output<string>;
/**
* An array of key-value pairs to apply to this resource.
*/
readonly tags: pulumi.Output<outputs.Tag[] | undefined>;
/**
* Create a DatabaseSnapshot resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: DatabaseSnapshotArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a DatabaseSnapshot resource.
*/
export interface DatabaseSnapshotArgs {
/**
* The name of the database on which to base your new snapshot.
*/
relationalDatabaseName: pulumi.Input<string>;
/**
* The name for your new database snapshot.
*/
relationalDatabaseSnapshotName: pulumi.Input<string>;
/**
* An array of key-value pairs to apply to this resource.
*/
tags?: pulumi.Input<pulumi.Input<inputs.TagArgs>[]>;
}