Skip to main content

accelerator_attributes

Creates, updates, deletes, gets or lists an accelerator_attributes resource.

Overview

Nameaccelerator_attributes
TypeResource
Idaws.globalaccelerator.accelerator_attributes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
flow_logs_enabledbooleanIndicates 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_bucketstringThe 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_prefixstringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_accelerator_attributesselectregionDescribe the attributes of an accelerator.
update_accelerator_attributesupdateregion, AcceleratorArnUpdate 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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 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;