NetworkConfigurationProperty Struct
The network configuration for the agent.
| Source | |
|---|---|
| Type last changed |
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 networkConfigurationProperty: bedrockagentcore.CfnRuntime.NetworkConfigurationProperty = {
networkMode: 'networkMode',
// the properties below are optional
networkModeConfig: {
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
network_configuration_property = bedrockagentcore.CfnRuntime.NetworkConfigurationProperty(
network_mode="networkMode",
# the properties below are optional
network_mode_config=bedrockagentcore.CfnRuntime.VpcConfigProperty(
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.*;
NetworkConfigurationProperty networkConfigurationProperty = NetworkConfigurationProperty.builder()
.networkMode("networkMode")
// the properties below are optional
.networkModeConfig(VpcConfigProperty.builder()
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.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 networkConfigurationProperty = new NetworkConfigurationProperty {
NetworkMode = "networkMode",
// the properties below are optional
NetworkModeConfig = new VpcConfigProperty {
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"
networkConfigurationProperty := &NetworkConfigurationProperty{
NetworkMode: jsii.String("networkMode"),
// the properties below are optional
NetworkModeConfig: &VpcConfigProperty{
SecurityGroups: []*string{
jsii.String("securityGroups"),
},
Subnets: []*string{
jsii.String("subnets"),
},
},
}
Properties
The network mode.
networkModeConfigoptionalIResolvable | CfnRuntime.VpcConfigPropertynetwork_mode_configoptionaltyping.Union[IResolvable, VpcConfigProperty]networkModeConfigoptionalIResolvableNetworkModeConfigoptionalIResolvableNetworkModeConfigoptionalinterface{} #Network mode configuration for VPC.