custom_routing_accelerator_attributes
Creates, updates, deletes, gets or lists a custom_routing_accelerator_attributes resource.
Overview
| Name | custom_routing_accelerator_attributes |
| Type | Resource |
| Id | aws.globalaccelerator.custom_routing_accelerator_attributes |
Fields
The following fields are returned by SELECT queries:
- describe_custom_routing_accelerator_attributes
| Name | Datatype | Description |
|---|---|---|
flow_logs_enabled | boolean | Indicates whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket and FlowLogsS3Prefix must be specified. For more information, see Flow logs in the Global Accelerator Developer Guide. |
flow_logs_s3_bucket | string | The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is true. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket. |
flow_logs_s3_prefix | string | The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is true. If you don’t specify a prefix, the flow logs are stored in the root of the bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following: DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_custom_routing_accelerator_attributes | select | region | Describe the attributes of a custom routing accelerator. | |
update_custom_routing_accelerator_attributes | update | region, AcceleratorArn | Update the attributes for a custom routing accelerator. |
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_attributes
Describe the attributes of a custom routing accelerator.
SELECT
flow_logs_enabled,
flow_logs_s3_bucket,
flow_logs_s3_prefix
FROM aws.globalaccelerator.custom_routing_accelerator_attributes
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- update_custom_routing_accelerator_attributes
Update the attributes for a custom routing accelerator.
UPDATE aws.globalaccelerator.custom_routing_accelerator_attributes
SET
AcceleratorArn = '{{ AcceleratorArn }}',
FlowLogsEnabled = {{ FlowLogsEnabled }},
FlowLogsS3Bucket = '{{ FlowLogsS3Bucket }}',
FlowLogsS3Prefix = '{{ FlowLogsS3Prefix }}'
WHERE
region = '{{ region }}' --required
AND AcceleratorArn = '{{ AcceleratorArn }}' --required
RETURNING
accelerator_attributes;