interface CfnEndpointGroupProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.GlobalAccelerator.CfnEndpointGroupProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsglobalaccelerator#CfnEndpointGroupProps |
![]() | software.amazon.awscdk.services.globalaccelerator.CfnEndpointGroupProps |
![]() | aws_cdk.aws_globalaccelerator.CfnEndpointGroupProps |
![]() | aws-cdk-lib » aws_globalaccelerator » CfnEndpointGroupProps |
Properties for defining a CfnEndpointGroup
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_globalaccelerator as globalaccelerator } from 'aws-cdk-lib';
const cfnEndpointGroupProps: globalaccelerator.CfnEndpointGroupProps = {
endpointGroupRegion: 'endpointGroupRegion',
listenerArn: 'listenerArn',
// the properties below are optional
endpointConfigurations: [{
endpointId: 'endpointId',
// the properties below are optional
attachmentArn: 'attachmentArn',
clientIpPreservationEnabled: false,
weight: 123,
}],
healthCheckIntervalSeconds: 123,
healthCheckPath: 'healthCheckPath',
healthCheckPort: 123,
healthCheckProtocol: 'healthCheckProtocol',
portOverrides: [{
endpointPort: 123,
listenerPort: 123,
}],
thresholdCount: 123,
trafficDialPercentage: 123,
};
Properties
Name | Type | Description |
---|---|---|
endpoint | string | The AWS Regions where the endpoint group is located. |
listener | string | The Amazon Resource Name (ARN) of the listener. |
endpoint | IResolvable | IResolvable | Endpoint [] | The list of endpoint objects. |
health | number | The time—10 seconds or 30 seconds—between health checks for each endpoint. |
health | string | 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. |
health | number | The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. |
health | string | The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. |
port | IResolvable | IResolvable | Port [] | Allows you to override the destination ports used to route traffic to an endpoint. |
threshold | number | 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. |
traffic | number | The percentage of traffic to send to an AWS Regions . |
endpointGroupRegion
Type:
string
The AWS Regions where the endpoint group is located.
listenerArn
Type:
string
The Amazon Resource Name (ARN) of the listener.
endpointConfigurations?
Type:
IResolvable
|
IResolvable
|
Endpoint
[]
(optional)
The list of endpoint objects.
healthCheckIntervalSeconds?
Type:
number
(optional, default: 30)
The time—10 seconds or 30 seconds—between health checks for each endpoint.
The default value is 30.
healthCheckPath?
Type:
string
(optional, default: "/")
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 (/).
healthCheckPort?
Type:
number
(optional, default: -1)
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.
healthCheckProtocol?
Type:
string
(optional, default: "TCP")
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
The default value is TCP.
portOverrides?
Type:
IResolvable
|
IResolvable
|
Port
[]
(optional)
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.
thresholdCount?
Type:
number
(optional, default: 3)
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.
trafficDialPercentage?
Type:
number
(optional, default: 100)
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.