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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowAllOutbound(Boolean allowAllOutbound) Sets the value ofVpcConfigProps.getAllowAllOutbound()build()Builds the configured instance.securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcConfigProps.getSecurityGroups()Sets the value ofVpcConfigProps.getVpc()vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofVpcConfigProps.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofVpcConfigProps.getVpc()- Parameters:
vpc- The VPC to deploy the resource to. This parameter is required.- Returns:
this
-
allowAllOutbound
Sets the value ofVpcConfigProps.getAllowAllOutbound()- 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
securityGroupsproperty is set. Instead, configureallowAllOutbounddirectly on the security group.- Returns:
this
-
securityGroups
@Stability(Experimental) public VpcConfigProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcConfigProps.getSecurityGroups()- Parameters:
securityGroups- The list of security groups to associate with the resource's network interfaces. Only used if 'vpc' is supplied.- Returns:
this
-
vpcSubnets
Sets the value ofVpcConfigProps.getVpcSubnets()- Parameters:
vpcSubnets- Where to place the network interfaces within the VPC. This requiresvpcto be specified in order for interfaces to actually be placed in the subnets. Ifvpcis not specify, this will raise an error.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcConfigProps>- Returns:
- a new instance of
VpcConfigProps - Throws:
NullPointerException- if any required attribute was not provided
-