Class CfnVpcConnectorProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • subnets

      @Stability(Stable) public CfnVpcConnectorProps.Builder subnets(List<String> subnets)
      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. 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.

      Returns:
      this
    • securityGroups

      @Stability(Stable) public CfnVpcConnectorProps.Builder securityGroups(List<String> securityGroups)
      Parameters:
      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.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnVpcConnectorProps.Builder tags(List<? extends CfnTag> tags)
      Parameters:
      tags - A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.
      Returns:
      this
    • vpcConnectorName

      @Stability(Stable) public CfnVpcConnectorProps.Builder vpcConnectorName(String vpcConnectorName)
      Parameters:
      vpcConnectorName - A name for the VPC connector. If you don't specify a name, AWS CloudFormation generates a name for your VPC connector.
      Returns:
      this
    • build

      @Stability(Stable) public CfnVpcConnectorProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnVpcConnectorProps>
      Returns:
      a new instance of CfnVpcConnectorProps
      Throws:
      NullPointerException - if any required attribute was not provided