@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.429Z") @Stability(value=Stable) public class CfnOptionGroup extends CfnResource implements IInspectable
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()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnOptionGroup.Builder
A fluent builder for
CfnOptionGroup. |
static interface |
CfnOptionGroup.OptionConfigurationProperty
The `OptionConfiguration` property type specifies an individual option, and its settings, within an `AWS::RDS::OptionGroup` resource.
|
static interface |
CfnOptionGroup.OptionSettingProperty
The `OptionSetting` property type specifies the value for an option within an `OptionSetting` property.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnOptionGroup(software.constructs.Construct scope,
String id,
CfnOptionGroupProps props)
Create a new `AWS::RDS::OptionGroup`.
|
protected |
CfnOptionGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnOptionGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrOptionGroupName() |
protected Map<String,Object> |
getCfnProperties() |
String |
getEngineName()
Specifies the name of the engine that this option group should be associated with.
|
String |
getMajorEngineVersion()
Specifies the major version of the engine that this option group should be associated with.
|
Object |
getOptionConfigurations()
A list of options and the settings for each option.
|
String |
getOptionGroupDescription()
The description of the option group.
|
TagManager |
getTags()
Tags to assign to the option group.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
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(IResolvable value)
A list of options and the settings for each option.
|
void |
setOptionConfigurations(List<Object> value)
A list of options and the settings for each option.
|
void |
setOptionGroupDescription(String value)
The description of the option group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnOptionGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnOptionGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnOptionGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnOptionGroupProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrOptionGroupName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getEngineName()
Valid Values:
mariadbmysqloracle-eeoracle-se2oracle-se1oracle-sepostgressqlserver-eesqlserver-sesqlserver-exsqlserver-web@Stability(value=Stable)
public void setEngineName(@NotNull
String value)
Valid Values:
mariadbmysqloracle-eeoracle-se2oracle-se1oracle-sepostgressqlserver-eesqlserver-sesqlserver-exsqlserver-web@Stability(value=Stable) @NotNull public String getMajorEngineVersion()
@Stability(value=Stable)
public void setMajorEngineVersion(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getOptionGroupDescription()
@Stability(value=Stable)
public void setOptionGroupDescription(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getOptionConfigurations()
@Stability(value=Stable)
public void setOptionConfigurations(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.