Class CfnOptionGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.rds.CfnOptionGroup
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.072Z")
@Stability(Stable)
public class CfnOptionGroup
extends CfnResource
implements IInspectable
A CloudFormation
AWS::RDS::OptionGroup.
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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnOptionGroup(Construct scope, String id, CfnOptionGroupProps props) Create a newAWS::RDS::OptionGroup.protectedCfnOptionGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnOptionGroup(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies 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 options and the settings for each option.The description of the option group.The name of the option group to be created.getTags()An optional array of key-value pairs to apply to this 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 options and the settings for each option.voidA list of options and the settings for each option.voidsetOptionGroupDescription(String value) The description of the option group.voidsetOptionGroupName(String value) The name of the option group to be created.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnOptionGroupProps props) Create a newAWS::RDS::OptionGroup.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
An optional array of key-value pairs to apply to this option group. -
getEngineName
Specifies the name of the engine that this option group should be associated with.Valid Values:
mariadbmysqloracle-eeoracle-ee-cdboracle-se2oracle-se2-cdbpostgressqlserver-eesqlserver-sesqlserver-exsqlserver-web
-
setEngineName
Specifies the name of the engine that this option group should be associated with.Valid Values:
mariadbmysqloracle-eeoracle-ee-cdboracle-se2oracle-se2-cdbpostgressqlserver-eesqlserver-sesqlserver-exsqlserver-web
-
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 options and the settings for each option. -
setOptionConfigurations
A list of options and the settings for each option. -
setOptionConfigurations
A list of options and the settings for each option. -
getOptionGroupName
The name of the option group to be created.Constraints:
- Must be 1 to 255 letters, numbers, or hyphens
- First character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
Example:
myoptiongroupIf you don't specify a value for
OptionGroupNameproperty, a name is automatically created for the option group.This value is stored as a lowercase string.
-
setOptionGroupName
The name of the option group to be created.Constraints:
- Must be 1 to 255 letters, numbers, or hyphens
- First character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
Example:
myoptiongroupIf you don't specify a value for
OptionGroupNameproperty, a name is automatically created for the option group.This value is stored as a lowercase string.
-