DatabaseArgs

data class DatabaseArgs(val availabilityZone: Output<String>? = null, val backupRetention: Output<Boolean>? = null, val caCertificateIdentifier: Output<String>? = null, val masterDatabaseName: Output<String>? = null, val masterUserPassword: Output<String>? = null, val masterUsername: Output<String>? = null, val preferredBackupWindow: Output<String>? = null, val preferredMaintenanceWindow: Output<String>? = null, val publiclyAccessible: Output<Boolean>? = null, val relationalDatabaseBlueprintId: Output<String>? = null, val relationalDatabaseBundleId: Output<String>? = null, val relationalDatabaseName: Output<String>? = null, val relationalDatabaseParameters: Output<List<DatabaseRelationalDatabaseParameterArgs>>? = null, val rotateMasterUserPassword: Output<Boolean>? = null, val tags: Output<List<TagArgs>>? = null) : ConvertibleToJava<DatabaseArgs>

Resource Type definition for AWS::Lightsail::Database

Constructors

Link copied to clipboard
constructor(availabilityZone: Output<String>? = null, backupRetention: Output<Boolean>? = null, caCertificateIdentifier: Output<String>? = null, masterDatabaseName: Output<String>? = null, masterUserPassword: Output<String>? = null, masterUsername: Output<String>? = null, preferredBackupWindow: Output<String>? = null, preferredMaintenanceWindow: Output<String>? = null, publiclyAccessible: Output<Boolean>? = null, relationalDatabaseBlueprintId: Output<String>? = null, relationalDatabaseBundleId: Output<String>? = null, relationalDatabaseName: Output<String>? = null, relationalDatabaseParameters: Output<List<DatabaseRelationalDatabaseParameterArgs>>? = null, rotateMasterUserPassword: Output<Boolean>? = null, tags: Output<List<TagArgs>>? = null)

Properties

Link copied to clipboard
val availabilityZone: Output<String>? = null

The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.

Link copied to clipboard
val backupRetention: Output<Boolean>? = null

When true, enables automated backup retention for your database. Updates are applied during the next maintenance window because this can result in an outage.

Link copied to clipboard
val caCertificateIdentifier: Output<String>? = null

Indicates the certificate that needs to be associated with the database.

Link copied to clipboard
val masterDatabaseName: Output<String>? = null

The name of the database to create when the Lightsail database resource is created. For MySQL, if this parameter isn't specified, no database is created in the database resource. For PostgreSQL, if this parameter isn't specified, a database named postgres is created in the database resource.

Link copied to clipboard
val masterUsername: Output<String>? = null

The name for the master user.

Link copied to clipboard
val masterUserPassword: Output<String>? = null

The password for the master user. The password can include any printable ASCII character except "/", """, or "@". It cannot contain spaces.

Link copied to clipboard
val preferredBackupWindow: Output<String>? = null

The daily time range during which automated backups are created for your new database if automated backups are enabled.

Link copied to clipboard
val preferredMaintenanceWindow: Output<String>? = null

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

Link copied to clipboard
val publiclyAccessible: Output<Boolean>? = null

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.

Link copied to clipboard

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

Link copied to clipboard
val relationalDatabaseBundleId: Output<String>? = null

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

Link copied to clipboard
val relationalDatabaseName: Output<String>? = null

The name to use for your new Lightsail database resource.

Link copied to clipboard

Update one or more parameters of the relational database.

Link copied to clipboard
val rotateMasterUserPassword: Output<Boolean>? = null

When true, the master user password is changed to a new strong password generated by Lightsail. Use the get relational database master user password operation to get the new password.

Link copied to clipboard
val tags: Output<List<TagArgs>>? = null

An array of key-value pairs to apply to this resource.

Functions

Link copied to clipboard
open override fun toJava(): DatabaseArgs