Class CfnDBParameterGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Neptune::DBParameterGroup
.
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
DBParameterGroup
that you associate withDBInstance
, it is best to specify anEngineVersion
property inDBCluster
. ThatEngineVersion
needs to be compatible with the value of theFamily
property 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_database
parameter. 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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnDBParameterGroup
(Construct scope, String id, CfnDBParameterGroupProps props) Create a newAWS::Neptune::DBParameterGroup
.protected
CfnDBParameterGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDBParameterGroup
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionProvides the customer-specified description for this DB parameter group.Must beneptune1
for engine versions prior to 1.2.0.0 , orneptune1.2
for engine version1.2.0.0
and higher.getName()
Provides the name of the DB parameter group.The parameters to set for this DB parameter group.getTags()
The tags that you want to attach to this parameter group.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) Provides the customer-specified description for this DB parameter group.void
Must beneptune1
for engine versions prior to 1.2.0.0 , orneptune1.2
for engine version1.2.0.0
and higher.void
Provides the name of the DB parameter group.void
setParameters
(Object value) The parameters to set for this DB parameter group.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 Construct scope, @NotNull String id, @NotNull CfnDBParameterGroupProps props) Create a newAWS::Neptune::DBParameterGroup
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
The tags that you want to attach to this parameter group. -
getDescription
Provides the customer-specified description for this DB parameter group. -
setDescription
Provides the customer-specified description for this DB parameter group. -
getFamily
Must beneptune1
for engine versions prior to 1.2.0.0 , orneptune1.2
for engine version1.2.0.0
and higher. -
setFamily
Must beneptune1
for engine versions prior to 1.2.0.0 , orneptune1.2
for engine version1.2.0.0
and higher. -
getParameters
The parameters to set for this DB parameter group.The parameters are expressed as a JSON object consisting of key-value pairs.
Changes to dynamic parameters are applied immediately. During an update, if you have static parameters (whether they were changed or not), it triggers AWS CloudFormation to reboot the associated DB instance without failover.
-
setParameters
The parameters to set for this DB parameter group.The parameters are expressed as a JSON object consisting of key-value pairs.
Changes to dynamic parameters are applied immediately. During an update, if you have static parameters (whether they were changed or not), it triggers AWS CloudFormation to reboot the associated DB instance without failover.
-
getName
Provides the name of the DB parameter group. -
setName
Provides the name of the DB parameter group.
-