@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:48.110Z") 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 . |
IEndpointGroup.Jsii$Default, IEndpointGroup.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
EndpointGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
EndpointGroup(software.amazon.jsii.JsiiObjectRef objRef) |
|
EndpointGroup(software.constructs.Construct scope,
java.lang.String id,
EndpointGroupProps props) |
Modifier and Type | Method and Description |
---|---|
void |
addEndpoint(IEndpoint endpoint)
Add an endpoint.
|
IPeer |
connectionsPeer(java.lang.String id,
IVpc vpc)
Return an object that represents the Accelerator's Security Group.
|
static IEndpointGroup |
fromEndpointGroupArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String endpointGroupArn)
import from ARN.
|
java.lang.String |
getEndpointGroupArn()
EndpointGroup ARN.
|
java.lang.String |
getEndpointGroupName()
The name of the endpoint group.
|
protected java.util.List<IEndpoint> |
getEndpoints()
The array of the endpoints in this endpoint group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected EndpointGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected EndpointGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public EndpointGroup(software.constructs.Construct scope, java.lang.String id, EndpointGroupProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IEndpointGroup fromEndpointGroupArn(software.constructs.Construct scope, java.lang.String id, java.lang.String endpointGroupArn)
scope
- This parameter is required.id
- This parameter is required.endpointGroupArn
- This parameter is required.public void addEndpoint(IEndpoint endpoint)
endpoint
- This parameter is required.public IPeer connectionsPeer(java.lang.String id, 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.public java.lang.String getEndpointGroupArn()
getEndpointGroupArn
in interface IEndpointGroup
public java.lang.String getEndpointGroupName()
protected java.util.List<IEndpoint> getEndpoints()