Class CfnCluster.NetworkingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnCluster.NetworkingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.NetworkingProperty>
- Enclosing interface:
CfnCluster.NetworkingProperty
@Stability(Stable)
public static final class CfnCluster.NetworkingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.NetworkingProperty>
A builder for
CfnCluster.NetworkingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.networkType(String networkType) Sets the value ofCfnCluster.NetworkingProperty.getNetworkType()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnCluster.NetworkingProperty.getSecurityGroupIds()Sets the value ofCfnCluster.NetworkingProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkType
Sets the value ofCfnCluster.NetworkingProperty.getNetworkType()- Parameters:
networkType- The IP address version the cluster uses. The default isIPV4.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnCluster.NetworkingProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnCluster.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
Sets the value ofCfnCluster.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<CfnCluster.NetworkingProperty>- Returns:
- a new instance of
CfnCluster.NetworkingProperty - Throws:
NullPointerException- if any required attribute was not provided
-