Class CfnEndpointGroup
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::GlobalAccelerator::EndpointGroup.
The AWS::GlobalAccelerator::EndpointGroup resource is a Global Accelerator resource type that contains information about how you create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one AWS Region .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.globalaccelerator.*;
CfnEndpointGroup cfnEndpointGroup = CfnEndpointGroup.Builder.create(this, "MyCfnEndpointGroup")
.endpointGroupRegion("endpointGroupRegion")
.listenerArn("listenerArn")
// the properties below are optional
.endpointConfigurations(List.of(EndpointConfigurationProperty.builder()
.endpointId("endpointId")
// the properties below are optional
.clientIpPreservationEnabled(false)
.weight(123)
.build()))
.healthCheckIntervalSeconds(123)
.healthCheckPath("healthCheckPath")
.healthCheckPort(123)
.healthCheckProtocol("healthCheckProtocol")
.portOverrides(List.of(PortOverrideProperty.builder()
.endpointPort(123)
.listenerPort(123)
.build()))
.thresholdCount(123)
.trafficDialPercentage(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEndpointGroup.static interfaceA complex type for endpoints.static interfaceOverride specific listener ports used to route traffic to endpoints that are part of an endpoint group.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnEndpointGroup(Construct scope, String id, CfnEndpointGroupProps props) Create a newAWS::GlobalAccelerator::EndpointGroup.protectedCfnEndpointGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEndpointGroup(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the endpoint group, such asarn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh/listener/0123vxyz/endpoint-group/098765zyxwvu.The list of endpoint objects.The AWS Regions where the endpoint group is located.The time—10 seconds or 30 seconds—between health checks for each endpoint.If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.The Amazon Resource Name (ARN) of the listener.Allows you to override the destination ports used to route traffic to an endpoint.The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.The percentage of traffic to send to an AWS Regions .voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetEndpointConfigurations(List<Object> value) The list of endpoint objects.voidThe list of endpoint objects.voidsetEndpointGroupRegion(String value) The AWS Regions where the endpoint group is located.voidThe time—10 seconds or 30 seconds—between health checks for each endpoint.voidsetHealthCheckPath(String value) If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.voidsetHealthCheckPort(Number value) The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.voidsetHealthCheckProtocol(String value) The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.voidsetListenerArn(String value) The Amazon Resource Name (ARN) of the listener.voidsetPortOverrides(List<Object> value) Allows you to override the destination ports used to route traffic to an endpoint.voidsetPortOverrides(IResolvable value) Allows you to override the destination ports used to route traffic to an endpoint.voidsetThresholdCount(Number value) The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.voidsetTrafficDialPercentage(Number value) The percentage of traffic to send to an AWS Regions .Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEndpointGroup
protected CfnEndpointGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEndpointGroup
protected CfnEndpointGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEndpointGroup
@Stability(Stable) public CfnEndpointGroup(@NotNull Construct scope, @NotNull String id, @NotNull CfnEndpointGroupProps props) Create a newAWS::GlobalAccelerator::EndpointGroup.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrEndpointGroupArn
The ARN of the endpoint group, such asarn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh/listener/0123vxyz/endpoint-group/098765zyxwvu. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEndpointGroupRegion
The AWS Regions where the endpoint group is located. -
setEndpointGroupRegion
The AWS Regions where the endpoint group is located. -
getListenerArn
The Amazon Resource Name (ARN) of the listener. -
setListenerArn
The Amazon Resource Name (ARN) of the listener. -
getEndpointConfigurations
The list of endpoint objects. -
setEndpointConfigurations
The list of endpoint objects. -
setEndpointConfigurations
The list of endpoint objects. -
getHealthCheckIntervalSeconds
The time—10 seconds or 30 seconds—between health checks for each endpoint.The default value is 30.
-
setHealthCheckIntervalSeconds
The time—10 seconds or 30 seconds—between health checks for each endpoint.The default value is 30.
-
getHealthCheckPath
If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.The default is slash (/).
-
setHealthCheckPath
If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.The default is slash (/).
-
getHealthCheckPort
The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
-
setHealthCheckPort
The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
-
getHealthCheckProtocol
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.The default value is TCP.
-
setHealthCheckProtocol
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.The default value is TCP.
-
getPortOverrides
Allows you to override the destination ports used to route traffic to an endpoint.Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
-
setPortOverrides
Allows you to override the destination ports used to route traffic to an endpoint.Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
-
setPortOverrides
Allows you to override the destination ports used to route traffic to an endpoint.Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
-
getThresholdCount
The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.The default value is 3.
-
setThresholdCount
The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.The default value is 3.
-
getTrafficDialPercentage
The percentage of traffic to send to an AWS Regions .Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
-
setTrafficDialPercentage
The percentage of traffic to send to an AWS Regions .Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
-