Skip to content
v2.278.0

VpcConfigurationProperty Struct ​

Contains configuration information about the Amazon Virtual Private Cloud (VPC).

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lookoutmetrics as lookoutmetrics } from 'aws-cdk-lib';
const vpcConfigurationProperty: lookoutmetrics.CfnAnomalyDetector.VpcConfigurationProperty = {
  securityGroupIdList: ['securityGroupIdList'],
  subnetIdList: ['subnetIdList'],
};
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_lookoutmetrics as lookoutmetrics

vpc_configuration_property = lookoutmetrics.CfnAnomalyDetector.VpcConfigurationProperty(
    security_group_id_list=["securityGroupIdList"],
    subnet_id_list=["subnetIdList"]
)
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.lookoutmetrics.*;

VpcConfigurationProperty vpcConfigurationProperty = VpcConfigurationProperty.builder()
        .securityGroupIdList(List.of("securityGroupIdList"))
        .subnetIdList(List.of("subnetIdList"))
        .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.LookoutMetrics;

var vpcConfigurationProperty = new VpcConfigurationProperty {
    SecurityGroupIdList = new [] { "securityGroupIdList" },
    SubnetIdList = new [] { "subnetIdList" }
};
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{
	SecurityGroupIdList: []*string{
		jsii.String("securityGroupIdList"),
	},
	SubnetIdList: []*string{
		jsii.String("subnetIdList"),
	},
}

Properties ​

securityGroupIdListstring[]security_group_id_listtyping.List[str]securityGroupIdListList<String>SecurityGroupIdListstring[]SecurityGroupIdList*[]*string required #
An array of strings containing the list of security groups.
subnetIdListstring[]subnet_id_listtyping.List[str]subnetIdListList<String>SubnetIdListstring[]SubnetIdList*[]*string required #
An array of strings containing the Amazon VPC subnet IDs (e.g., `subnet-0bb1c79de3EXAMPLE` .