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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.globalaccelerator.endpoint_groups
WHERE
Identifier = '{{ endpoint_group_arn }}' AND
region = 'us-east-1'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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