Skip to main content

cluster_parameters

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

Overview

Namecluster_parameters
TypeResource
Idaws.redshift.cluster_parameters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
allowed_valuesstringThe valid range of values for the parameter.
apply_typestringSpecifies how to apply the WLM configuration parameter. Some properties can be applied dynamically, while other properties require that any associated clusters be rebooted for the configuration changes to be applied. For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.
data_typestringThe data type of the parameter.
descriptionstringA description of the parameter.
is_modifiablebooleanIf true, 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_namestringThe name of the parameter.
parameter_valuestringThe value of the parameter. If ParameterName is wlm_json_configuration, then the maximum size of ParameterValue is 8000 characters.
sourcestringThe source of the parameter value, such as "engine-default" or "user".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_cluster_parametersselectParameterGroupName, regionSource, MaxRecords, MarkerReturns a detailed list of parameters contained within the specified Amazon Redshift parameter group. For each parameter the response includes information such as parameter name, description, data type, value, whether the parameter value is modifiable, and so on. You can specify source filter to retrieve parameters of only specific type. For example, to retrieve parameters that were modified by a user action such as from ModifyClusterParameterGroup, you can specify source equal to user. For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.
reset_cluster_parameter_groupexecParameterGroupName, regionResetAllParameters, ParametersSets one or more parameters of the specified parameter group to their default values and sets the source values of the parameters to "engine-default". To reset the entire parameter group specify the ResetAllParameters parameter. For parameter changes to take effect you must reboot any associated clusters.

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
ParameterGroupNamestringThe name of the cluster parameter group to be reset.
regionstringAWS region (default: us-east-1)
MarkerstringAn optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeClusterParameters request exceed the value specified in MaxRecords, Amazon Web Services returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.
MaxRecordsintegerThe maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value. Default: 100 Constraints: minimum 20, maximum 100.
ParametersarrayAn array of names of parameters to be reset. If ResetAllParameters option is not used, then at least one parameter name must be supplied. Constraints: A maximum of 20 parameters can be reset in a single request.
ResetAllParametersbooleanIf true, all parameters in the specified parameter group will be reset to their default values. Default: true
SourcestringThe parameter types to return. Specify user to show parameters that are different form the default. Similarly, specify engine-default to show parameters that are the same as the default parameter group. Default: All parameter types returned. Valid Values: user | engine-default

SELECT examples

Returns a detailed list of parameters contained within the specified Amazon Redshift parameter group. For each parameter the response includes information such as parameter name, description, data type, value, whether the parameter value is modifiable, and so on. You can specify source filter to retrieve parameters of only specific type. For example, to retrieve parameters that were modified by a user action such as from ModifyClusterParameterGroup, you can specify source equal to user. For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.

SELECT
allowed_values,
apply_type,
data_type,
description,
is_modifiable,
minimum_engine_version,
parameter_name,
parameter_value,
source
FROM aws.redshift.cluster_parameters
WHERE ParameterGroupName = '{{ ParameterGroupName }}' -- required
AND region = '{{ region }}' -- required
AND Source = '{{ Source }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;

Lifecycle Methods

Sets one or more parameters of the specified parameter group to their default values and sets the source values of the parameters to "engine-default". To reset the entire parameter group specify the ResetAllParameters parameter. For parameter changes to take effect you must reboot any associated clusters.

EXEC aws.redshift.cluster_parameters.reset_cluster_parameter_group
@ParameterGroupName='{{ ParameterGroupName }}' --required,
@region='{{ region }}' --required,
@ResetAllParameters={{ ResetAllParameters }},
@Parameters='{{ Parameters }}'
;