custom_routing_accelerators
Creates, updates, deletes, gets or lists a custom_routing_accelerators resource.
Overview
| Name | custom_routing_accelerators |
| Type | Resource |
| Id | aws.globalaccelerator.custom_routing_accelerators |
Fields
The following fields are returned by SELECT queries:
- describe_custom_routing_accelerator
- list_custom_routing_accelerators
| Name | Datatype | Description |
|---|---|---|
accelerator_arn | string | The Amazon Resource Name (ARN) of the custom routing accelerator. |
created_time | string (date-time) | The date and time that the accelerator was created. |
dns_name | string | The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses. The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com. If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses. For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide. |
enabled | boolean | Indicates whether the accelerator is enabled. The value is true or false. The default value is true. If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted. |
ip_address_type | string | The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4. (IPV4, DUAL_STACK) |
ip_sets | array | The static IP addresses that Global Accelerator associates with the accelerator. |
last_modified_time | string (date-time) | The date and time that the accelerator was last modified. |
name | string | The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen. |
status | string | Describes the deployment status of the accelerator. (DEPLOYED, IN_PROGRESS) |
| Name | Datatype | Description |
|---|---|---|
accelerator_arn | string | The Amazon Resource Name (ARN) of the custom routing accelerator. |
created_time | string (date-time) | The date and time that the accelerator was created. |
dns_name | string | The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses. The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com. If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses. For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide. |
enabled | boolean | Indicates whether the accelerator is enabled. The value is true or false. The default value is true. If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted. |
ip_address_type | string | The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4. (IPV4, DUAL_STACK) |
ip_sets | array | The static IP addresses that Global Accelerator associates with the accelerator. |
last_modified_time | string (date-time) | The date and time that the accelerator was last modified. |
name | string | The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen. |
status | string | Describes the deployment status of the accelerator. (DEPLOYED, IN_PROGRESS) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_custom_routing_accelerator | select | region | Describe a custom routing accelerator. | |
list_custom_routing_accelerators | select | region | List the custom routing accelerators for an Amazon Web Services account. | |
create_custom_routing_accelerator | insert | region, IdempotencyToken | Create a custom routing accelerator. A custom routing accelerator directs traffic to one of possibly thousands of Amazon EC2 instance destinations running in a single or multiple virtual private clouds (VPC) subnet endpoints. Be aware that, by default, all destination EC2 instances in a VPC subnet endpoint cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the AllowCustomRoutingTraffic operation. Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2 on Amazon Web Services CLI commands. | |
update_custom_routing_accelerator | update | region, AcceleratorArn | Update a custom routing accelerator. | |
delete_custom_routing_accelerator | delete | region | Delete a custom routing accelerator. Before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups). To disable the accelerator, update the accelerator to set Enabled to false. When you create a custom routing accelerator, by default, Global Accelerator provides you with a set of two static IP addresses. The IP addresses are assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to the accelerator, so you can no longer route traffic by using them. As a best practice, ensure that you have permissions in place to avoid inadvertently deleting accelerators. You can use IAM policies with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Identity and access management in the Global Accelerator Developer Guide. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_custom_routing_accelerator
- list_custom_routing_accelerators
Describe a custom routing accelerator.
SELECT
accelerator_arn,
created_time,
dns_name,
enabled,
ip_address_type,
ip_sets,
last_modified_time,
name,
status
FROM aws.globalaccelerator.custom_routing_accelerators
WHERE region = '{{ region }}' -- required
;
List the custom routing accelerators for an Amazon Web Services account.
SELECT
accelerator_arn,
created_time,
dns_name,
enabled,
ip_address_type,
ip_sets,
last_modified_time,
name,
status
FROM aws.globalaccelerator.custom_routing_accelerators
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_custom_routing_accelerator
- Manifest
Create a custom routing accelerator. A custom routing accelerator directs traffic to one of possibly thousands of Amazon EC2 instance destinations running in a single or multiple virtual private clouds (VPC) subnet endpoints. Be aware that, by default, all destination EC2 instances in a VPC subnet endpoint cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the AllowCustomRoutingTraffic operation. Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2 on Amazon Web Services CLI commands.
INSERT INTO aws.globalaccelerator.custom_routing_accelerators (
Name,
IpAddressType,
IpAddresses,
Enabled,
IdempotencyToken,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ IpAddressType }}',
'{{ IpAddresses }}',
{{ Enabled }},
'{{ IdempotencyToken }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
accelerator
;
# Description fields are for documentation purposes
- name: custom_routing_accelerators
props:
- name: region
value: "{{ region }}"
description: Required parameter for the custom_routing_accelerators resource.
- name: Name
value: "{{ Name }}"
description: |
The name of a custom routing accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
- name: IpAddressType
value: "{{ IpAddressType }}"
description: |
The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.
valid_values: ['IPV4', 'DUAL_STACK']
- name: IpAddresses
value:
- "{{ IpAddresses }}"
description: |
Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator. After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global Accelerator assigns each address range to a different network zone, for high availability. You can specify one or two addresses, separated by a space. Do not include the /32 suffix. Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses. For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
- name: Enabled
value: {{ Enabled }}
description: |
Indicates whether an accelerator is enabled. The value is true or false. The default value is true. If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.
- name: IdempotencyToken
value: "{{ IdempotencyToken }}"
description: |
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
- name: Tags
description: |
Create tags for an accelerator. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
value:
- Key: "{{ Key }}"
Value: "{{ Value }}"
UPDATE examples
- update_custom_routing_accelerator
Update a custom routing accelerator.
UPDATE aws.globalaccelerator.custom_routing_accelerators
SET
AcceleratorArn = '{{ AcceleratorArn }}',
Name = '{{ Name }}',
IpAddressType = '{{ IpAddressType }}',
IpAddresses = '{{ IpAddresses }}',
Enabled = {{ Enabled }}
WHERE
region = '{{ region }}' --required
AND AcceleratorArn = '{{ AcceleratorArn }}' --required
RETURNING
accelerator;
DELETE examples
- delete_custom_routing_accelerator
Delete a custom routing accelerator. Before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups). To disable the accelerator, update the accelerator to set Enabled to false. When you create a custom routing accelerator, by default, Global Accelerator provides you with a set of two static IP addresses. The IP addresses are assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to the accelerator, so you can no longer route traffic by using them. As a best practice, ensure that you have permissions in place to avoid inadvertently deleting accelerators. You can use IAM policies with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Identity and access management in the Global Accelerator Developer Guide.
DELETE FROM aws.globalaccelerator.custom_routing_accelerators
WHERE region = '{{ region }}' --required
;