Class CfnNetworkConnector.VpcEgressConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnNetworkConnector.VpcEgressConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkConnector.VpcEgressConfigurationProperty>
- Enclosing interface:
CfnNetworkConnector.VpcEgressConfigurationProperty
@Stability(Stable)
public static final class CfnNetworkConnector.VpcEgressConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkConnector.VpcEgressConfigurationProperty>
A builder for
CfnNetworkConnector.VpcEgressConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatedComputeResourceTypes(List<String> associatedComputeResourceTypes) build()Builds the configured instance.networkProtocol(String networkProtocol) Sets the value ofCfnNetworkConnector.VpcEgressConfigurationProperty.getNetworkProtocol()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnNetworkConnector.VpcEgressConfigurationProperty.getSecurityGroupIds()Sets the value ofCfnNetworkConnector.VpcEgressConfigurationProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
associatedComputeResourceTypes
@Stability(Stable) public CfnNetworkConnector.VpcEgressConfigurationProperty.Builder associatedComputeResourceTypes(List<String> associatedComputeResourceTypes) Sets the value ofCfnNetworkConnector.VpcEgressConfigurationProperty.getAssociatedComputeResourceTypes()- Parameters:
associatedComputeResourceTypes- The types of Lambda compute resources that can use this connector. This parameter is required. Currently, only MicroVm is supported.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnNetworkConnector.VpcEgressConfigurationProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnNetworkConnector.VpcEgressConfigurationProperty.getSubnetIds()- Parameters:
subnetIds- The IDs of the VPC subnets where Lambda provisions elastic network interfaces (ENIs). This parameter is required. Specify 1 to 16 subnets. All subnets must be in the same VPC.- Returns:
this
-
networkProtocol
@Stability(Stable) public CfnNetworkConnector.VpcEgressConfigurationProperty.Builder networkProtocol(String networkProtocol) Sets the value ofCfnNetworkConnector.VpcEgressConfigurationProperty.getNetworkProtocol()- Parameters:
networkProtocol- The network protocol for the connector. Specify IPv4 for IPv4-only networking, or DualStack for both IPv4 and IPv6.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnNetworkConnector.VpcEgressConfigurationProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnNetworkConnector.VpcEgressConfigurationProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- The IDs of the VPC security groups to attach to the ENIs. Specify 0 to 5 security groups. All security groups must be in the same VPC as the subnets.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkConnector.VpcEgressConfigurationProperty>- Returns:
- a new instance of
CfnNetworkConnector.VpcEgressConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-