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

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

DELETE example

/*+ delete */
DELETE FROM awscc.globalaccelerator.accelerators
WHERE
Identifier = '{{ accelerator_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 accelerators resource, the following permissions are required:

globalaccelerator:CreateAccelerator,
globalaccelerator:DescribeAccelerator,
globalaccelerator:TagResource