@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.514Z") @Stability(value=Stable) public class EndpointGroup extends Resource implements IEndpointGroup
Example:
Listener listener;
// Non-open ALB
ApplicationLoadBalancer alb;
// Remember that there is only one AGA security group per VPC.
Vpc vpc;
EndpointGroup endpointGroup = listener.addEndpointGroup("Group", EndpointGroupOptions.builder()
.endpoints(List.of(
ApplicationLoadBalancerEndpoint.Builder.create(alb)
.preserveClientIp(true)
.build()))
.build());
IPeer agaSg = endpointGroup.connectionsPeer("GlobalAcceleratorSG", vpc);
// Allow connections from the AGA to the ALB
alb.connections.allowFrom(agaSg, Port.tcp(443));
| Modifier and Type | Class and Description |
|---|---|
static class |
EndpointGroup.Builder
A fluent builder for
EndpointGroup. |
software.amazon.jsii.JsiiObject.InitializationModeIEndpointGroup.Jsii$Default, IEndpointGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
EndpointGroup(software.constructs.Construct scope,
String id,
EndpointGroupProps props) |
protected |
EndpointGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
EndpointGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(IEndpoint endpoint)
Add an endpoint.
|
IPeer |
connectionsPeer(String id,
IVpc vpc)
Return an object that represents the Accelerator's Security Group.
|
static IEndpointGroup |
fromEndpointGroupArn(software.constructs.Construct scope,
String id,
String endpointGroupArn)
import from ARN.
|
String |
getEndpointGroupArn()
EndpointGroup ARN.
|
String |
getEndpointGroupName()
The name of the endpoint group.
|
protected List<IEndpoint> |
getEndpoints()
The array of the endpoints in this endpoint group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected EndpointGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected EndpointGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public EndpointGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
EndpointGroupProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IEndpointGroup fromEndpointGroupArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String endpointGroupArn)
scope - This parameter is required.id - This parameter is required.endpointGroupArn - This parameter is required.@Stability(value=Stable)
public void addEndpoint(@NotNull
IEndpoint endpoint)
endpoint - This parameter is required.@Stability(value=Stable) @NotNull public IPeer connectionsPeer(@NotNull String id, @NotNull IVpc vpc)
Uses a Custom Resource to look up the Security Group that Accelerator creates at deploy time. Requires your VPC ID to perform the lookup.
The Security Group will only be created if you enable Client IP Preservation on any of the endpoints.
You cannot manipulate the rules inside this security group, but you can use this security group as a Peer in Connections rules on other constructs.
id - This parameter is required.vpc - This parameter is required.@Stability(value=Stable) @NotNull public String getEndpointGroupArn()
getEndpointGroupArn in interface IEndpointGroup@Stability(value=Stable) @NotNull public String getEndpointGroupName()
Copyright © 2022. All rights reserved.