Show / Hide Table of Contents

Class VpcConfigProps

VPC configuration properties.

Inheritance
object
VpcConfigProps
Implements
IVpcConfigProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.BedrockAgentCore
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VpcConfigProps : IVpcConfigProps
Syntax (vb)
Public Class VpcConfigProps Implements IVpcConfigProps
Remarks

Only used when network mode is VPC.

ExampleMetadata: fixture=default infused

Examples
var vpc = new Vpc(this, "testVPC");

             var codeInterpreter = new CodeInterpreterCustom(this, "MyCodeInterpreter", new CodeInterpreterCustomProps {
                 CodeInterpreterCustomName = "my_sandbox_interpreter",
                 Description = "Code interpreter with isolated network access",
                 NetworkConfiguration = BrowserNetworkConfiguration.UsingVpc(this, new VpcConfigProps {
                     Vpc = vpc
                 })
             });

             codeInterpreter.Connections.AddSecurityGroup(new SecurityGroup(this, "AdditionalGroup", new SecurityGroupProps { Vpc = vpc }));

Synopsis

Constructors

VpcConfigProps()

VPC configuration properties.

Properties

AllowAllOutbound

Whether to allow the resource to send all network traffic (except ipv6).

SecurityGroups

The list of security groups to associate with the resource's network interfaces.

Vpc

The VPC to deploy the resource to.

VpcSubnets

Where to place the network interfaces within the VPC.

Constructors

VpcConfigProps()

VPC configuration properties.

public VpcConfigProps()
Remarks

Only used when network mode is VPC.

ExampleMetadata: fixture=default infused

Examples
var vpc = new Vpc(this, "testVPC");

             var codeInterpreter = new CodeInterpreterCustom(this, "MyCodeInterpreter", new CodeInterpreterCustomProps {
                 CodeInterpreterCustomName = "my_sandbox_interpreter",
                 Description = "Code interpreter with isolated network access",
                 NetworkConfiguration = BrowserNetworkConfiguration.UsingVpc(this, new VpcConfigProps {
                     Vpc = vpc
                 })
             });

             codeInterpreter.Connections.AddSecurityGroup(new SecurityGroup(this, "AdditionalGroup", new SecurityGroupProps { Vpc = vpc }));

Properties

AllowAllOutbound

Whether to allow the resource to send all network traffic (except ipv6).

public bool? AllowAllOutbound { get; set; }
Property Value

bool?

Remarks

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.

Default: true

SecurityGroups

The list of security groups to associate with the resource's network interfaces.

public ISecurityGroup[]? SecurityGroups { get; set; }
Property Value

ISecurityGroup[]

Remarks

Only used if 'vpc' is supplied.

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.

Vpc

The VPC to deploy the resource to.

public IVpc Vpc { get; set; }
Property Value

IVpc

Remarks

Only used when network mode is VPC.

ExampleMetadata: fixture=default infused

VpcSubnets

Where to place the network interfaces within the VPC.

public ISubnetSelection? VpcSubnets { get; set; }
Property Value

ISubnetSelection

Remarks

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.

Default: - the Vpc default strategy if not specified

Implements

IVpcConfigProps
Back to top Generated by DocFX