Class CfnNetworkConnectorProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnNetworkConnectorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkConnectorProps>
- Enclosing interface:
CfnNetworkConnectorProps
@Stability(Stable)
public static final class CfnNetworkConnectorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkConnectorProps>
A builder for
CfnNetworkConnectorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configuration(IResolvable configuration) Sets the value ofCfnNetworkConnectorProps.getConfiguration()configuration(CfnNetworkConnector.ConfigProperty configuration) Sets the value ofCfnNetworkConnectorProps.getConfiguration()Sets the value ofCfnNetworkConnectorProps.getName()operatorRole(String operatorRole) Sets the value ofCfnNetworkConnectorProps.getOperatorRole()Sets the value ofCfnNetworkConnectorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
Sets the value ofCfnNetworkConnectorProps.getConfiguration()- Parameters:
configuration- The network configuration for the connector. This parameter is required. Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.- Returns:
this
-
configuration
@Stability(Stable) public CfnNetworkConnectorProps.Builder configuration(CfnNetworkConnector.ConfigProperty configuration) Sets the value ofCfnNetworkConnectorProps.getConfiguration()- Parameters:
configuration- The network configuration for the connector. This parameter is required. Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.- Returns:
this
-
name
Sets the value ofCfnNetworkConnectorProps.getName()- Parameters:
name- A unique name for the network connector within your account and Region. Must be 1 to 64 alphanumeric characters, hyphens, or underscores.- Returns:
this
-
operatorRole
Sets the value ofCfnNetworkConnectorProps.getOperatorRole()- Parameters:
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.- Returns:
this
-
tags
Sets the value ofCfnNetworkConnectorProps.getTags()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkConnectorProps>- Returns:
- a new instance of
CfnNetworkConnectorProps - Throws:
NullPointerException- if any required attribute was not provided
-