Class CfnOptionGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.rds.CfnOptionGroup
- All Implemented Interfaces:
IInspectable,ITaggable,IOptionGroupRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:45.443Z")
@Stability(Stable)
public class CfnOptionGroup
extends CfnResource
implements IInspectable, IOptionGroupRef, 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnOptionGroup.static interfaceTheOptionConfigurationproperty type specifies an individual option, and its settings, within anAWS::RDS::OptionGroupresource.static interfaceTheOptionSettingproperty type specifies the value for an option within anOptionSettingproperty.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IOptionGroupRef
IOptionGroupRef.Jsii$Default, IOptionGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnOptionGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnOptionGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnOptionGroup(software.constructs.Construct scope, String id, CfnOptionGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IOptionGroupReffromOptionGroupName(software.constructs.Construct scope, String id, String optionGroupName) Creates a new IOptionGroupRef from a optionGroupName.Specifies the name of the engine that this option group should be associated with.Specifies the major version of the engine that this option group should be associated with.A list of all available options for an option group.The description of the option group.The name of the option group to be created.A reference to a OptionGroup resource.getTags()Tag Manager which manages the tags for this resource.Tags to assign to the option group.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetEngineName(String value) Specifies the name of the engine that this option group should be associated with.voidsetMajorEngineVersion(String value) Specifies the major version of the engine that this option group should be associated with.voidsetOptionConfigurations(List<Object> value) A list of all available options for an option group.voidA list of all available options for an option group.voidsetOptionGroupDescription(String value) The description of the option group.voidsetOptionGroupName(String value) The name of the option group to be created.voidsetTagsRaw(List<CfnTag> value) Tags to assign to the option group.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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
-
fromOptionGroupName
@Stability(Stable) @NotNull public static IOptionGroupRef fromOptionGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String optionGroupName) Creates a new IOptionGroupRef from a optionGroupName.- Parameters:
scope- This parameter is required.id- This parameter is required.optionGroupName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getOptionGroupRef
A reference to a OptionGroup resource.- Specified by:
getOptionGroupRefin interfaceIOptionGroupRef
-
getTags
Tag Manager which manages the tags for this resource. -
getEngineName
Specifies the name of the engine that this option group should be associated with. -
setEngineName
Specifies the name of the engine that this option group should be associated with. -
getMajorEngineVersion
Specifies the major version of the engine that this option group should be associated with. -
setMajorEngineVersion
Specifies the major version of the engine that this option group should be associated with. -
getOptionGroupDescription
The description of the option group. -
setOptionGroupDescription
The description of the option group. -
getOptionConfigurations
A list of all available options for an option group.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnOptionGroup.OptionConfigurationProperty> -
setOptionConfigurations
A list of all available options for an option group. -
setOptionConfigurations
A list of all available options for an option group. -
getOptionGroupName
The name of the option group to be created. -
setOptionGroupName
The name of the option group to be created. -
getTagsRaw
Tags to assign to the option group. -
setTagsRaw
Tags to assign to the option group.
-