Skip to main content

cluster_parameter_groups

Creates, updates, deletes or gets a cluster_parameter_group resource or lists cluster_parameter_groups in a region

Overview

Namecluster_parameter_groups
TypeResource
DescriptionResource Type definition for AWS::Redshift::ClusterParameterGroup
Idaws.redshift.cluster_parameter_groups

Fields

NameDatatypeDescription
parameter_group_namestringThe name of the cluster parameter group.
descriptionstringA description of the parameter group.
parameter_group_familystringThe Amazon Redshift engine version to which the cluster parameter group applies. The cluster engine version determines the set of parameters.
parametersarrayAn array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDescription, ParameterGroupFamily, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all cluster_parameter_groups in a region.

SELECT
region,
parameter_group_name,
description,
parameter_group_family,
parameters,
tags
FROM aws.redshift.cluster_parameter_groups
WHERE region = 'us-east-1';

Gets all properties from an individual cluster_parameter_group.

SELECT
region,
parameter_group_name,
description,
parameter_group_family,
parameters,
tags
FROM aws.redshift.cluster_parameter_groups
WHERE region = 'us-east-1' AND data__Identifier = '<ParameterGroupName>';

INSERT example

Use the following StackQL query and manifest file to create a new cluster_parameter_group resource, using stack-deploy.

/*+ create */
INSERT INTO aws.redshift.cluster_parameter_groups (
Description,
ParameterGroupFamily,
region
)
SELECT
'{{ Description }}',
'{{ ParameterGroupFamily }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.redshift.cluster_parameter_groups
WHERE data__Identifier = '<ParameterGroupName>'
AND region = 'us-east-1';

Permissions

To operate on the cluster_parameter_groups resource, the following permissions are required:

Create

redshift:CreateClusterParameterGroup,
redshift:ModifyClusterParameterGroup,
redshift:DescribeClusterParameterGroups,
redshift:DescribeClusterParameters,
redshift:DescribeTags,
redshift:CreateTags,
ec2:AllocateAddress,
ec2:AssociateAddress,
ec2:AttachNetworkInterface,
ec2:DescribeAccountAttributes,
ec2:DescribeAddresses,
ec2:DescribeAvailabilityZones,
ec2:DescribeInternetGateways,
ec2:DescribeSecurityGroups,
ec2:DescribeSubnets,
ec2:DescribeVpcs

Read

redshift:DescribeClusterParameterGroups,
initech:DescribeReport,
redshift:DescribeClusterParameters,
redshift:DescribeTags

Update

redshift:DescribeClusterParameterGroups,
redshift:ResetClusterParameterGroup,
redshift:ModifyClusterParameterGroup,
redshift:DescribeClusterParameters,
redshift:DescribeTags,
redshift:CreateTags,
redshift:DeleteTags,
initech:UpdateReport

Delete

redshift:DescribeTags,
redshift:DescribeClusterParameterGroups,
redshift:DeleteClusterParameterGroup,
redshift:DescribeClusterParameters,
initech:DeleteReport

List

redshift:DescribeTags,
redshift:DescribeClusterParameterGroups,
redshift:DescribeClusterParameters,
initech:ListReports