AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

AcceleratorAttributes

import "github.com/aws/aws-sdk-go/service/globalaccelerator"

type AcceleratorAttributes struct { FlowLogsEnabled *bool `type:"boolean"` FlowLogsS3Bucket *string `type:"string"` FlowLogsS3Prefix *string `type:"string"` }

Attributes of an accelerator.

FlowLogsEnabled

Type: *bool

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 (https://docs.aws.amazon.com/global-accelerator/latest/dg/monitoring-global-accelerator.flow-logs.html) in the AWS Global Accelerator Developer Guide.

FlowLogsS3Bucket

Type: *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 AWS Global Accelerator permission to write to the bucket.

FlowLogsS3Prefix

Type: *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.

Method

GoString

func (s AcceleratorAttributes) GoString() string

GoString returns the string representation

SetFlowLogsEnabled

func (s *AcceleratorAttributes) SetFlowLogsEnabled(v bool) *AcceleratorAttributes

SetFlowLogsEnabled sets the FlowLogsEnabled field's value.

SetFlowLogsS3Bucket

func (s *AcceleratorAttributes) SetFlowLogsS3Bucket(v string) *AcceleratorAttributes

SetFlowLogsS3Bucket sets the FlowLogsS3Bucket field's value.

SetFlowLogsS3Prefix

func (s *AcceleratorAttributes) SetFlowLogsS3Prefix(v string) *AcceleratorAttributes

SetFlowLogsS3Prefix sets the FlowLogsS3Prefix field's value.

String

func (s AcceleratorAttributes) String() string

String returns the string representation

On this page: