import { _ResourceLocation, _UnmarshalledResourceLocation } from "./_ResourceLocation"; import { _Tag, _UnmarshalledTag } from "./_Tag"; import { _RelationalDatabaseHardware, _UnmarshalledRelationalDatabaseHardware } from "./_RelationalDatabaseHardware"; import { _PendingModifiedRelationalDatabaseValues, _UnmarshalledPendingModifiedRelationalDatabaseValues } from "./_PendingModifiedRelationalDatabaseValues"; import { _RelationalDatabaseEndpoint, _UnmarshalledRelationalDatabaseEndpoint } from "./_RelationalDatabaseEndpoint"; import { _PendingMaintenanceAction, _UnmarshalledPendingMaintenanceAction } from "./_PendingMaintenanceAction"; /** *

Describes a database.

*/ export interface _RelationalDatabase { /** *

The unique name of the database resource in Lightsail.

*/ name?: string; /** *

The Amazon Resource Name (ARN) of the database.

*/ arn?: string; /** *

The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.

*/ supportCode?: string; /** *

The timestamp when the database was created. Formatted in Unix time.

*/ createdAt?: Date | string | number; /** *

The Region name and Availability Zone where the database is located.

*/ location?: _ResourceLocation; /** *

The Lightsail resource type for the database (for example, RelationalDatabase).

*/ resourceType?: "Instance" | "StaticIp" | "KeyPair" | "InstanceSnapshot" | "Domain" | "PeeredVpc" | "LoadBalancer" | "LoadBalancerTlsCertificate" | "Disk" | "DiskSnapshot" | "RelationalDatabase" | "RelationalDatabaseSnapshot" | "ExportSnapshotRecord" | "CloudFormationStackRecord" | string; /** *

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

*/ tags?: Array<_Tag> | Iterable<_Tag>; /** *

The blueprint ID for the database. A blueprint describes the major engine version of a database.

*/ relationalDatabaseBlueprintId?: string; /** *

The bundle ID for the database. A bundle describes the performance specifications for your database.

*/ relationalDatabaseBundleId?: string; /** *

The name of the master database created when the Lightsail database resource is created.

*/ masterDatabaseName?: string; /** *

Describes the hardware of the database.

*/ hardware?: _RelationalDatabaseHardware; /** *

Describes the current state of the database.

*/ state?: string; /** *

Describes the secondary Availability Zone of a high availability database.

The secondary database is used for failover support of a high availability database.

*/ secondaryAvailabilityZone?: string; /** *

A Boolean value indicating whether automated backup retention is enabled for the database.

*/ backupRetentionEnabled?: boolean; /** *

Describes pending database value modifications.

*/ pendingModifiedValues?: _PendingModifiedRelationalDatabaseValues; /** *

The database software (for example, MySQL).

*/ engine?: string; /** *

The database engine version (for example, 5.7.23).

*/ engineVersion?: string; /** *

The latest point in time to which the database can be restored. Formatted in Unix time.

*/ latestRestorableTime?: Date | string | number; /** *

The master user name of the database.

*/ masterUsername?: string; /** *

The status of parameter updates for the database.

*/ parameterApplyStatus?: string; /** *

The daily time range during which automated backups are created for the database (for example, 16:00-16:30).

*/ preferredBackupWindow?: string; /** *

The weekly time range during which system maintenance can occur on the database.

In the format ddd:hh24:mi-ddd:hh24:mi. For example, Tue:17:00-Tue:17:30.

*/ preferredMaintenanceWindow?: string; /** *

A Boolean value indicating whether the database is publicly accessible.

*/ publiclyAccessible?: boolean; /** *

The master endpoint for the database.

*/ masterEndpoint?: _RelationalDatabaseEndpoint; /** *

Describes the pending maintenance actions for the database.

*/ pendingMaintenanceActions?: Array<_PendingMaintenanceAction> | Iterable<_PendingMaintenanceAction>; } export interface _UnmarshalledRelationalDatabase extends _RelationalDatabase { /** *

The timestamp when the database was created. Formatted in Unix time.

*/ createdAt?: Date; /** *

The Region name and Availability Zone where the database is located.

*/ location?: _UnmarshalledResourceLocation; /** *

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

*/ tags?: Array<_UnmarshalledTag>; /** *

Describes the hardware of the database.

*/ hardware?: _UnmarshalledRelationalDatabaseHardware; /** *

Describes pending database value modifications.

*/ pendingModifiedValues?: _UnmarshalledPendingModifiedRelationalDatabaseValues; /** *

The latest point in time to which the database can be restored. Formatted in Unix time.

*/ latestRestorableTime?: Date; /** *

The master endpoint for the database.

*/ masterEndpoint?: _UnmarshalledRelationalDatabaseEndpoint; /** *

Describes the pending maintenance actions for the database.

*/ pendingMaintenanceActions?: Array<_UnmarshalledPendingMaintenanceAction>; }