Skip to content
v2.278.0

VpcConfigurationProperty Struct ​

The VPC configuration provisioned for the host.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codeconnections as codeconnections } from 'aws-cdk-lib';
const vpcConfigurationProperty: codeconnections.CfnHost.VpcConfigurationProperty = {
  securityGroupIds: ['securityGroupIds'],
  subnetIds: ['subnetIds'],
  vpcId: 'vpcId',

  // the properties below are optional
  tlsCertificate: 'tlsCertificate',
};
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_codeconnections as codeconnections

vpc_configuration_property = codeconnections.CfnHost.VpcConfigurationProperty(
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"],
    vpc_id="vpcId",

    # the properties below are optional
    tls_certificate="tlsCertificate"
)
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.codeconnections.*;

VpcConfigurationProperty vpcConfigurationProperty = VpcConfigurationProperty.builder()
        .securityGroupIds(List.of("securityGroupIds"))
        .subnetIds(List.of("subnetIds"))
        .vpcId("vpcId")

        // the properties below are optional
        .tlsCertificate("tlsCertificate")
        .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.CodeConnections;

var vpcConfigurationProperty = new VpcConfigurationProperty {
    SecurityGroupIds = new [] { "securityGroupIds" },
    SubnetIds = new [] { "subnetIds" },
    VpcId = "vpcId",

    // the properties below are optional
    TlsCertificate = "tlsCertificate"
};
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{
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},
	VpcId: jsii.String("vpcId"),

	// the properties below are optional
	TlsCertificate: jsii.String("tlsCertificate"),
}

Properties ​

securityGroupIdsstring[]security_group_idstyping.List[str]securityGroupIdsList<String>SecurityGroupIdsstring[]SecurityGroupIds*[]*string required #
The ID of the security group or security groups associated with the Amazon VPC.
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*string required #
The ID of the subnet or subnets associated with the Amazon VPC.
tlsCertificateoptionalstringtls_certificateoptionalstrtlsCertificateoptionalStringTlsCertificateoptionalstringTlsCertificateoptional*string #
The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.
vpcIdstringvpc_idstrvpcIdStringVpcIdstringVpcId*string required #
The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.