AWS Native is in preview. AWS Classic is fully supported.
aws-native.lightsail.getDatabase
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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)
// Output-based functions aren't available in Java yet
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 - 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. Lightsail. Outputs. 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 stringIdentifier Indicates the certificate that needs to be associated with the database.
- Database
Arn string - 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.
- []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 - 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<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 - 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.
- 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 - 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[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 - 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
DatabaseTag
- Key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- Value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- Key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- Value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- key String
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- value String
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- key str
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- value str
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- key String
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- value String
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.