import * as core from "@terrascript/core"; export interface DatabaseArgs extends core.ResourceArgs { /** * When true , applies changes immediately. When false , applies changes during the preferred maintenan * ce window. Some changes may cause an outage. */ applyImmediately?: boolean | core.BooleanOut; /** * (Required) The Availability Zone in which to create your new database. Use the us-east-2a case-sensi * tive format. */ availabilityZone: string | core.StringOut; /** * When true, enables automated backup retention for your database. When false, disables automated back * up retention for your database. Disabling backup retention deletes all automated database backups. B * efore disabling this, you may want to create a snapshot of your database. */ backupRetentionEnabled?: boolean | core.BooleanOut; /** * (Required) The blueprint ID for your new database. A blueprint describes the major engine version of * a database. You can get a list of database blueprints IDs by using the AWS CLI command: `aws lights * ail get-relational-database-blueprints` */ blueprintId: string | core.StringOut; /** * (Required) The bundle ID for your new database. A bundle describes the performance specifications f * or your database (see list below). You can get a list of database bundle IDs by using the AWS CLI co * mmand: `aws lightsail get-relational-database-bundles`. */ bundleId: string | core.StringOut; /** * (Required unless `skip_final_snapshot = true`) The name of the database snapshot created if skip fin * al snapshot is false, which is the default value for that parameter. */ finalSnapshotName?: string | core.StringOut; /** * (Required) The name of the master database created when the Lightsail database resource is created. */ masterDatabaseName: string | core.StringOut; /** * (Sensitive) The password for the master user of your new database. The password can include any prin * table ASCII character except "/", """, or "@". */ masterPassword: string | core.StringOut; /** * The master user name for your new database. */ masterUsername: string | core.StringOut; /** * The daily time range during which automated backups are created for your new database if automated b * ackups are enabled. Must be in the hh24:mi-hh24:mi format. Example: `16:00-16:30`. Specified in Coor * dinated Universal Time (UTC). */ preferredBackupWindow?: string | core.StringOut; /** * The weekly time range during which system maintenance can occur on your new database. Must be in the * ddd:hh24:mi-ddd:hh24:mi format. Specified in Coordinated Universal Time (UTC). Example: `Tue:17:00- * Tue:17:30` */ preferredMaintenanceWindow?: string | core.StringOut; /** * Specifies the accessibility options for your new database. A value of true specifies a database that * is available to resources outside of your Lightsail account. A value of false specifies a database * that is available only to your Lightsail resources in the same region as your database. */ publiclyAccessible?: boolean | core.BooleanOut; relationalDatabaseName: string | core.StringOut; /** * Determines whether a final database snapshot is created before your database is deleted. If true is * specified, no database snapshot is created. If false is specified, a database snapshot is created be * fore your database is deleted. You must specify the final relational database snapshot name paramete * r if the skip final snapshot parameter is false. */ skipFinalSnapshot?: boolean | core.BooleanOut; /** * (Optional) A map of tags to assign to the resource. To create a key-only tag, use an empty string as * the value. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export declare class Database extends core.Resource { /** * When true , applies changes immediately. When false , applies changes during the preferred maintenan * ce window. Some changes may cause an outage. */ applyImmediately?: boolean | core.BooleanOut; /** * The ARN of the Lightsail instance (matches `id`). */ arn: string | core.StringOut; /** * (Required) The Availability Zone in which to create your new database. Use the us-east-2a case-sensi * tive format. */ availabilityZone: string | core.StringOut; /** * When true, enables automated backup retention for your database. When false, disables automated back * up retention for your database. Disabling backup retention deletes all automated database backups. B * efore disabling this, you may want to create a snapshot of your database. */ backupRetentionEnabled?: boolean | core.BooleanOut; /** * (Required) The blueprint ID for your new database. A blueprint describes the major engine version of * a database. You can get a list of database blueprints IDs by using the AWS CLI command: `aws lights * ail get-relational-database-blueprints` */ blueprintId: string | core.StringOut; /** * (Required) The bundle ID for your new database. A bundle describes the performance specifications f * or your database (see list below). You can get a list of database bundle IDs by using the AWS CLI co * mmand: `aws lightsail get-relational-database-bundles`. */ bundleId: string | core.StringOut; /** * The certificate associated with the database. */ caCertificateIdentifier: string | core.StringOut; /** * The number of vCPUs for the database. */ cpuCount: number | core.NumberOut; /** * The timestamp when the instance was created. */ createdAt: string | core.StringOut; /** * The size of the disk for the database. */ diskSize: number | core.NumberOut; /** * The database software (for example, MySQL). */ engine: string | core.StringOut; /** * The database engine version (for example, 5.7.23). */ engineVersion: string | core.StringOut; /** * (Required unless `skip_final_snapshot = true`) The name of the database snapshot created if skip fin * al snapshot is false, which is the default value for that parameter. */ finalSnapshotName?: string | core.StringOut; /** * The ARN of the Lightsail instance (matches `arn`). */ id: string | core.StringOut; /** * (Required) The name of the master database created when the Lightsail database resource is created. */ masterDatabaseName: string | core.StringOut; /** * The master endpoint fqdn for the database. */ masterEndpointAddress: string | core.StringOut; /** * The master endpoint network port for the database. */ masterEndpointPort: number | core.NumberOut; /** * (Sensitive) The password for the master user of your new database. The password can include any prin * table ASCII character except "/", """, or "@". */ masterPassword: string | core.StringOut; /** * The master user name for your new database. */ masterUsername: string | core.StringOut; /** * The daily time range during which automated backups are created for your new database if automated b * ackups are enabled. Must be in the hh24:mi-hh24:mi format. Example: `16:00-16:30`. Specified in Coor * dinated Universal Time (UTC). */ preferredBackupWindow?: string | core.StringOut; /** * The weekly time range during which system maintenance can occur on your new database. Must be in the * ddd:hh24:mi-ddd:hh24:mi format. Specified in Coordinated Universal Time (UTC). Example: `Tue:17:00- * Tue:17:30` */ preferredMaintenanceWindow?: string | core.StringOut; /** * Specifies the accessibility options for your new database. A value of true specifies a database that * is available to resources outside of your Lightsail account. A value of false specifies a database * that is available only to your Lightsail resources in the same region as your database. */ publiclyAccessible?: boolean | core.BooleanOut; /** * The amount of RAM in GB for the database. */ ramSize: number | core.NumberOut; relationalDatabaseName: string | core.StringOut; /** * 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 | core.StringOut; /** * Determines whether a final database snapshot is created before your database is deleted. If true is * specified, no database snapshot is created. If false is specified, a database snapshot is created be * fore your database is deleted. You must specify the final relational database snapshot name paramete * r if the skip final snapshot parameter is false. */ skipFinalSnapshot?: boolean | core.BooleanOut; /** * The support code for the database. Include this code in your email to support when you have question * s about a database in Lightsail. This code enables our support team to look up your Lightsail inform * ation more easily. */ supportCode: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. To create a key-only tag, use an empty string as * the value. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: DatabaseArgs); getNamespace(): string; } //# sourceMappingURL=database.d.ts.map