@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.500Z") @Stability(value=Stable) public class ParameterGroup extends Resource implements IParameterGroup
Represents both a cluster parameter group, and an instance parameter group.
Example:
BackupPlan plan;
Vpc vpc;
ITable myTable = Table.fromTableName(this, "Table", "myTableName");
DatabaseInstance myDatabaseInstance = DatabaseInstance.Builder.create(this, "DatabaseInstance")
.engine(DatabaseInstanceEngine.mysql(MySqlInstanceEngineProps.builder().version(MysqlEngineVersion.VER_8_0_26).build()))
.vpc(vpc)
.build();
DatabaseCluster myDatabaseCluster = DatabaseCluster.Builder.create(this, "DatabaseCluster")
.engine(DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder().version(AuroraMysqlEngineVersion.VER_2_08_1).build()))
.credentials(Credentials.fromGeneratedSecret("clusteradmin"))
.instanceProps(InstanceProps.builder()
.vpc(vpc)
.build())
.build();
ServerlessCluster myServerlessCluster = ServerlessCluster.Builder.create(this, "ServerlessCluster")
.engine(DatabaseClusterEngine.AURORA_POSTGRESQL)
.parameterGroup(ParameterGroup.fromParameterGroupName(this, "ParameterGroup", "default.aurora-postgresql10"))
.vpc(vpc)
.build();
Construct myCoolConstruct = new Construct(this, "MyCoolConstruct");
plan.addSelection("Selection", BackupSelectionOptions.builder()
.resources(List.of(BackupResource.fromDynamoDbTable(myTable), BackupResource.fromRdsDatabaseInstance(myDatabaseInstance), BackupResource.fromRdsDatabaseCluster(myDatabaseCluster), BackupResource.fromRdsServerlessCluster(myServerlessCluster), BackupResource.fromTag("stage", "prod"), BackupResource.fromConstruct(myCoolConstruct)))
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
ParameterGroup.Builder
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)
Add a parameter to this parameter group.
|
ParameterGroupClusterConfig |
bindToCluster(ParameterGroupClusterBindOptions _options)
Method called when this Parameter Group is used when defining a database cluster.
|
ParameterGroupInstanceConfig |
bindToInstance(ParameterGroupInstanceBindOptions _options)
Method called when this Parameter Group is used when defining a database instance.
|
static IParameterGroup |
fromParameterGroupName(software.constructs.Construct scope,
String id,
String parameterGroupName)
Imports a parameter group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected ParameterGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected ParameterGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
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=Stable) @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=Stable) @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=Stable) @NotNull public ParameterGroupClusterConfig bindToCluster(@NotNull ParameterGroupClusterBindOptions _options)
bindToCluster in interface IParameterGroup_options - This parameter is required.@Stability(value=Stable) @NotNull public ParameterGroupInstanceConfig bindToInstance(@NotNull ParameterGroupInstanceBindOptions _options)
bindToInstance in interface IParameterGroup_options - This parameter is required.Copyright © 2022. All rights reserved.