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.

AccessLog

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

type AccessLog struct { EmitInterval *int64 `type:"integer"` Enabled *bool `type:"boolean" required:"true"` S3BucketName *string `type:"string"` S3BucketPrefix *string `type:"string"` }

Information about the AccessLog attribute.

EmitInterval

Type: *int64

The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.

Default: 60 minutes

Enabled

Type: *bool

Specifies whether access logs are enabled for the load balancer.

Enabled is a required field

S3BucketName

Type: *string

The name of the Amazon S3 bucket where the access logs are stored.

S3BucketPrefix

Type: *string

The logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod. If the prefix is not provided, the log is placed at the root level of the bucket.

Method

GoString

func (s AccessLog) GoString() string

GoString returns the string representation

SetEmitInterval

func (s *AccessLog) SetEmitInterval(v int64) *AccessLog

SetEmitInterval sets the EmitInterval field's value.

SetEnabled

func (s *AccessLog) SetEnabled(v bool) *AccessLog

SetEnabled sets the Enabled field's value.

SetS3BucketName

func (s *AccessLog) SetS3BucketName(v string) *AccessLog

SetS3BucketName sets the S3BucketName field's value.

SetS3BucketPrefix

func (s *AccessLog) SetS3BucketPrefix(v string) *AccessLog

SetS3BucketPrefix sets the S3BucketPrefix field's value.

String

func (s AccessLog) String() string

String returns the string representation

Validate

func (s *AccessLog) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: