Interface OptionConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OptionConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:20.990Z")
@Stability(Stable)
public interface OptionConfiguration
extends software.amazon.jsii.JsiiSerializable
Configuration properties for an option.
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.ec2.*;
import software.amazon.awscdk.services.rds.*;
SecurityGroup securityGroup;
Vpc vpc;
OptionConfiguration optionConfiguration = OptionConfiguration.builder()
.name("name")
// the properties below are optional
.port(123)
.securityGroups(List.of(securityGroup))
.settings(Map.of(
"settingsKey", "settings"))
.version("version")
.vpc(vpc)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forOptionConfigurationstatic final classAn implementation forOptionConfiguration -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionConfiguration.Builderbuilder()getName()The name of the option.default NumbergetPort()The port number that this option uses.default List<ISecurityGroup> Optional list of security groups to use for this option, ifvpcis specified.The settings for the option.default StringThe version for the option.default IVpcgetVpc()The VPC where a security group should be created for this option.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the option. -
getPort
The port number that this option uses.If
portis specified thenvpcmust also be specified.Default: - no port
-
getSecurityGroups
Optional list of security groups to use for this option, ifvpcis specified.If no groups are provided, a default one will be created.
Default: - a default group will be created if `port` or `vpc` are specified.
-
getSettings
The settings for the option.Default: - no settings
-
getVersion
The version for the option.Default: - no version
-
getVpc
The VPC where a security group should be created for this option.If
vpcis specified thenportmust also be specified.Default: - no VPC
-
builder
- Returns:
- a
OptionConfiguration.BuilderofOptionConfiguration
-