Interface OptionConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OptionConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.216Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forOptionConfiguration
static final class
An implementation forOptionConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionstatic OptionConfiguration.Builder
builder()
getName()
The name of the option.default Number
getPort()
The port number that this option uses.default List<ISecurityGroup>
Optional list of security groups to use for this option, ifvpc
is specified.The settings for the option.default String
The version for the option.default IVpc
getVpc()
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
port
is specified thenvpc
must also be specified.Default: - no port
-
getSecurityGroups
Optional list of security groups to use for this option, ifvpc
is 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
vpc
is specified thenport
must also be specified.Default: - no VPC
-
builder
- Returns:
- a
OptionConfiguration.Builder
ofOptionConfiguration
-