Skip to main content

accelerators

Creates, updates, deletes or gets an accelerator resource or lists accelerators in a region

Overview

Nameaccelerators
TypeResource
DescriptionResource Type definition for AWS::GlobalAccelerator::Accelerator
Idawscc.globalaccelerator.accelerators

Fields

NameDatatypeDescription
namestringName of accelerator.
ip_address_typestringIP Address type.
ip_addressesarrayThe IP addresses from BYOIP Prefix pool.
enabledbooleanIndicates whether an accelerator is enabled. The value is true or false.
dns_namestringThe Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static IPv4 addresses.
ipv4_addressesarrayThe IPv4 addresses assigned to the accelerator.
ipv6_addressesarrayThe IPv6 addresses assigned if the accelerator is dualstack
dual_stack_dns_namestringThe Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static IPv4 and IPv6 addresses.
accelerator_arnstringThe Amazon Resource Name (ARN) of the accelerator.
tagsarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceacceleratorsINSERTName, region
delete_resourceacceleratorsDELETEIdentifier, region
update_resourceacceleratorsUPDATEIdentifier, PatchDocument, region
list_resourcesaccelerators_list_onlySELECTregion
get_resourceacceleratorsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual accelerator.

SELECT
region,
name,
ip_address_type,
ip_addresses,
enabled,
dns_name,
ipv4_addresses,
ipv6_addresses,
dual_stack_dns_name,
accelerator_arn,
tags
FROM awscc.globalaccelerator.accelerators
WHERE
region = 'us-east-1' AND
Identifier = '{{ accelerator_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.globalaccelerator.accelerators (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.globalaccelerator.accelerators
SET PatchDocument = string('{{ {
"Name": name,
"IpAddressType": ip_address_type,
"IpAddresses": ip_addresses,
"Enabled": enabled,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ accelerator_arn }}';

DELETE example

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

Permissions

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

globalaccelerator:CreateAccelerator,
globalaccelerator:DescribeAccelerator,
globalaccelerator:TagResource