accelerator_attributes
Creates, updates, deletes, gets or lists an accelerator_attributes resource.
Overview
| Name | accelerator_attributes |
| Type | Resource |
| Id | aws.globalaccelerator.accelerator_attributes |
Fields
The following fields are returned by SELECT queries:
- describe_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 specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following: s3-bucket_name//AWSLogs/aws_account_id |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_accelerator_attributes | select | region | Describe the attributes of an accelerator. | |
update_accelerator_attributes | update | region, AcceleratorArn | Update the attributes for an 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_accelerator_attributes
Describe the attributes of an accelerator.
SELECT
flow_logs_enabled,
flow_logs_s3_bucket,
flow_logs_s3_prefix
FROM aws.globalaccelerator.accelerator_attributes
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- update_accelerator_attributes
Update the attributes for an accelerator.
UPDATE aws.globalaccelerator.accelerator_attributes
SET
AcceleratorArn = '{{ AcceleratorArn }}',
FlowLogsEnabled = {{ FlowLogsEnabled }},
FlowLogsS3Bucket = '{{ FlowLogsS3Bucket }}',
FlowLogsS3Prefix = '{{ FlowLogsS3Prefix }}'
WHERE
region = '{{ region }}' --required
AND AcceleratorArn = '{{ AcceleratorArn }}' --required
RETURNING
accelerator_attributes;