We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
aws-native.lightsail.getDatabase
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 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 dictionary
The following arguments are supported:
- Relational
Database stringName - The name to use for your new Lightsail database resource.
- Relational
Database stringName - The name to use for your new Lightsail database resource.
- relational
Database StringName - The name to use for your new Lightsail database resource.
- relational
Database stringName - The name to use for your new Lightsail database resource.
- relational_
database_ strname - The name to use for your new Lightsail database resource.
- relational
Database StringName - The name to use for your new Lightsail database resource.
getDatabase Result
The following output properties are available:
- 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 stringIdentifier - Indicates the certificate that needs to be associated with the database.
- Database
Arn string - 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 stringWindow - The daily time range during which automated backups are created for your new database if automated backups are enabled.
- Preferred
Maintenance stringWindow - 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.
- List<Pulumi.
Aws Native. Outputs. 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 stringIdentifier - Indicates the certificate that needs to be associated with the database.
- Database
Arn string - 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 stringWindow - The daily time range during which automated backups are created for your new database if automated backups are enabled.
- Preferred
Maintenance stringWindow - 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.
- Tag
- An array of key-value pairs to apply to this resource.
- backup
Retention 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.
- ca
Certificate StringIdentifier - Indicates the certificate that needs to be associated with the database.
- database
Arn String - 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 StringWindow - The daily time range during which automated backups are created for your new database if automated backups are enabled.
- preferred
Maintenance StringWindow - The weekly time range during which system maintenance can occur on your new database.
- publicly
Accessible 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.
- backup
Retention 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.
- ca
Certificate stringIdentifier - Indicates the certificate that needs to be associated with the database.
- database
Arn string - 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 stringWindow - The daily time range during which automated backups are created for your new database if automated backups are enabled.
- preferred
Maintenance stringWindow - The weekly time range during which system maintenance can occur on your new database.
- publicly
Accessible 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.
- backup
Retention 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.
- ca
Certificate StringIdentifier - Indicates the certificate that needs to be associated with the database.
- database
Arn String - 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 StringWindow - The daily time range during which automated backups are created for your new database if automated backups are enabled.
- preferred
Maintenance StringWindow - The weekly time range during which system maintenance can occur on your new database.
- publicly
Accessible 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.37.0 published on Wednesday, Oct 15, 2025 by Pulumi