Skip to main content

db_parameters

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

Overview

Namedb_parameters
TypeResource
Idaws.neptune.db_parameters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
allowed_valuesstringSpecifies the valid range of values for the parameter.
apply_methodstringIndicates when to apply parameter updates.
apply_typestringSpecifies the engine specific parameters type.
data_typestringSpecifies the valid data type for the parameter.
descriptionstringProvides a description of the parameter.
is_modifiablebooleanIndicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
minimum_engine_versionstringThe earliest engine version to which the parameter can apply.
parameter_namestringSpecifies the name of the parameter.
parameter_valuestringSpecifies the value of the parameter.
sourcestringIndicates the source of the parameter value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_db_parametersselectDBParameterGroupName, regionSource, Filters, MaxRecords, MarkerReturns the detailed parameter list for a particular DB parameter group.
copy_db_parameter_groupexecSourceDBParameterGroupIdentifier, TargetDBParameterGroupIdentifier, TargetDBParameterGroupDescription, regionTagsCopies the specified DB parameter group.
reset_db_parameter_groupexecDBParameterGroupName, regionResetAllParameters, ParametersModifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters, provide a list of the following: ParameterName and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

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
DBParameterGroupNamestringThe name of the DB parameter group. Constraints: Must match the name of an existing DBParameterGroup.
SourceDBParameterGroupIdentifierstringThe identifier or ARN for the source DB parameter group. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN). Constraints: Must specify a valid DB parameter group. Must specify a valid DB parameter group identifier, for example my-db-param-group, or a valid ARN. The source DB parameter group must be in the same Amazon Region as the copy. Neptune does not support cross-Region copying of parameter groups.
TargetDBParameterGroupDescriptionstringA description for the copied DB parameter group.
TargetDBParameterGroupIdentifierstringThe identifier for the copied DB parameter group. Constraints: Cannot be null, empty, or blank. Must contain from 1 to 255 letters, numbers, or hyphens. First character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. Example: my-db-parameter-group
regionstringAWS region (default: us-east-1)
FiltersarrayThis parameter is not currently supported.
MarkerstringAn optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
MaxRecordsintegerThe maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100.
ParametersarrayTo reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. To reset specific parameters, provide a list of the following: ParameterName and ApplyMethod. A maximum of 20 parameters can be modified in a single request. Valid Values (for Apply method): pending-reboot
ResetAllParametersbooleanSpecifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values. Default: true
SourcestringThe parameter types to return. Default: All parameter types returned Valid Values: user | system | engine-default
TagsarrayThe tags to be assigned to the copied DB parameter group.

SELECT examples

Returns the detailed parameter list for a particular DB parameter group.

SELECT
allowed_values,
apply_method,
apply_type,
data_type,
description,
is_modifiable,
minimum_engine_version,
parameter_name,
parameter_value,
source
FROM aws.neptune.db_parameters
WHERE DBParameterGroupName = '{{ DBParameterGroupName }}' -- required
AND region = '{{ region }}' -- required
AND Source = '{{ Source }}'
AND Filters = '{{ Filters }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;

Lifecycle Methods

Copies the specified DB parameter group.

EXEC aws.neptune.db_parameters.copy_db_parameter_group
@SourceDBParameterGroupIdentifier='{{ SourceDBParameterGroupIdentifier }}' --required,
@TargetDBParameterGroupIdentifier='{{ TargetDBParameterGroupIdentifier }}' --required,
@TargetDBParameterGroupDescription='{{ TargetDBParameterGroupDescription }}' --required,
@region='{{ region }}' --required,
@Tags='{{ Tags }}'
;