Class VpcLink
(experimental) 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).
Inherited Members
Namespace: Amazon.CDK.AWS.APIGatewayv2
Assembly: Amazon.CDK.AWS.APIGatewayv2.dll
Syntax (csharp)
public class VpcLink : Resource, IVpcLink, IResource, IConstruct, IDependable
Syntax (vb)
Public Class VpcLink
Inherits Resource
Implements IVpcLink, IResource, IConstruct, IDependable
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.EC2;
var vpc = new Vpc(this, "VPC");
var vpcLink = new VpcLink(this, "VpcLink", new VpcLinkProps { Vpc = vpc });
Synopsis
Constructors
VpcLink(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
VpcLink(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
VpcLink(Construct, String, IVpcLinkProps) |
Properties
Vpc | (experimental) The VPC to which this VPC Link is associated with. |
VpcLinkId | (experimental) Physical ID of the VpcLink resource. |
Methods
AddSecurityGroups(ISecurityGroup[]) | (experimental) Adds the provided security groups to the vpc link. |
AddSubnets(ISubnet[]) | (experimental) Adds the provided subnets to the vpc link. |
FromVpcLinkAttributes(Construct, String, IVpcLinkAttributes) | (experimental) Import a VPC Link by specifying its attributes. |
Constructors
VpcLink(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected VpcLink(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
VpcLink(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected VpcLink(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
VpcLink(Construct, String, IVpcLinkProps)
public VpcLink(Construct scope, string id, IVpcLinkProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IVpcLinkProps
Remarks
Stability: Experimental
Properties
Vpc
(experimental) The VPC to which this VPC Link is associated with.
public virtual IVpc Vpc { get; }
Property Value
Remarks
Stability: Experimental
VpcLinkId
(experimental) Physical ID of the VpcLink resource.
public virtual string VpcLinkId { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
AddSecurityGroups(ISecurityGroup[])
(experimental) Adds the provided security groups to the vpc link.
public virtual void AddSecurityGroups(params ISecurityGroup[] groups)
Parameters
- groups ISecurityGroup[]
Remarks
Stability: Experimental
AddSubnets(ISubnet[])
(experimental) Adds the provided subnets to the vpc link.
public virtual void AddSubnets(params ISubnet[] subnets)
Parameters
- subnets ISubnet[]
Remarks
Stability: Experimental
FromVpcLinkAttributes(Construct, String, IVpcLinkAttributes)
(experimental) Import a VPC Link by specifying its attributes.
public static IVpcLink FromVpcLinkAttributes(Construct scope, string id, IVpcLinkAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IVpcLinkAttributes
Returns
Remarks
Stability: Experimental