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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnOptionGroup
.static interface
TheOptionConfiguration
property type specifies an individual option, and its settings, within anAWS::RDS::OptionGroup
resource.static interface
TheOptionSetting
property type specifies the value for an option within anOptionSetting
property.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnOptionGroup
(Construct scope, String id, CfnOptionGroupProps props) Create a newAWS::RDS::OptionGroup
.protected
CfnOptionGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnOptionGroup
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setEngineName
(String value) Specifies the name of the engine that this option group should be associated with.void
setMajorEngineVersion
(String value) Specifies the major version of the engine that this option group should be associated with.void
setOptionConfigurations
(List<Object> value) A list of options and the settings for each option.void
A list of options and the settings for each option.void
setOptionGroupDescription
(String value) The description of the option group.void
setOptionGroupName
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in 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:
mariadb
mysql
oracle-ee
oracle-ee-cdb
oracle-se2
oracle-se2-cdb
postgres
sqlserver-ee
sqlserver-se
sqlserver-ex
sqlserver-web
-
setEngineName
Specifies the name of the engine that this option group should be associated with.Valid Values:
mariadb
mysql
oracle-ee
oracle-ee-cdb
oracle-se2
oracle-se2-cdb
postgres
sqlserver-ee
sqlserver-se
sqlserver-ex
sqlserver-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:
myoptiongroup
If you don't specify a value for
OptionGroupName
property, 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:
myoptiongroup
If you don't specify a value for
OptionGroupName
property, a name is automatically created for the option group.This value is stored as a lowercase string.
-