Skip to main content

custom_routing_accelerator_attributes

Creates, updates, deletes, gets or lists a custom_routing_accelerator_attributes resource.

Overview

Namecustom_routing_accelerator_attributes
TypeResource
Idaws.globalaccelerator.custom_routing_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 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:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_custom_routing_accelerator_attributesselectregionDescribe the attributes of a custom routing accelerator.
update_custom_routing_accelerator_attributesupdateregion, AcceleratorArnUpdate 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.

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

SELECT examples

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