Class CfnVpcConnector.Builder

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

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

    • create

      @Stability(Stable) public static CfnVpcConnector.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnVpcConnector.Builder.
    • subnets

      @Stability(Stable) public CfnVpcConnector.Builder subnets(List<String> subnets)
      A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.

      Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify.

      App Runner currently only provides support for IPv4.

      Parameters:
      subnets - A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. This parameter is required.
      Returns:
      this
    • securityGroups

      @Stability(Stable) public CfnVpcConnector.Builder securityGroups(List<String> securityGroups)
      A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.

      If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.

      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
    • tags

      @Stability(Stable) public CfnVpcConnector.Builder tags(List<? extends CfnTag> tags)
      A list of metadata items that you can associate with your VPC connector resource.

      A tag is a key-value pair.

      Parameters:
      tags - A list of metadata items that you can associate with your VPC connector resource. This parameter is required.
      Returns:
      this
    • vpcConnectorName

      @Stability(Stable) public CfnVpcConnector.Builder vpcConnectorName(String vpcConnectorName)
      A name for the VPC connector.

      If you don't specify a name, AWS CloudFormation generates a name for your VPC connector.

      Parameters:
      vpcConnectorName - A name for the VPC connector. This parameter is required.
      Returns:
      this
    • build

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