Skip to content
v2.277.0

CfnVpcLinkProps Struct ​

Properties for defining a CfnVpcLink.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const cfnVpcLinkProps: apigatewayv2.CfnVpcLinkProps = {
  name: 'name',
  subnetIds: ['subnetIds'],

  // the properties below are optional
  securityGroupIds: ['securityGroupIds'],
  tags: {
    tagsKey: 'tags',
  },
};
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_apigatewayv2 as apigatewayv2

cfn_vpc_link_props = apigatewayv2.CfnVpcLinkProps(
    name="name",
    subnet_ids=["subnetIds"],

    # the properties below are optional
    security_group_ids=["securityGroupIds"],
    tags={
        "tags_key": "tags"
    }
)
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.apigatewayv2.*;

CfnVpcLinkProps cfnVpcLinkProps = CfnVpcLinkProps.builder()
        .name("name")
        .subnetIds(List.of("subnetIds"))

        // the properties below are optional
        .securityGroupIds(List.of("securityGroupIds"))
        .tags(Map.of(
                "tagsKey", "tags"))
        .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.Apigatewayv2;

var cfnVpcLinkProps = new CfnVpcLinkProps {
    Name = "name",
    SubnetIds = new [] { "subnetIds" },

    // the properties below are optional
    SecurityGroupIds = new [] { "securityGroupIds" },
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
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"

cfnVpcLinkProps := &CfnVpcLinkProps{
	Name: jsii.String("name"),
	SubnetIds: []interface{}{
		jsii.String("subnetIds"),
	},

	// the properties below are optional
	SecurityGroupIds: []interface{}{
		jsii.String("securityGroupIds"),
	},
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

namestringnamestrnameStringNamestringName*stringrequired#
The name of the VPC link.
securityGroupIdsoptionalstring | ISecurityGroupRef[]security_group_idsoptionaltyping.List[typing.Union[str, ISecurityGroupRef]]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]interface{}#
A list of security group IDs for the VPC link.
subnetIdsstring | ISubnetRef[]subnet_idstyping.List[typing.Union[str, ISubnetRef]]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]interface{}required#
A list of subnet IDs to include in the VPC link.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#
The collection of tags.

Each tag element is associated with a given resource.