@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:41.246Z") @Stability(value=Experimental) public enum ConnectionType extends Enum<ConnectionType>
import software.amazon.awscdk.core.*;
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
(experimental) For connections through the public routable internet.
|
VPC_LINK
(experimental) 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=Experimental) public static final ConnectionType INTERNET
@Stability(value=Experimental) 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.