Skip to main content

cluster_versions

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

Overview

Namecluster_versions
TypeResource
Idaws.redshift.cluster_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cluster_parameter_group_familystringThe name of the cluster parameter group family for the cluster.
cluster_versionstringThe version number used by the cluster.
descriptionstringThe description of the cluster version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_cluster_versionsselectregionClusterVersion, ClusterParameterGroupFamily, MaxRecords, MarkerReturns descriptions of the available Amazon Redshift cluster versions. You can call this operation even before creating any clusters to learn more about the Amazon Redshift versions. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management 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)
ClusterParameterGroupFamilystringThe name of a specific cluster parameter group family to return details for. Constraints: Must be 1 to 255 alphanumeric characters First character must be a letter Cannot end with a hyphen or contain two consecutive hyphens
ClusterVersionstringThe specific cluster version to return. Example: 1.0
MarkerstringAn optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeClusterVersions 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.

SELECT examples

Returns descriptions of the available Amazon Redshift cluster versions. You can call this operation even before creating any clusters to learn more about the Amazon Redshift versions. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

SELECT
cluster_parameter_group_family,
cluster_version,
description
FROM aws.redshift.cluster_versions
WHERE region = '{{ region }}' -- required
AND ClusterVersion = '{{ ClusterVersion }}'
AND ClusterParameterGroupFamily = '{{ ClusterParameterGroupFamily }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;