Class CfnNetworkConnector

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, INetworkConnectorRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)", date="2026-07-02T13:32:41.778Z") @Stability(Stable) public class CfnNetworkConnector extends CfnResource implements IInspectable, INetworkConnectorRef, ITaggableV2
Resource Type definition for AWS::Lambda::NetworkConnector.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lambda.*;
 CfnNetworkConnector cfnNetworkConnector = CfnNetworkConnector.Builder.create(this, "MyCfnNetworkConnector")
         .configuration(ConfigProperty.builder()
                 .vpcEgressConfiguration(VpcEgressConfigurationProperty.builder()
                         .associatedComputeResourceTypes(List.of("associatedComputeResourceTypes"))
                         .subnetIds(List.of("subnetIds"))
                         // the properties below are optional
                         .networkProtocol("networkProtocol")
                         .securityGroupIds(List.of("securityGroupIds"))
                         .build())
                 .build())
         // the properties below are optional
         .name("name")
         .operatorRole("operatorRole")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnNetworkConnector

      protected CfnNetworkConnector(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnNetworkConnector

      protected CfnNetworkConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnNetworkConnector

      @Stability(Stable) public CfnNetworkConnector(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnNetworkConnectorProps props)
      Create a new AWS::Lambda::NetworkConnector.

      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.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForNetworkConnector

      @Stability(Stable) @NotNull public static String arnForNetworkConnector(@NotNull INetworkConnectorRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnNetworkConnector

      @Stability(Stable) @NotNull public static Boolean isCfnNetworkConnector(@NotNull Object x)
      Checks whether the given object is a CfnNetworkConnector.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the network connector.
    • getAttrState

      @Stability(Stable) @NotNull public String getAttrState()
      The current state of the network connector.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getNetworkConnectorRef

      @Stability(Stable) @NotNull public NetworkConnectorReference getNetworkConnectorRef()
      A reference to a NetworkConnector resource.
      Specified by:
      getNetworkConnectorRef in interface INetworkConnectorRef
    • getConfiguration

      @Stability(Stable) @NotNull public Object getConfiguration()
      The network configuration for the connector.

      Returns union: either IResolvable or CfnNetworkConnector.ConfigProperty

    • setConfiguration

      @Stability(Stable) public void setConfiguration(@NotNull IResolvable value)
      The network configuration for the connector.
    • setConfiguration

      @Stability(Stable) public void setConfiguration(@NotNull CfnNetworkConnector.ConfigProperty value)
      The network configuration for the connector.
    • getName

      @Stability(Stable) @Nullable public String getName()
      A unique name for the network connector within your account and Region.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      A unique name for the network connector within your account and Region.
    • getOperatorRole

      @Stability(Stable) @Nullable public String getOperatorRole()
      The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC.
    • setOperatorRole

      @Stability(Stable) public void setOperatorRole(@Nullable String value)
      The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      A list of tags to apply to the network connector.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      A list of tags to apply to the network connector.