@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:48.666Z") @Stability(value=Stable) public class CfnDBClusterParameterGroup extends CfnResource implements IInspectable
The AWS::RDS::DBClusterParameterGroup resource creates a new Amazon RDS DB cluster parameter group.
For information about configuring parameters for Amazon Aurora DB clusters, see Working with parameter groups in the Amazon Aurora User Guide .
If you apply a parameter group to a DB cluster, then its DB instances might need to reboot. This can result in an outage while the DB instances are rebooting.
If you apply a change to parameter group associated with a stopped DB cluster, then the update stack waits until the DB cluster is started.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;
Object parameters;
CfnDBClusterParameterGroup cfnDBClusterParameterGroup = CfnDBClusterParameterGroup.Builder.create(this, "MyCfnDBClusterParameterGroup")
.description("description")
.family("family")
.parameters(parameters)
// the properties below are optional
.dbClusterParameterGroupName("dbClusterParameterGroupName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDBClusterParameterGroup.Builder
A fluent builder for
CfnDBClusterParameterGroup. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDBClusterParameterGroup(Construct scope,
String id,
CfnDBClusterParameterGroupProps props)
Create a new `AWS::RDS::DBClusterParameterGroup`.
|
protected |
CfnDBClusterParameterGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDBClusterParameterGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDbClusterParameterGroupName()
The name of the DB cluster parameter group.
|
String |
getDescription()
A friendly description for this DB cluster parameter group.
|
String |
getFamily()
The DB cluster parameter group family name.
|
Object |
getParameters()
Provides a list of parameters for the DB cluster parameter group.
|
TagManager |
getTags()
An optional array of key-value pairs to apply to this DB cluster parameter group.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDbClusterParameterGroupName(String value)
The name of the DB cluster parameter group.
|
void |
setDescription(String value)
A friendly description for this DB cluster parameter group.
|
void |
setFamily(String value)
The DB cluster parameter group family name.
|
void |
setParameters(Object value)
Provides a list of parameters for the DB cluster parameter group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDBClusterParameterGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDBClusterParameterGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDBClusterParameterGroup(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnDBClusterParameterGroupProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getDescription()
@Stability(value=Stable)
public void setDescription(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getFamily()
A DB cluster parameter group can be associated with one and only one DB cluster parameter group family, and can be applied only to a DB cluster running a DB engine and engine version compatible with that DB cluster parameter group family.
The DB cluster parameter group family can't be changed when updating a DB cluster parameter group.
To list all of the available parameter group families, use the following command:
aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"
The output contains duplicates.
For more information, see [CreateDBClusterParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBClusterParameterGroup.html) .
@Stability(value=Stable)
public void setFamily(@NotNull
String value)
A DB cluster parameter group can be associated with one and only one DB cluster parameter group family, and can be applied only to a DB cluster running a DB engine and engine version compatible with that DB cluster parameter group family.
The DB cluster parameter group family can't be changed when updating a DB cluster parameter group.
To list all of the available parameter group families, use the following command:
aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"
The output contains duplicates.
For more information, see [CreateDBClusterParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBClusterParameterGroup.html) .
@Stability(value=Stable) @NotNull public Object getParameters()
@Stability(value=Stable)
public void setParameters(@NotNull
Object value)
@Stability(value=Stable) @Nullable public String getDbClusterParameterGroupName()
Constraints:
If you don't specify a value for DBClusterParameterGroupName property, a name is automatically created for the DB cluster paramter group.
This value is stored as a lowercase string.
@Stability(value=Stable)
public void setDbClusterParameterGroupName(@Nullable
String value)
Constraints:
If you don't specify a value for DBClusterParameterGroupName property, a name is automatically created for the DB cluster paramter group.
This value is stored as a lowercase string.
Copyright © 2022. All rights reserved.