GlobalAccelerator / Client / update_custom_routing_accelerator_attributes

update_custom_routing_accelerator_attributes#

GlobalAccelerator.Client.update_custom_routing_accelerator_attributes(**kwargs)#

Update the attributes for a custom routing accelerator.

See also: AWS API Documentation

Request Syntax

response = client.update_custom_routing_accelerator_attributes(
    AcceleratorArn='string',
    FlowLogsEnabled=True|False,
    FlowLogsS3Bucket='string',
    FlowLogsS3Prefix='string'
)
Parameters:
  • AcceleratorArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the custom routing accelerator to update attributes for.

  • FlowLogsEnabled (boolean) –

    Update 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.

  • FlowLogsS3Bucket (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.

  • FlowLogsS3Prefix (string) –

    Update 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

Return type:

dict

Returns:

Response Syntax

{
    'AcceleratorAttributes': {
        'FlowLogsEnabled': True|False,
        'FlowLogsS3Bucket': 'string',
        'FlowLogsS3Prefix': 'string'
    }
}

Response Structure

  • (dict) –

    • AcceleratorAttributes (dict) –

      Updated custom routing accelerator.

      • FlowLogsEnabled (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.

      • FlowLogsS3Bucket (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.

      • FlowLogsS3Prefix (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

Exceptions