Skip to main content

endpoint_groups

Creates, updates, deletes or gets an endpoint_group resource or lists endpoint_groups in a region

Overview

Nameendpoint_groups
TypeResource
DescriptionResource Type definition for AWS::GlobalAccelerator::EndpointGroup
Idawscc.globalaccelerator.endpoint_groups

Fields

NameDatatypeDescription
listener_arnstringThe Amazon Resource Name (ARN) of the listener
endpoint_group_regionstringThe name of the AWS Region where the endpoint group is located
endpoint_configurationsarrayThe list of endpoint objects.
traffic_dial_percentagenumberThe percentage of traffic to sent to an AWS Region
health_check_portintegerThe port that AWS Global Accelerator uses to check the health of endpoints in this endpoint group.
health_check_protocolstringThe protocol that AWS Global Accelerator uses to check the health of endpoints in this endpoint group.
health_check_pathstring
health_check_interval_secondsintegerThe time in seconds between each health check for an endpoint. Must be a value of 10 or 30
threshold_countintegerThe number of consecutive health checks required to set the state of the endpoint to unhealthy.
endpoint_group_arnstringThe Amazon Resource Name (ARN) of the endpoint group
port_overridesarray
regionstringAWS region.

For more information, see AWS::GlobalAccelerator::EndpointGroup.

Methods

NameResourceAccessible byRequired Params
create_resourceendpoint_groupsINSERTListenerArn, EndpointGroupRegion, region
delete_resourceendpoint_groupsDELETEIdentifier, region
update_resourceendpoint_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesendpoint_groups_list_onlySELECTregion
get_resourceendpoint_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual endpoint_group.

SELECT
region,
listener_arn,
endpoint_group_region,
endpoint_configurations,
traffic_dial_percentage,
health_check_port,
health_check_protocol,
health_check_path,
health_check_interval_seconds,
threshold_count,
endpoint_group_arn,
port_overrides
FROM awscc.globalaccelerator.endpoint_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ endpoint_group_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new endpoint_group resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.globalaccelerator.endpoint_groups (
ListenerArn,
EndpointGroupRegion,
region
)
SELECT
'{{ listener_arn }}',
'{{ endpoint_group_region }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a endpoint_group resource, using stack-deploy.

/*+ update */
UPDATE awscc.globalaccelerator.endpoint_groups
SET PatchDocument = string('{{ {
"EndpointConfigurations": endpoint_configurations,
"TrafficDialPercentage": traffic_dial_percentage,
"HealthCheckPort": health_check_port,
"HealthCheckProtocol": health_check_protocol,
"HealthCheckPath": health_check_path,
"HealthCheckIntervalSeconds": health_check_interval_seconds,
"ThresholdCount": threshold_count,
"PortOverrides": port_overrides
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ endpoint_group_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.globalaccelerator.endpoint_groups
WHERE
Identifier = '{{ endpoint_group_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the endpoint_groups resource, the following permissions are required:

globalaccelerator:CreateEndpointGroup,
globalaccelerator:DescribeEndpointGroup,
globalaccelerator:DescribeAccelerator,
globalaccelerator:DescribeListener,
globalaccelerator:ListAccelerators,
globalaccelerator:ListListeners