Class InstanceEndpoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint
- All Implemented Interfaces:
IEndpoint,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:22.527Z")
@Stability(Stable)
public class InstanceEndpoint
extends software.amazon.jsii.JsiiObject
implements IEndpoint
Use an EC2 Instance as a Global Accelerator Endpoint.
Example:
Listener listener;
Instance instance;
listener.addEndpointGroup("Group", EndpointGroupOptions.builder()
.endpoints(List.of(
InstanceEndpoint.Builder.create(instance)
.weight(128)
.preserveClientIp(true)
.build()))
.build());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.globalaccelerator.IEndpoint
IEndpoint.Jsii$Default, IEndpoint.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionInstanceEndpoint(IInstance instance) InstanceEndpoint(IInstance instance, InstanceEndpointProps options) protectedInstanceEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedInstanceEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe region where the endpoint is located.Render the endpoint to an endpoint configuration.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
InstanceEndpoint
protected InstanceEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
InstanceEndpoint
protected InstanceEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
InstanceEndpoint
@Stability(Stable) public InstanceEndpoint(@NotNull IInstance instance, @Nullable InstanceEndpointProps options) - Parameters:
instance- This parameter is required.options-
-
InstanceEndpoint
- Parameters:
instance- This parameter is required.
-
-
Method Details
-
renderEndpointConfiguration
Render the endpoint to an endpoint configuration.- Specified by:
renderEndpointConfigurationin interfaceIEndpoint
-
getRegion
The region where the endpoint is located.If the region cannot be determined,
undefinedis returned
-