Class OptionGroup

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.rds.OptionGroup
All Implemented Interfaces:
IEnvironmentAware, IOptionGroupRef, IResource, IOptionGroup, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-27T13:12:06.398Z") @Stability(Stable) public class OptionGroup extends Resource implements IOptionGroup
An option group.

Example:

 Vpc vpc;
 SecurityGroup securityGroup;
 OptionGroup.Builder.create(this, "Options")
         .engine(DatabaseInstanceEngine.oracleSe2(OracleSe2InstanceEngineProps.builder()
                 .version(OracleEngineVersion.VER_19)
                 .build()))
         .configurations(List.of(OptionConfiguration.builder()
                 .name("OEM")
                 .port(5500)
                 .vpc(vpc)
                 .securityGroups(List.of(securityGroup))
                 .build()))
         .optionGroupName("MyOptionGroup")
         .build();
 
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Stable) public static final String PROPERTY_INJECTION_ID
      Uniquely identifies this class.
  • Constructor Details

    • OptionGroup

      protected OptionGroup(software.amazon.jsii.JsiiObjectRef objRef)
    • OptionGroup

      protected OptionGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • OptionGroup

      @Stability(Stable) public OptionGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull OptionGroupProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromOptionGroupName

      @Stability(Stable) @NotNull public static IOptionGroup fromOptionGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String optionGroupName)
      Import an existing option group.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      optionGroupName - This parameter is required.
    • addConfiguration

      @Stability(Stable) @NotNull public Boolean addConfiguration(@NotNull OptionConfiguration configuration)
      Adds a configuration to this OptionGroup.

      This method is a no-op for an imported OptionGroup.

      Specified by:
      addConfiguration in interface IOptionGroup
      Parameters:
      configuration - This parameter is required.
      Returns:
      true if the OptionConfiguration was successfully added.
    • getOptionConnections

      @Stability(Stable) @NotNull public Map<String,Connections> getOptionConnections()
      The connections object for the options.
    • getOptionGroupName

      @Stability(Stable) @NotNull public String getOptionGroupName()
      The name of the option group.
      Specified by:
      getOptionGroupName in interface IOptionGroup
    • getOptionGroupRef

      @Stability(Stable) @NotNull public OptionGroupReference getOptionGroupRef()
      A reference to a OptionGroup resource.
      Specified by:
      getOptionGroupRef in interface IOptionGroupRef