Class CfnClusterPropsMixin.NetworkingProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.pcs.mixins.CfnClusterPropsMixin.NetworkingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.NetworkingProperty>
- Enclosing interface:
CfnClusterPropsMixin.NetworkingProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.NetworkingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.NetworkingProperty>
A builder for
CfnClusterPropsMixin.NetworkingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.networkType(String networkType) Sets the value ofCfnClusterPropsMixin.NetworkingProperty.getNetworkType()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnClusterPropsMixin.NetworkingProperty.getSecurityGroupIds()Sets the value ofCfnClusterPropsMixin.NetworkingProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkType
@Stability(Stable) public CfnClusterPropsMixin.NetworkingProperty.Builder networkType(String networkType) Sets the value ofCfnClusterPropsMixin.NetworkingProperty.getNetworkType()- Parameters:
networkType- The IP address version the cluster uses. The default isIPV4.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnClusterPropsMixin.NetworkingProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnClusterPropsMixin.NetworkingProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets. The following rules are required:- Inbound rule 1
- Protocol: All
- Ports: All
- Source: Self
- Outbound rule 1
- Protocol: All
- Ports: All
- Destination: 0.0.0.0/0 (IPv4) or ::/0 (IPv6)
- Outbound rule 2
- Protocol: All
- Ports: All
- Destination: Self
- Returns:
this
-
subnetIds
@Stability(Stable) public CfnClusterPropsMixin.NetworkingProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnClusterPropsMixin.NetworkingProperty.getSubnetIds()- Parameters:
subnetIds- The ID of the subnet where AWS PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and AWS PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts , AWS Wavelength , or an AWS Local Zone.Example:
subnet-abcd1234- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.NetworkingProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.NetworkingProperty - Throws:
NullPointerException- if any required attribute was not provided
-