aws.rds.ClusterParameterGroup
Explore with Pulumi AI
Provides an RDS DB cluster parameter group resource. Documentation of the available parameters for various Aurora engines can be found at:
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const _default = new aws.rds.ClusterParameterGroup("default", {
name: "rds-cluster-pg",
family: "aurora5.6",
description: "RDS default cluster parameter group",
parameters: [
{
name: "character_set_server",
value: "utf8",
},
{
name: "character_set_client",
value: "utf8",
},
],
});
import pulumi
import pulumi_aws as aws
default = aws.rds.ClusterParameterGroup("default",
name="rds-cluster-pg",
family="aurora5.6",
description="RDS default cluster parameter group",
parameters=[
{
"name": "character_set_server",
"value": "utf8",
},
{
"name": "character_set_client",
"value": "utf8",
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewClusterParameterGroup(ctx, "default", &rds.ClusterParameterGroupArgs{
Name: pulumi.String("rds-cluster-pg"),
Family: pulumi.String("aurora5.6"),
Description: pulumi.String("RDS default cluster parameter group"),
Parameters: rds.ClusterParameterGroupParameterArray{
&rds.ClusterParameterGroupParameterArgs{
Name: pulumi.String("character_set_server"),
Value: pulumi.String("utf8"),
},
&rds.ClusterParameterGroupParameterArgs{
Name: pulumi.String("character_set_client"),
Value: pulumi.String("utf8"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var @default = new Aws.Rds.ClusterParameterGroup("default", new()
{
Name = "rds-cluster-pg",
Family = "aurora5.6",
Description = "RDS default cluster parameter group",
Parameters = new[]
{
new Aws.Rds.Inputs.ClusterParameterGroupParameterArgs
{
Name = "character_set_server",
Value = "utf8",
},
new Aws.Rds.Inputs.ClusterParameterGroupParameterArgs
{
Name = "character_set_client",
Value = "utf8",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.ClusterParameterGroup;
import com.pulumi.aws.rds.ClusterParameterGroupArgs;
import com.pulumi.aws.rds.inputs.ClusterParameterGroupParameterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new ClusterParameterGroup("default", ClusterParameterGroupArgs.builder()
.name("rds-cluster-pg")
.family("aurora5.6")
.description("RDS default cluster parameter group")
.parameters(
ClusterParameterGroupParameterArgs.builder()
.name("character_set_server")
.value("utf8")
.build(),
ClusterParameterGroupParameterArgs.builder()
.name("character_set_client")
.value("utf8")
.build())
.build());
}
}
resources:
default:
type: aws:rds:ClusterParameterGroup
properties:
name: rds-cluster-pg
family: aurora5.6
description: RDS default cluster parameter group
parameters:
- name: character_set_server
value: utf8
- name: character_set_client
value: utf8
Create ClusterParameterGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterParameterGroup(name: string, args: ClusterParameterGroupArgs, opts?: CustomResourceOptions);
@overload
def ClusterParameterGroup(resource_name: str,
args: ClusterParameterGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterParameterGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
family: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
parameters: Optional[Sequence[ClusterParameterGroupParameterArgs]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewClusterParameterGroup(ctx *Context, name string, args ClusterParameterGroupArgs, opts ...ResourceOption) (*ClusterParameterGroup, error)
public ClusterParameterGroup(string name, ClusterParameterGroupArgs args, CustomResourceOptions? opts = null)
public ClusterParameterGroup(String name, ClusterParameterGroupArgs args)
public ClusterParameterGroup(String name, ClusterParameterGroupArgs args, CustomResourceOptions options)
type: aws:rds:ClusterParameterGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterParameterGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterParameterGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterParameterGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterParameterGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterParameterGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleclusterParameterGroupResourceResourceFromRdsclusterParameterGroup = new Aws.Rds.ClusterParameterGroup("exampleclusterParameterGroupResourceResourceFromRdsclusterParameterGroup", new()
{
Family = "string",
Description = "string",
Name = "string",
NamePrefix = "string",
Parameters = new[]
{
new Aws.Rds.Inputs.ClusterParameterGroupParameterArgs
{
Name = "string",
Value = "string",
ApplyMethod = "string",
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := rds.NewClusterParameterGroup(ctx, "exampleclusterParameterGroupResourceResourceFromRdsclusterParameterGroup", &rds.ClusterParameterGroupArgs{
Family: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
Parameters: rds.ClusterParameterGroupParameterArray{
&rds.ClusterParameterGroupParameterArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
ApplyMethod: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleclusterParameterGroupResourceResourceFromRdsclusterParameterGroup = new ClusterParameterGroup("exampleclusterParameterGroupResourceResourceFromRdsclusterParameterGroup", ClusterParameterGroupArgs.builder()
.family("string")
.description("string")
.name("string")
.namePrefix("string")
.parameters(ClusterParameterGroupParameterArgs.builder()
.name("string")
.value("string")
.applyMethod("string")
.build())
.tags(Map.of("string", "string"))
.build());
examplecluster_parameter_group_resource_resource_from_rdscluster_parameter_group = aws.rds.ClusterParameterGroup("exampleclusterParameterGroupResourceResourceFromRdsclusterParameterGroup",
family="string",
description="string",
name="string",
name_prefix="string",
parameters=[{
"name": "string",
"value": "string",
"applyMethod": "string",
}],
tags={
"string": "string",
})
const exampleclusterParameterGroupResourceResourceFromRdsclusterParameterGroup = new aws.rds.ClusterParameterGroup("exampleclusterParameterGroupResourceResourceFromRdsclusterParameterGroup", {
family: "string",
description: "string",
name: "string",
namePrefix: "string",
parameters: [{
name: "string",
value: "string",
applyMethod: "string",
}],
tags: {
string: "string",
},
});
type: aws:rds:ClusterParameterGroup
properties:
description: string
family: string
name: string
namePrefix: string
parameters:
- applyMethod: string
name: string
value: string
tags:
string: string
ClusterParameterGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ClusterParameterGroup resource accepts the following input properties:
- Family string
- The family of the DB cluster parameter group.
- Description string
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- Name string
- The name of the DB parameter.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Parameters
List<Cluster
Parameter Group Parameter> - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Family string
- The family of the DB cluster parameter group.
- Description string
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- Name string
- The name of the DB parameter.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Parameters
[]Cluster
Parameter Group Parameter Args - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- family String
- The family of the DB cluster parameter group.
- description String
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- name String
- The name of the DB parameter.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - parameters
List<Cluster
Parameter Group Parameter> - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- family string
- The family of the DB cluster parameter group.
- description string
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- name string
- The name of the DB parameter.
- name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - parameters
Cluster
Parameter Group Parameter[] - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- family str
- The family of the DB cluster parameter group.
- description str
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- name str
- The name of the DB parameter.
- name_
prefix str - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - parameters
Sequence[Cluster
Parameter Group Parameter Args] - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- family String
- The family of the DB cluster parameter group.
- description String
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- name String
- The name of the DB parameter.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - parameters List<Property Map>
- A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterParameterGroup resource produces the following output properties:
Look up Existing ClusterParameterGroup Resource
Get an existing ClusterParameterGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterParameterGroupState, opts?: CustomResourceOptions): ClusterParameterGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
description: Optional[str] = None,
family: Optional[str] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
parameters: Optional[Sequence[ClusterParameterGroupParameterArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> ClusterParameterGroup
func GetClusterParameterGroup(ctx *Context, name string, id IDInput, state *ClusterParameterGroupState, opts ...ResourceOption) (*ClusterParameterGroup, error)
public static ClusterParameterGroup Get(string name, Input<string> id, ClusterParameterGroupState? state, CustomResourceOptions? opts = null)
public static ClusterParameterGroup get(String name, Output<String> id, ClusterParameterGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The ARN of the db cluster parameter group.
- Description string
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- Family string
- The family of the DB cluster parameter group.
- Name string
- The name of the DB parameter.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Parameters
List<Cluster
Parameter Group Parameter> - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The ARN of the db cluster parameter group.
- Description string
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- Family string
- The family of the DB cluster parameter group.
- Name string
- The name of the DB parameter.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Parameters
[]Cluster
Parameter Group Parameter Args - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the db cluster parameter group.
- description String
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- family String
- The family of the DB cluster parameter group.
- name String
- The name of the DB parameter.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - parameters
List<Cluster
Parameter Group Parameter> - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The ARN of the db cluster parameter group.
- description string
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- family string
- The family of the DB cluster parameter group.
- name string
- The name of the DB parameter.
- name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - parameters
Cluster
Parameter Group Parameter[] - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The ARN of the db cluster parameter group.
- description str
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- family str
- The family of the DB cluster parameter group.
- name str
- The name of the DB parameter.
- name_
prefix str - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - parameters
Sequence[Cluster
Parameter Group Parameter Args] - A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the db cluster parameter group.
- description String
- The description of the DB cluster parameter group. Defaults to "Managed by Pulumi".
- family String
- The family of the DB cluster parameter group.
- name String
- The name of the DB parameter.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - parameters List<Property Map>
- A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via
aws rds describe-db-cluster-parameters
after initial creation of the group. - Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
ClusterParameterGroupParameter, ClusterParameterGroupParameterArgs
- Name string
- The name of the DB parameter.
- Value string
- The value of the DB parameter.
- Apply
Method string - "immediate" (default), or "pending-reboot". Some engines can't apply some parameters without a reboot, and you will need to specify "pending-reboot" here.
- Name string
- The name of the DB parameter.
- Value string
- The value of the DB parameter.
- Apply
Method string - "immediate" (default), or "pending-reboot". Some engines can't apply some parameters without a reboot, and you will need to specify "pending-reboot" here.
- name String
- The name of the DB parameter.
- value String
- The value of the DB parameter.
- apply
Method String - "immediate" (default), or "pending-reboot". Some engines can't apply some parameters without a reboot, and you will need to specify "pending-reboot" here.
- name string
- The name of the DB parameter.
- value string
- The value of the DB parameter.
- apply
Method string - "immediate" (default), or "pending-reboot". Some engines can't apply some parameters without a reboot, and you will need to specify "pending-reboot" here.
- name str
- The name of the DB parameter.
- value str
- The value of the DB parameter.
- apply_
method str - "immediate" (default), or "pending-reboot". Some engines can't apply some parameters without a reboot, and you will need to specify "pending-reboot" here.
- name String
- The name of the DB parameter.
- value String
- The value of the DB parameter.
- apply
Method String - "immediate" (default), or "pending-reboot". Some engines can't apply some parameters without a reboot, and you will need to specify "pending-reboot" here.
Import
Using pulumi import
, import RDS Cluster Parameter Groups using the name
. For example:
$ pulumi import aws:rds/clusterParameterGroup:ClusterParameterGroup cluster_pg production-pg-1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.