@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:42.206Z") public class VpcLink extends Resource implements IVpcLink
Example:
import software.amazon.awscdk.services.elasticloadbalancingv2.*; Vpc vpc = new Vpc(this, "VPC"); NetworkLoadBalancer nlb = NetworkLoadBalancer.Builder.create(this, "NLB") .vpc(vpc) .build(); VpcLink link = VpcLink.Builder.create(this, "link") .targets(List.of(nlb)) .build(); Integration integration = Integration.Builder.create() .type(IntegrationType.HTTP_PROXY) .options(IntegrationOptions.builder() .connectionType(ConnectionType.VPC_LINK) .vpcLink(link) .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
VpcLink.Builder
A fluent builder for
VpcLink . |
IVpcLink.Jsii$Default, IVpcLink.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
VpcLink(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
VpcLink(software.amazon.jsii.JsiiObjectRef objRef) |
|
VpcLink(software.constructs.Construct scope,
java.lang.String id) |
|
VpcLink(software.constructs.Construct scope,
java.lang.String id,
VpcLinkProps props) |
Modifier and Type | Method and Description |
---|---|
void |
addTargets(INetworkLoadBalancer... targets) |
static IVpcLink |
fromVpcLinkId(software.constructs.Construct scope,
java.lang.String id,
java.lang.String vpcLinkId)
Import a VPC Link by its Id.
|
java.lang.String |
getVpcLinkId()
Physical ID of the VpcLink resource.
|
protected java.util.List<java.lang.String> |
validate()
Validate the current construct.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected VpcLink(software.amazon.jsii.JsiiObjectRef objRef)
protected VpcLink(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public VpcLink(software.constructs.Construct scope, java.lang.String id, VpcLinkProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public VpcLink(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public static IVpcLink fromVpcLinkId(software.constructs.Construct scope, java.lang.String id, java.lang.String vpcLinkId)
scope
- This parameter is required.id
- This parameter is required.vpcLinkId
- This parameter is required.public void addTargets(INetworkLoadBalancer... targets)
targets
- This parameter is required.protected java.util.List<java.lang.String> validate()
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
public java.lang.String getVpcLinkId()
getVpcLinkId
in interface IVpcLink