Skip to content
v2.278.0

VpcConfigurationProperty Struct ​

VPC configuration for launching EC2 instances.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const vpcConfigurationProperty: bedrockagentcore.CfnCapacityProvider.VpcConfigurationProperty = {
  securityGroups: ['securityGroups'],
  subnets: ['subnets'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

vpc_configuration_property = bedrockagentcore.CfnCapacityProvider.VpcConfigurationProperty(
    security_groups=["securityGroups"],
    subnets=["subnets"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;

VpcConfigurationProperty vpcConfigurationProperty = VpcConfigurationProperty.builder()
        .securityGroups(List.of("securityGroups"))
        .subnets(List.of("subnets"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var vpcConfigurationProperty = new VpcConfigurationProperty {
    SecurityGroups = new [] { "securityGroups" },
    Subnets = new [] { "subnets" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

vpcConfigurationProperty := &VpcConfigurationProperty{
	SecurityGroups: []*string{
		jsii.String("securityGroups"),
	},
	Subnets: []*string{
		jsii.String("subnets"),
	},
}

Properties ​

securityGroupsstring[]security_groupstyping.List[str]securityGroupsList<String>SecurityGroupsstring[]SecurityGroups*[]*string required #
The IDs of the security groups to associate with the instances.
subnetsstring[]subnetstyping.List[str]subnetsList<String>Subnetsstring[]Subnets*[]*string required #
The IDs of the subnets in which to launch instances.