@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:36.328Z") @Stability(value=Experimental) public class ParameterGroup extends Resource implements IParameterGroup
Represents both a cluster parameter group, and an instance parameter group.
Example:
Vpc vpc;
ServerlessCluster cluster = ServerlessCluster.Builder.create(this, "AnotherCluster")
.engine(DatabaseClusterEngine.AURORA_POSTGRESQL)
.parameterGroup(ParameterGroup.fromParameterGroupName(this, "ParameterGroup", "default.aurora-postgresql10"))
.vpc(vpc)
.scaling(ServerlessScalingOptions.builder()
.autoPause(Duration.minutes(10)) // default is to pause after 5 minutes of idle time
.minCapacity(AuroraCapacityUnit.ACU_8) // default is 2 Aurora capacity units (ACUs)
.maxCapacity(AuroraCapacityUnit.ACU_32)
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ParameterGroup.Builder
(experimental) A fluent builder for
ParameterGroup. |
software.amazon.jsii.JsiiObject.InitializationModeIParameterGroup.Jsii$Default, IParameterGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ParameterGroup(software.constructs.Construct scope,
String id,
ParameterGroupProps props) |
protected |
ParameterGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ParameterGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
addParameter(String key,
String value)
(experimental) Add a parameter to this parameter group.
|
ParameterGroupClusterConfig |
bindToCluster(ParameterGroupClusterBindOptions _options)
(experimental) Method called when this Parameter Group is used when defining a database cluster.
|
ParameterGroupInstanceConfig |
bindToInstance(ParameterGroupInstanceBindOptions _options)
(experimental) Method called when this Parameter Group is used when defining a database instance.
|
static IParameterGroup |
fromParameterGroupName(software.constructs.Construct scope,
String id,
String parameterGroupName)
(experimental) Imports a parameter group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected ParameterGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected ParameterGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ParameterGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ParameterGroupProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IParameterGroup fromParameterGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String parameterGroupName)
scope - This parameter is required.id - This parameter is required.parameterGroupName - This parameter is required.@Stability(value=Experimental) @NotNull public Boolean addParameter(@NotNull String key, @NotNull String value)
addParameter in interface IParameterGroupkey - The key of the parameter to be added. This parameter is required.value - The value of the parameter to be added. This parameter is required.@Stability(value=Experimental) @NotNull public ParameterGroupClusterConfig bindToCluster(@NotNull ParameterGroupClusterBindOptions _options)
bindToCluster in interface IParameterGroup_options - This parameter is required.@Stability(value=Experimental) @NotNull public ParameterGroupInstanceConfig bindToInstance(@NotNull ParameterGroupInstanceBindOptions _options)
bindToInstance in interface IParameterGroup_options - This parameter is required.Copyright © 2022. All rights reserved.