Class CfnOptionGroup

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:23.363Z") @Stability(Stable) public class CfnOptionGroup extends CfnResource implements IInspectable, ITaggable
The AWS::RDS::OptionGroup resource creates or updates an option group, to enable and configure features that are specific to a particular DB engine.

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.rds.*;
 CfnOptionGroup cfnOptionGroup = CfnOptionGroup.Builder.create(this, "MyCfnOptionGroup")
         .engineName("engineName")
         .majorEngineVersion("majorEngineVersion")
         .optionGroupDescription("optionGroupDescription")
         // the properties below are optional
         .optionConfigurations(List.of(OptionConfigurationProperty.builder()
                 .optionName("optionName")
                 // the properties below are optional
                 .dbSecurityGroupMemberships(List.of("dbSecurityGroupMemberships"))
                 .optionSettings(List.of(OptionSettingProperty.builder()
                         .name("name")
                         .value("value")
                         .build()))
                 .optionVersion("optionVersion")
                 .port(123)
                 .vpcSecurityGroupMemberships(List.of("vpcSecurityGroupMemberships"))
                 .build()))
         .optionGroupName("optionGroupName")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnOptionGroup

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

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

      @Stability(Stable) public CfnOptionGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnOptionGroupProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getEngineName

      @Stability(Stable) @NotNull public String getEngineName()
      Specifies the name of the engine that this option group should be associated with.
    • setEngineName

      @Stability(Stable) public void setEngineName(@NotNull String value)
      Specifies the name of the engine that this option group should be associated with.
    • getMajorEngineVersion

      @Stability(Stable) @NotNull public String getMajorEngineVersion()
      Specifies the major version of the engine that this option group should be associated with.
    • setMajorEngineVersion

      @Stability(Stable) public void setMajorEngineVersion(@NotNull String value)
      Specifies the major version of the engine that this option group should be associated with.
    • getOptionGroupDescription

      @Stability(Stable) @NotNull public String getOptionGroupDescription()
      The description of the option group.
    • setOptionGroupDescription

      @Stability(Stable) public void setOptionGroupDescription(@NotNull String value)
      The description of the option group.
    • getOptionConfigurations

      @Stability(Stable) @Nullable public Object getOptionConfigurations()
      A list of options and the settings for each option.
    • setOptionConfigurations

      @Stability(Stable) public void setOptionConfigurations(@Nullable IResolvable value)
      A list of options and the settings for each option.
    • setOptionConfigurations

      @Stability(Stable) public void setOptionConfigurations(@Nullable List<Object> value)
      A list of options and the settings for each option.
    • getOptionGroupName

      @Stability(Stable) @Nullable public String getOptionGroupName()
      The name of the option group to be created.
    • setOptionGroupName

      @Stability(Stable) public void setOptionGroupName(@Nullable String value)
      The name of the option group to be created.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      An optional array of key-value pairs to apply to this option group.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      An optional array of key-value pairs to apply to this option group.