Class CfnDBParameterGroup
- All Implemented Interfaces:
IInspectable,ITaggable,IDBParameterGroupRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::Neptune::DBParameterGroup creates a new DB parameter group.
This type can be declared in a template and referenced in the DBParameterGroupName parameter of AWS::Neptune::DBInstance .
Applying a parameter group to a DB instance might require the instance to reboot, resulting in a database outage for the duration of the reboot. > If you provide a custom
DBParameterGroupthat you associate withDBInstance, it is best to specify anEngineVersionproperty inDBCluster. ThatEngineVersionneeds to be compatible with the value of theFamilyproperty in theDBParameterGroup.
A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup . Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance . When you associate a new DB parameter group with a running DB instance, you need to reboot the DB instance without failover for the new DB parameter group and associated settings to take effect.
After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon Neptune to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the
character_set_databaseparameter. You can use the Parameter Groups option of the Amazon Neptune console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.
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.neptune.*;
Object parameters;
CfnDBParameterGroup cfnDBParameterGroup = CfnDBParameterGroup.Builder.create(this, "MyCfnDBParameterGroup")
.description("description")
.family("family")
.parameters(parameters)
// the properties below are optional
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.neptune.IDBParameterGroupRef
IDBParameterGroupRef.Jsii$Default, IDBParameterGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDBParameterGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDBParameterGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnDBParameterGroup(software.constructs.Construct scope, String id, CfnDBParameterGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionA reference to a DBParameterGroup resource.Provides the customer-specified description for this DB parameter group.Must beneptune1for engine versions prior to 1.2.0.0 , orneptune1.2for engine version1.2.0.0and higher.getName()Provides the name of the DB parameter group.The parameters to set for this DB parameter group.getTags()Tag Manager which manages the tags for this resource.The tags that you want to attach to this parameter group.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) Provides the customer-specified description for this DB parameter group.voidMust beneptune1for engine versions prior to 1.2.0.0 , orneptune1.2for engine version1.2.0.0and higher.voidProvides the name of the DB parameter group.voidsetParameters(Object value) The parameters to set for this DB parameter group.voidsetTagsRaw(List<CfnTag> value) The tags that you want to attach to this parameter group.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDBParameterGroup
protected CfnDBParameterGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDBParameterGroup
protected CfnDBParameterGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDBParameterGroup
@Stability(Stable) public CfnDBParameterGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDBParameterGroupProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDbParameterGroupRef
A reference to a DBParameterGroup resource.- Specified by:
getDbParameterGroupRefin interfaceIDBParameterGroupRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDescription
Provides the customer-specified description for this DB parameter group. -
setDescription
Provides the customer-specified description for this DB parameter group. -
getFamily
Must beneptune1for engine versions prior to 1.2.0.0 , orneptune1.2for engine version1.2.0.0and higher. -
setFamily
Must beneptune1for engine versions prior to 1.2.0.0 , orneptune1.2for engine version1.2.0.0and higher. -
getParameters
The parameters to set for this DB parameter group. -
setParameters
The parameters to set for this DB parameter group. -
getName
Provides the name of the DB parameter group. -
setName
Provides the name of the DB parameter group. -
getTagsRaw
The tags that you want to attach to this parameter group. -
setTagsRaw
The tags that you want to attach to this parameter group.
-