@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.156Z") @Stability(value=Stable) public enum ConnectionType extends Enum<ConnectionType>
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();
| Enum Constant and Description |
|---|
INTERNET
For connections through the public routable internet.
|
VPC_LINK
For private connections between API Gateway and a network load balancer in a VPC.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final ConnectionType INTERNET
@Stability(value=Stable) public static final ConnectionType VPC_LINK
public static ConnectionType[] values()
for (ConnectionType c : ConnectionType.values()) System.out.println(c);
public static ConnectionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.