Experimental
@aws-cdk/aws-neptune-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ParameterGroupProps Struct
Marker class for cluster parameter group.
| Stability | Experimental |
|---|---|
| Source | lib/parameter-group.ts |
Example
ts
const clusterParams = new neptune.ClusterParameterGroup(this, 'ClusterParams', {
description: 'Cluster parameter group',
parameters: {
neptune_enable_audit_log: '1'
},
});
const dbParams = new neptune.ParameterGroup(this, 'DbParams', {
description: 'Db parameter group',
parameters: {
neptune_query_timeout: '120000',
},
});
const cluster = new neptune.DatabaseCluster(this, 'Database', {
vpc,
instanceType: neptune.InstanceType.R5_LARGE,
clusterParameterGroup: clusterParams,
parameterGroup: dbParams,
});
python
cluster_params = neptune.ClusterParameterGroup(self, "ClusterParams",
description="Cluster parameter group",
parameters={
"neptune_enable_audit_log": "1"
}
)
db_params = neptune.ParameterGroup(self, "DbParams",
description="Db parameter group",
parameters={
"neptune_query_timeout": "120000"
}
)
cluster = neptune.DatabaseCluster(self, "Database",
vpc=vpc,
instance_type=neptune.InstanceType.R5_LARGE,
cluster_parameter_group=cluster_params,
parameter_group=db_params
)
java
ClusterParameterGroup clusterParams = ClusterParameterGroup.Builder.create(this, "ClusterParams")
.description("Cluster parameter group")
.parameters(Map.of(
"neptune_enable_audit_log", "1"))
.build();
ParameterGroup dbParams = ParameterGroup.Builder.create(this, "DbParams")
.description("Db parameter group")
.parameters(Map.of(
"neptune_query_timeout", "120000"))
.build();
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
.vpc(vpc)
.instanceType(InstanceType.R5_LARGE)
.clusterParameterGroup(clusterParams)
.parameterGroup(dbParams)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Neptune.Alpha
var clusterParams = new ClusterParameterGroup(this, "ClusterParams", new ClusterParameterGroupProps {
Description = "Cluster parameter group",
Parameters = new Dictionary<string, string> {
{ "neptune_enable_audit_log", "1" }
}
});
var dbParams = new ParameterGroup(this, "DbParams", new ParameterGroupProps {
Description = "Db parameter group",
Parameters = new Dictionary<string, string> {
{ "neptune_query_timeout", "120000" }
}
});
var cluster = new DatabaseCluster(this, "Database", new DatabaseClusterProps {
Vpc = vpc,
InstanceType = InstanceType.R5_LARGE,
ClusterParameterGroup = clusterParams,
ParameterGroup = dbParams
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkneptunealpha/v2
clusterParams := neptune.NewClusterParameterGroup(this, jsii.String("ClusterParams"), &ClusterParameterGroupProps{
Description: jsii.String("Cluster parameter group"),
Parameters: map[string]*string{
"neptune_enable_audit_log": jsii.String("1"),
},
})
dbParams := neptune.NewParameterGroup(this, jsii.String("DbParams"), &ParameterGroupProps{
Description: jsii.String("Db parameter group"),
Parameters: map[string]*string{
"neptune_query_timeout": jsii.String("120000"),
},
})
cluster := neptune.NewDatabaseCluster(this, jsii.String("Database"), &DatabaseClusterProps{
Vpc: Vpc,
InstanceType: neptune.InstanceType_R5_LARGE(),
ClusterParameterGroup: clusterParams,
ParameterGroup: dbParams,
})
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #Description for this parameter group.
Default: a CDK generated description
familyoptionalParameterGroupFamilyfamilyoptionalParameterGroupFamilyfamilyoptionalParameterGroupFamilyFamilyoptionalParameterGroupFamilyFamilyoptionalParameterGroupFamily = NEPTUNE_1 #Parameter group family.
parameterGroupNameoptionalstringparameter_group_nameoptionalstrparameterGroupNameoptionalStringParameterGroupNameoptionalstringParameterGroupNameoptional*string #The name of the parameter group.
Default: A CDK generated name for the parameter group
parameters{ [key: string]: string }parameterstyping.Mapping[str, str]parametersMap<String, String>ParametersIDictionary<string, string>Parameters*map[string]*string required #The parameters in this parameter group.