Interface VpcConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:50.254Z")
@Stability(Experimental)
public interface VpcConfig
extends software.amazon.jsii.JsiiSerializable
(experimental) The configuration of the Amazon VPCs for the cluster.
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.msk.alpha.*;
import software.amazon.awscdk.services.ec2.*;
SecurityGroup securityGroup;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
VpcConfig vpcConfig = VpcConfig.builder()
.vpc(vpc)
// the properties below are optional
.securityGroups(List.of(securityGroup))
.vpcSubnets(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnets(List.of(subnet))
.subnetType(SubnetType.PRIVATE_ISOLATED)
.build())
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VpcConfig.Builderbuilder()default List<ISecurityGroup> (experimental) The security groups associated with the cluster.getVpc()(experimental) Defines the virtual networking environment for this cluster.default SubnetSelection(experimental) The subnets associated with the cluster.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
(experimental) Defines the virtual networking environment for this cluster.Must have at least 2 subnets in two different AZs.
-
getSecurityGroups
(experimental) The security groups associated with the cluster.You can specify up to 5 security groups.
Default: - create new security group
-
getVpcSubnets
(experimental) The subnets associated with the cluster.Default: - the Vpc default strategy if not specified.
-
builder
- Returns:
- a
VpcConfig.BuilderofVpcConfig
-