Class CfnNetworkConnector.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnNetworkConnector.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkConnector>
- Enclosing class:
CfnNetworkConnector
@Stability(Stable)
public static final class CfnNetworkConnector.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkConnector>
A fluent builder for
CfnNetworkConnector.-
Method Summary
Modifier and TypeMethodDescriptionbuild()configuration(IResolvable configuration) The network configuration for the connector.configuration(CfnNetworkConnector.ConfigProperty configuration) The network configuration for the connector.static CfnNetworkConnector.BuilderA unique name for the network connector within your account and Region.operatorRole(String operatorRole) The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC.A list of tags to apply to the network connector.
-
Method Details
-
create
@Stability(Stable) public static CfnNetworkConnector.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnNetworkConnector.Builder.
-
configuration
The network configuration for the connector.Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.
- Parameters:
configuration- The network configuration for the connector. This parameter is required.- Returns:
this- See Also:
-
configuration
@Stability(Stable) public CfnNetworkConnector.Builder configuration(CfnNetworkConnector.ConfigProperty configuration) The network configuration for the connector.Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.
- Parameters:
configuration- The network configuration for the connector. This parameter is required.- Returns:
this- See Also:
-
name
A unique name for the network connector within your account and Region.Must be 1 to 64 alphanumeric characters, hyphens, or underscores.
- Parameters:
name- A unique name for the network connector within your account and Region. This parameter is required.- Returns:
this- See Also:
-
operatorRole
The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC.This role must have permissions for ec2:CreateNetworkInterface and related describe operations.
- Parameters:
operatorRole- The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC. This parameter is required.- Returns:
this- See Also:
-
tags
A list of tags to apply to the network connector.Use tags to categorize network connectors for cost allocation, access control, or operational management.
- Parameters:
tags- A list of tags to apply to the network connector. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkConnector>- Returns:
- a newly built instance of
CfnNetworkConnector.
-