package awsapigateway import ( "github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2" ) // Properties for a VpcLink. // // Example: // import elbv2 "github.com/aws/aws-cdk-go/awscdk" // // // vpc := ec2.NewVpc(this, jsii.String("VPC")) // nlb := elbv2.NewNetworkLoadBalancer(this, jsii.String("NLB"), &NetworkLoadBalancerProps{ // Vpc: Vpc, // }) // link := apigateway.NewVpcLink(this, jsii.String("link"), &VpcLinkProps{ // Targets: []iNetworkLoadBalancer{ // nlb, // }, // }) // // integration := apigateway.NewIntegration(&IntegrationProps{ // Type: apigateway.IntegrationType_HTTP_PROXY, // Options: &IntegrationOptions{ // ConnectionType: apigateway.ConnectionType_VPC_LINK, // VpcLink: link, // }, // }) // type VpcLinkProps struct { // The description of the VPC link. Description *string `field:"optional" json:"description" yaml:"description"` // The network load balancers of the VPC targeted by the VPC link. // // The network load balancers must be owned by the same AWS account of the API owner. Targets *[]awselasticloadbalancingv2.INetworkLoadBalancer `field:"optional" json:"targets" yaml:"targets"` // The name used to label and identify the VPC link. VpcLinkName *string `field:"optional" json:"vpcLinkName" yaml:"vpcLinkName"` }