Class VpcConnector.Builder

java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.VpcConnector.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<VpcConnector>
Enclosing class:
VpcConnector

@Stability(Experimental) public static final class VpcConnector.Builder extends Object implements software.amazon.jsii.Builder<VpcConnector>
(experimental) A fluent builder for VpcConnector.
  • Method Details

    • create

      @Stability(Experimental) public static VpcConnector.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of VpcConnector.Builder.
    • vpc

      @Stability(Experimental) public VpcConnector.Builder vpc(IVpc vpc)
      (experimental) The VPC for the VPC Connector.

      Parameters:
      vpc - The VPC for the VPC Connector. This parameter is required.
      Returns:
      this
    • securityGroups

      @Stability(Experimental) public VpcConnector.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
      (experimental) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.

      Default: - a new security group will be created in the specified VPC

      Parameters:
      securityGroups - A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. This parameter is required.
      Returns:
      this
    • vpcConnectorName

      @Stability(Experimental) public VpcConnector.Builder vpcConnectorName(String vpcConnectorName)
      (experimental) The name for the VpcConnector.

      Default: - a name generated by CloudFormation

      Parameters:
      vpcConnectorName - The name for the VpcConnector. This parameter is required.
      Returns:
      this
    • vpcSubnets

      @Stability(Experimental) public VpcConnector.Builder vpcSubnets(SubnetSelection vpcSubnets)
      (experimental) Where to place the VPC Connector within the VPC.

      Default: - Private subnets.

      Parameters:
      vpcSubnets - Where to place the VPC Connector within the VPC. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public VpcConnector build()
      Specified by:
      build in interface software.amazon.jsii.Builder<VpcConnector>
      Returns:
      a newly built instance of VpcConnector.