Skip to content
v2.278.0

VpcConfigurationProperty Struct ​

The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.

Provided securityGroupIds and subnetIds must be part of the same VPC.

Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_grafana as grafana } from 'aws-cdk-lib';
const vpcConfigurationProperty: grafana.CfnWorkspace.VpcConfigurationProperty = {
  securityGroupIds: ['securityGroupIds'],
  subnetIds: ['subnetIds'],
};
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_grafana as grafana

vpc_configuration_property = grafana.CfnWorkspace.VpcConfigurationProperty(
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"]
)
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.grafana.*;

VpcConfigurationProperty vpcConfigurationProperty = VpcConfigurationProperty.builder()
        .securityGroupIds(List.of("securityGroupIds"))
        .subnetIds(List.of("subnetIds"))
        .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.Grafana;

var vpcConfigurationProperty = new VpcConfigurationProperty {
    SecurityGroupIds = new [] { "securityGroupIds" },
    SubnetIds = new [] { "subnetIds" }
};
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"),
	},
}

Properties ​

securityGroupIdsstring[]security_group_idstyping.List[str]securityGroupIdsList<String>SecurityGroupIdsstring[]SecurityGroupIds*[]*string required #
The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.

Duplicates not allowed.

Array Members : Minimum number of 1 items. Maximum number of 5 items.

Length : Minimum length of 0. Maximum length of 255.

subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*string required #
The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.

Duplicates not allowed.

Array Members : Minimum number of 2 items. Maximum number of 6 items.

Length : Minimum length of 0. Maximum length of 255.