CfnEndpointGroupProps Struct
Properties for defining a CfnEndpointGroup.
| Source | |
|---|---|
| Type last changed |
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,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_globalaccelerator as globalaccelerator
cfn_endpoint_group_props = globalaccelerator.CfnEndpointGroupProps(
endpoint_group_region="endpointGroupRegion",
listener_arn="listenerArn",
# the properties below are optional
endpoint_configurations=[globalaccelerator.CfnEndpointGroup.EndpointConfigurationProperty(
endpoint_id="endpointId",
# the properties below are optional
attachment_arn="attachmentArn",
client_ip_preservation_enabled=False,
weight=123
)],
health_check_interval_seconds=123,
health_check_path="healthCheckPath",
health_check_port=123,
health_check_protocol="healthCheckProtocol",
port_overrides=[globalaccelerator.CfnEndpointGroup.PortOverrideProperty(
endpoint_port=123,
listener_port=123
)],
threshold_count=123,
traffic_dial_percentage=123
)
// 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.*;
CfnEndpointGroupProps cfnEndpointGroupProps = CfnEndpointGroupProps.builder()
.endpointGroupRegion("endpointGroupRegion")
.listenerArn("listenerArn")
// the properties below are optional
.endpointConfigurations(List.of(EndpointConfigurationProperty.builder()
.endpointId("endpointId")
// the properties below are optional
.attachmentArn("attachmentArn")
.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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GlobalAccelerator;
var cfnEndpointGroupProps = new CfnEndpointGroupProps {
EndpointGroupRegion = "endpointGroupRegion",
ListenerArn = "listenerArn",
// the properties below are optional
EndpointConfigurations = new [] { new EndpointConfigurationProperty {
EndpointId = "endpointId",
// the properties below are optional
AttachmentArn = "attachmentArn",
ClientIpPreservationEnabled = false,
Weight = 123
} },
HealthCheckIntervalSeconds = 123,
HealthCheckPath = "healthCheckPath",
HealthCheckPort = 123,
HealthCheckProtocol = "healthCheckProtocol",
PortOverrides = new [] { new PortOverrideProperty {
EndpointPort = 123,
ListenerPort = 123
} },
ThresholdCount = 123,
TrafficDialPercentage = 123
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnEndpointGroupProps := &CfnEndpointGroupProps{
EndpointGroupRegion: jsii.String("endpointGroupRegion"),
ListenerArn: jsii.String("listenerArn"),
// the properties below are optional
EndpointConfigurations: []interface{}{
&EndpointConfigurationProperty{
EndpointId: jsii.String("endpointId"),
// the properties below are optional
AttachmentArn: jsii.String("attachmentArn"),
ClientIpPreservationEnabled: jsii.Boolean(false),
Weight: jsii.Number(123),
},
},
HealthCheckIntervalSeconds: jsii.Number(123),
HealthCheckPath: jsii.String("healthCheckPath"),
HealthCheckPort: jsii.Number(123),
HealthCheckProtocol: jsii.String("healthCheckProtocol"),
PortOverrides: []interface{}{
&PortOverrideProperty{
EndpointPort: jsii.Number(123),
ListenerPort: jsii.Number(123),
},
},
ThresholdCount: jsii.Number(123),
TrafficDialPercentage: jsii.Number(123),
}
Properties
endpointConfigurationsoptionalIResolvable | IResolvable | CfnEndpointGroup.endpoint_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EndpointConfigurationProperty]]]endpointConfigurationsoptionalIResolvableEndpointConfigurationsoptionalIResolvableEndpointConfigurationsoptionalinterface{} #endpointGroupRegionstringendpoint_group_regionstrendpointGroupRegionStringEndpointGroupRegionstringEndpointGroupRegion*string required #healthCheckIntervalSecondsoptionalnumberhealth_check_interval_secondsoptionalint | floathealthCheckIntervalSecondsoptionalNumberHealthCheckIntervalSecondsoptionaldoubleHealthCheckIntervalSecondsoptional*float64 = 30 #The default value is 30.
healthCheckPathoptionalstringhealth_check_pathoptionalstrhealthCheckPathoptionalStringHealthCheckPathoptionalstringHealthCheckPathoptional*string = "/" #The default is slash (/).
healthCheckPortoptionalnumberhealth_check_portoptionalint | floathealthCheckPortoptionalNumberHealthCheckPortoptionaldoubleHealthCheckPortoptional*float64 = -1 #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.
healthCheckProtocoloptionalstringhealth_check_protocoloptionalstrhealthCheckProtocoloptionalStringHealthCheckProtocoloptionalstringHealthCheckProtocoloptional*string = "TCP" #The default value is TCP.
listenerArnstring | IListenerReflistener_arntyping.Union[str, IListenerRef]listenerArnStringListenerArnstringListenerArninterface{} required #portOverridesoptionalIResolvable | IResolvable | CfnEndpointGroup.port_overridesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PortOverrideProperty]]]portOverridesoptionalIResolvablePortOverridesoptionalIResolvablePortOverridesoptionalinterface{} #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.
thresholdCountoptionalnumberthreshold_countoptionalint | floatthresholdCountoptionalNumberThresholdCountoptionaldoubleThresholdCountoptional*float64 = 3 #The default value is 3.
trafficDialPercentageoptionalnumbertraffic_dial_percentageoptionalint | floattrafficDialPercentageoptionalNumberTrafficDialPercentageoptionaldoubleTrafficDialPercentageoptional*float64 = 100 #notes
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.