Class VpcConfigProps.Builder

java.lang.Object
software.amazon.awscdk.services.bedrock.agentcore.alpha.VpcConfigProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<VpcConfigProps>
Enclosing interface:
VpcConfigProps

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

    • Builder

      public Builder()
  • Method Details

    • vpc

      @Stability(Experimental) public VpcConfigProps.Builder vpc(IVpc vpc)
      Sets the value of VpcConfigProps.getVpc()
      Parameters:
      vpc - The VPC to deploy the resource to. This parameter is required.
      Returns:
      this
    • allowAllOutbound

      @Stability(Experimental) public VpcConfigProps.Builder allowAllOutbound(Boolean allowAllOutbound)
      Parameters:
      allowAllOutbound - Whether to allow the resource to send all network traffic (except ipv6). If set to false, you must individually add traffic rules to allow the resource to connect to network targets.

      Do not specify this property if the securityGroups property is set. Instead, configure allowAllOutbound directly on the security group.

      Returns:
      this
    • securityGroups

      @Stability(Experimental) public VpcConfigProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
      Parameters:
      securityGroups - The list of security groups to associate with the resource's network interfaces. Only used if 'vpc' is supplied.
      Returns:
      this
    • vpcSubnets

      @Stability(Experimental) public VpcConfigProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
      Parameters:
      vpcSubnets - Where to place the network interfaces within the VPC. This requires vpc to be specified in order for interfaces to actually be placed in the subnets. If vpc is not specify, this will raise an error.
      Returns:
      this
    • build

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