create_endpoint_group
¶
create_endpoint_group(
listener_arn: GenericString,
endpoint_group_region: GenericString,
idempotency_token: IdempotencyToken,
*,
config_overrides: Optional[GlobalAcceleratorClientConfig] = None,
endpoint_configurations: Optional[EndpointConfigurations] = None,
traffic_dial_percentage: Optional[TrafficDialPercentage] = None,
health_check_port: Optional[HealthCheckPort] = None,
health_check_protocol: Optional[HealthCheckProtocol] = None,
health_check_path: Optional[HealthCheckPath] = None,
health_check_interval_seconds: Optional[HealthCheckIntervalSeconds] = None,
threshold_count: Optional[ThresholdCount] = None,
port_overrides: Optional[PortOverrides] = None,
) -> CreateEndpointGroupResponse
Create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one Amazon Web Services Region. A resource must be valid and active when you add it as an endpoint.
For more information about endpoint types and requirements for endpoints that you can add to Global Accelerator, see Endpoints for standard accelerators in the Global Accelerator Developer Guide.
Parameters:
-
listener_arn(GenericString) –The Amazon Resource Name (ARN) of the listener.
-
endpoint_group_region(GenericString) –The Amazon Web Services Region where the endpoint group is located. A listener can have only one endpoint group in a specific Region.
-
endpoint_configurations(Optional[EndpointConfigurations], default:None) –The list of endpoint objects.
-
traffic_dial_percentage(Optional[TrafficDialPercentage], default:None) –The percentage of traffic to send to an Amazon Web Services Region. 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.
-
health_check_port(Optional[HealthCheckPort], default:None) –The port that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If listener port is a list of ports, Global Accelerator uses the first port in the list.
-
health_check_protocol(Optional[HealthCheckProtocol], default:None) –The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP.
-
health_check_path(Optional[HealthCheckPath], default:None) –If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/).
-
health_check_interval_seconds(Optional[HealthCheckIntervalSeconds], default:None) –The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30.
-
threshold_count(Optional[ThresholdCount], default:None) –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.
-
idempotency_token(IdempotencyToken) –A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
-
port_overrides(Optional[PortOverrides], default:None) –Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide.
Raises:
-
AcceleratorNotFoundException–The accelerator that you specified doesn't exist.
-
AccessDeniedException–You don't have access permission.
-
EndpointGroupAlreadyExistsException–The endpoint group that you specified already exists.
-
InternalServiceErrorException–There was an internal error for Global Accelerator.
-
InvalidArgumentException–An argument that you specified is invalid.
-
LimitExceededException–Processing your request would cause you to exceed an Global Accelerator limit.
-
ListenerNotFoundException–The listener that you specified doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_global_accelerator/_services/global_accelerator.py
841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 | |