We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.lightsail.getDatabase
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
Resource Type definition for AWS::Lightsail::Database
Using getDatabase
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatabase(args: GetDatabaseArgs, opts?: InvokeOptions): Promise<GetDatabaseResult>
function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDatabaseResult>def get_database(relational_database_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
def get_database_output(relational_database_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseResult]func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput> Note: This function is named LookupDatabase in the Go SDK.
public static class GetDatabase 
{
    public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseResult> Invoke(GetDatabaseInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
public static Output<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:lightsail:getDatabase
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RelationalDatabase stringName 
- The name to use for your new Lightsail database resource.
- RelationalDatabase stringName 
- The name to use for your new Lightsail database resource.
- relationalDatabase StringName 
- The name to use for your new Lightsail database resource.
- relationalDatabase stringName 
- The name to use for your new Lightsail database resource.
- relational_database_ strname 
- The name to use for your new Lightsail database resource.
- relationalDatabase StringName 
- The name to use for your new Lightsail database resource.
getDatabase Result
The following output properties are available:
- BackupRetention bool
- When true, enables automated backup retention for your database. Updates are applied during the next maintenance window because this can result in an outage.
- CaCertificate stringIdentifier 
- Indicates the certificate that needs to be associated with the database.
- DatabaseArn string
- The Amazon Resource Name (ARN) of the database (for example, arn:aws:lightsail:us-east-2:123456789101:RelationalDatabase/244ad76f-8aad-4741-809f-12345EXAMPLE).
- PreferredBackup stringWindow 
- The daily time range during which automated backups are created for your new database if automated backups are enabled.
- PreferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur on your new database.
- PubliclyAccessible bool
- 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.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- An array of key-value pairs to apply to this resource.
- BackupRetention bool
- When true, enables automated backup retention for your database. Updates are applied during the next maintenance window because this can result in an outage.
- CaCertificate stringIdentifier 
- Indicates the certificate that needs to be associated with the database.
- DatabaseArn string
- The Amazon Resource Name (ARN) of the database (for example, arn:aws:lightsail:us-east-2:123456789101:RelationalDatabase/244ad76f-8aad-4741-809f-12345EXAMPLE).
- PreferredBackup stringWindow 
- The daily time range during which automated backups are created for your new database if automated backups are enabled.
- PreferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur on your new database.
- PubliclyAccessible bool
- 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.
- Tag
- An array of key-value pairs to apply to this resource.
- backupRetention Boolean
- When true, enables automated backup retention for your database. Updates are applied during the next maintenance window because this can result in an outage.
- caCertificate StringIdentifier 
- Indicates the certificate that needs to be associated with the database.
- databaseArn String
- The Amazon Resource Name (ARN) of the database (for example, arn:aws:lightsail:us-east-2:123456789101:RelationalDatabase/244ad76f-8aad-4741-809f-12345EXAMPLE).
- preferredBackup StringWindow 
- The daily time range during which automated backups are created for your new database if automated backups are enabled.
- preferredMaintenance StringWindow 
- The weekly time range during which system maintenance can occur on your new database.
- publiclyAccessible Boolean
- 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.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- backupRetention boolean
- When true, enables automated backup retention for your database. Updates are applied during the next maintenance window because this can result in an outage.
- caCertificate stringIdentifier 
- Indicates the certificate that needs to be associated with the database.
- databaseArn string
- The Amazon Resource Name (ARN) of the database (for example, arn:aws:lightsail:us-east-2:123456789101:RelationalDatabase/244ad76f-8aad-4741-809f-12345EXAMPLE).
- preferredBackup stringWindow 
- The daily time range during which automated backups are created for your new database if automated backups are enabled.
- preferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur on your new database.
- publiclyAccessible boolean
- 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.
- Tag[]
- An array of key-value pairs to apply to this resource.
- backup_retention bool
- When true, enables automated backup retention for your database. Updates are applied during the next maintenance window because this can result in an outage.
- ca_certificate_ stridentifier 
- Indicates the certificate that needs to be associated with the database.
- database_arn str
- The Amazon Resource Name (ARN) of the database (for example, arn:aws:lightsail:us-east-2:123456789101:RelationalDatabase/244ad76f-8aad-4741-809f-12345EXAMPLE).
- preferred_backup_ strwindow 
- The daily time range during which automated backups are created for your new database if automated backups are enabled.
- preferred_maintenance_ strwindow 
- The weekly time range during which system maintenance can occur on your new database.
- publicly_accessible bool
- 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.
- Sequence[root_Tag]
- An array of key-value pairs to apply to this resource.
- backupRetention Boolean
- When true, enables automated backup retention for your database. Updates are applied during the next maintenance window because this can result in an outage.
- caCertificate StringIdentifier 
- Indicates the certificate that needs to be associated with the database.
- databaseArn String
- The Amazon Resource Name (ARN) of the database (for example, arn:aws:lightsail:us-east-2:123456789101:RelationalDatabase/244ad76f-8aad-4741-809f-12345EXAMPLE).
- preferredBackup StringWindow 
- The daily time range during which automated backups are created for your new database if automated backups are enabled.
- preferredMaintenance StringWindow 
- The weekly time range during which system maintenance can occur on your new database.
- publiclyAccessible Boolean
- 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.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi