Show / Hide Table of Contents

Class VpcLink

Define a new VPC Link Specifies an API Gateway VPC link for a HTTP API to access resources in an Amazon Virtual Private Cloud (VPC).

Inheritance
object
Resource
VpcLink
Implements
IVpcLink
IResource
IVpcLinkRef
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyCrossStackReferenceStrength(ReferenceStrength)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.With(params IMixin[])
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.Apigatewayv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VpcLink : Resource, IVpcLink, IResource, IVpcLinkRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class VpcLink Inherits Resource Implements IVpcLink, IResource, IVpcLinkRef, IConstruct, IDependable, IEnvironmentAware
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.EC2;
            using Amazon.CDK.AWS.ElasticLoadBalancingV2;
            using Amazon.CDK.AwsApigatewayv2Integrations;


            var vpc = new Vpc(this, "VPC");
            var alb = new ApplicationLoadBalancer(this, "AppLoadBalancer", new ApplicationLoadBalancerProps { Vpc = vpc });

            var vpcLink = new VpcLink(this, "VpcLink", new VpcLinkProps { Vpc = vpc });

            // Creating an HTTP ALB Integration:
            var albIntegration = new HttpAlbIntegration("ALBIntegration", alb.Listeners[0], new HttpAlbIntegrationProps { });

Synopsis

Constructors

VpcLink(Construct, string, IVpcLinkProps)

Define a new VPC Link Specifies an API Gateway VPC link for a HTTP API to access resources in an Amazon Virtual Private Cloud (VPC).

Properties

PROPERTY_INJECTION_ID

Uniquely identifies this class.

Vpc

The VPC to which this VPC Link is associated with.

VpcLinkId

Physical ID of the VpcLink resource.

VpcLinkRef

A reference to a VpcLink resource.

Methods

AddSecurityGroups(params ISecurityGroupRef[])

Adds the provided security groups to the vpc link.

AddSubnets(params ISubnetRef[])

Adds the provided subnets to the vpc link.

FromVpcLinkAttributes(Construct, string, IVpcLinkAttributes)

Import a VPC Link by specifying its attributes.

Constructors

VpcLink(Construct, string, IVpcLinkProps)

Define a new VPC Link Specifies an API Gateway VPC link for a HTTP API to access resources in an Amazon Virtual Private Cloud (VPC).

public VpcLink(Construct scope, string id, IVpcLinkProps props)
Parameters
scope Construct
id string
props IVpcLinkProps
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.EC2;
            using Amazon.CDK.AWS.ElasticLoadBalancingV2;
            using Amazon.CDK.AwsApigatewayv2Integrations;


            var vpc = new Vpc(this, "VPC");
            var alb = new ApplicationLoadBalancer(this, "AppLoadBalancer", new ApplicationLoadBalancerProps { Vpc = vpc });

            var vpcLink = new VpcLink(this, "VpcLink", new VpcLinkProps { Vpc = vpc });

            // Creating an HTTP ALB Integration:
            var albIntegration = new HttpAlbIntegration("ALBIntegration", alb.Listeners[0], new HttpAlbIntegrationProps { });

Properties

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

ExampleMetadata: infused

Vpc

The VPC to which this VPC Link is associated with.

public virtual IVpc Vpc { get; }
Property Value

IVpc

Remarks

ExampleMetadata: infused

VpcLinkId

Physical ID of the VpcLink resource.

public virtual string VpcLinkId { get; }
Property Value

string

Remarks

ExampleMetadata: infused

VpcLinkRef

A reference to a VpcLink resource.

public virtual IVpcLinkReference VpcLinkRef { get; }
Property Value

IVpcLinkReference

Remarks

ExampleMetadata: infused

Methods

AddSecurityGroups(params ISecurityGroupRef[])

Adds the provided security groups to the vpc link.

public virtual void AddSecurityGroups(params ISecurityGroupRef[] groups)
Parameters
groups ISecurityGroupRef[]
Remarks

ExampleMetadata: infused

AddSubnets(params ISubnetRef[])

Adds the provided subnets to the vpc link.

public virtual void AddSubnets(params ISubnetRef[] subnets)
Parameters
subnets ISubnetRef[]
Remarks

ExampleMetadata: infused

FromVpcLinkAttributes(Construct, string, IVpcLinkAttributes)

Import a VPC Link by specifying its attributes.

public static IVpcLink FromVpcLinkAttributes(Construct scope, string id, IVpcLinkAttributes attrs)
Parameters
scope Construct
id string
attrs IVpcLinkAttributes
Returns

IVpcLink

Remarks

ExampleMetadata: infused

Implements

IVpcLink
IResource
IVpcLinkRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX