Class CfnFunction.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnFunction.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.VpcConfigProperty>
- Enclosing interface:
CfnFunction.VpcConfigProperty
@Stability(Stable)
public static final class CfnFunction.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.VpcConfigProperty>
A builder for
CfnFunction.VpcConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.ipv6AllowedForDualStack
(Boolean ipv6AllowedForDualStack) Sets the value ofCfnFunction.VpcConfigProperty.getIpv6AllowedForDualStack()
ipv6AllowedForDualStack
(IResolvable ipv6AllowedForDualStack) Sets the value ofCfnFunction.VpcConfigProperty.getIpv6AllowedForDualStack()
securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnFunction.VpcConfigProperty.getSecurityGroupIds()
Sets the value ofCfnFunction.VpcConfigProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipv6AllowedForDualStack
@Stability(Stable) public CfnFunction.VpcConfigProperty.Builder ipv6AllowedForDualStack(Boolean ipv6AllowedForDualStack) Sets the value ofCfnFunction.VpcConfigProperty.getIpv6AllowedForDualStack()
- Parameters:
ipv6AllowedForDualStack
- Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.- Returns:
this
-
ipv6AllowedForDualStack
@Stability(Stable) public CfnFunction.VpcConfigProperty.Builder ipv6AllowedForDualStack(IResolvable ipv6AllowedForDualStack) Sets the value ofCfnFunction.VpcConfigProperty.getIpv6AllowedForDualStack()
- Parameters:
ipv6AllowedForDualStack
- Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnFunction.VpcConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFunction.VpcConfigProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- A list of VPC security group IDs.- Returns:
this
-
subnetIds
Sets the value ofCfnFunction.VpcConfigProperty.getSubnetIds()
- Parameters:
subnetIds
- A list of VPC subnet IDs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.VpcConfigProperty>
- Returns:
- a new instance of
CfnFunction.VpcConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-