Skip to main content

relational_database_parameters

Creates, updates, deletes, gets or lists a relational_database_parameters resource.

Overview​

Namerelational_database_parameters
TypeResource
Idaws.lightsail.relational_database_parameters

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
allowed_valuesstringSpecifies the valid range of values for the parameter.
apply_methodstringIndicates when parameter updates are applied. Can be immediate or pending-reboot.
apply_typestringSpecifies the engine-specific parameter type.
data_typestringSpecifies the valid data type for the parameter.
descriptionstringProvides a description of the parameter.
is_modifiablebooleanA Boolean value indicating whether the parameter can be modified.
parameter_namestringSpecifies the name of the parameter.
parameter_valuestringSpecifies the value of the parameter.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_relational_database_parametersselectregionReturns all of the runtime parameters offered by the underlying database software, or engine, for a specific database in Amazon Lightsail. In addition to the parameter names and values, this operation returns other information about each parameter. This information includes whether changes require a reboot, whether the parameter is modifiable, the allowed values, and the data types.
update_relational_database_parametersupdateregion, relationalDatabaseName, parametersAllows the update of one or more parameters of a database in Amazon Lightsail. Parameter updates don't cause outages; therefore, their application is not subject to the preferred maintenance window. However, there are two ways in which parameter updates are applied: dynamic or pending-reboot. Parameters marked with a dynamic apply type are applied immediately. Parameters marked with a pending-reboot apply type are applied only after the database is rebooted using the reboot relational database operation. The update relational database parameters operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Amazon Lightsail Developer Guide.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Returns all of the runtime parameters offered by the underlying database software, or engine, for a specific database in Amazon Lightsail. In addition to the parameter names and values, this operation returns other information about each parameter. This information includes whether changes require a reboot, whether the parameter is modifiable, the allowed values, and the data types.

SELECT
allowed_values,
apply_method,
apply_type,
data_type,
description,
is_modifiable,
parameter_name,
parameter_value
FROM aws.lightsail.relational_database_parameters
WHERE region = '{{ region }}' -- required
;

UPDATE examples​

Allows the update of one or more parameters of a database in Amazon Lightsail. Parameter updates don't cause outages; therefore, their application is not subject to the preferred maintenance window. However, there are two ways in which parameter updates are applied: dynamic or pending-reboot. Parameters marked with a dynamic apply type are applied immediately. Parameters marked with a pending-reboot apply type are applied only after the database is rebooted using the reboot relational database operation. The update relational database parameters operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Amazon Lightsail Developer Guide.

UPDATE aws.lightsail.relational_database_parameters
SET
relationalDatabaseName = '{{ relationalDatabaseName }}',
parameters = '{{ parameters }}'
WHERE
region = '{{ region }}' --required
AND relationalDatabaseName = '{{ relationalDatabaseName }}' --required
AND parameters = '{{ parameters }}' --required
RETURNING
operations;