interface VpcConfigProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.VpcConfigProps |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#VpcConfigProps |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.VpcConfigProps |
Python | aws_cdk.aws_bedrock_agentcore_alpha.VpcConfigProps |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป VpcConfigProps |
VPC configuration properties.
Only used when network mode is VPC.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const securityGroup: ec2.SecurityGroup;
declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
declare const vpc: ec2.Vpc;
const vpcConfigProps: bedrock_agentcore_alpha.VpcConfigProps = {
vpc: vpc,
// the properties below are optional
allowAllOutbound: false,
securityGroups: [securityGroup],
vpcSubnets: {
availabilityZones: ['availabilityZones'],
onePerAz: false,
subnetFilters: [subnetFilter],
subnetGroupName: 'subnetGroupName',
subnets: [subnet],
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| vpc | IVpc | The VPC to deploy the resource to. |
| allow | boolean | Whether to allow the resource to send all network traffic (except ipv6). |
| security | ISecurity[] | The list of security groups to associate with the resource's network interfaces. |
| vpc | Subnet | Where to place the network interfaces within the VPC. |
vpc
Type:
IVpc
The VPC to deploy the resource to.
allowAllOutbound?
Type:
boolean
(optional, default: true)
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.
securityGroups?
Type:
ISecurity[]
(optional, default: If the resource is placed within a VPC and a security group is
not specified by this prop, a dedicated security
group will be created for this resource.)
The list of security groups to associate with the resource's network interfaces.
Only used if 'vpc' is supplied.
vpcSubnets?
Type:
Subnet
(optional, default: the Vpc default strategy if not specified)
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.

.NET
Go
Java
Python
TypeScript (