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.

EnableLoggingInput

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

type EnableLoggingInput struct { BucketName *string `type:"string" required:"true"` ClusterIdentifier *string `type:"string" required:"true"` S3KeyPrefix *string `type:"string"` }

BucketName

Type: *string

The name of an existing S3 bucket where the log files are to be stored.

Constraints:

  • Must be in the same region as the cluster

  • The cluster must have read bucket and put object permissions

BucketName is a required field

ClusterIdentifier

Type: *string

The identifier of the cluster on which logging is to be started.

Example: examplecluster

ClusterIdentifier is a required field

S3KeyPrefix

Type: *string

The prefix applied to the log file names.

Constraints:

  • Cannot exceed 512 characters

  • Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash

(\), or control characters. The hexadecimal codes for invalid characters are:

x00 to x20

x22

x27

x5c

x7f or larger

Method

GoString

func (s EnableLoggingInput) GoString() string

GoString returns the string representation

SetBucketName

func (s *EnableLoggingInput) SetBucketName(v string) *EnableLoggingInput

SetBucketName sets the BucketName field's value.

SetClusterIdentifier

func (s *EnableLoggingInput) SetClusterIdentifier(v string) *EnableLoggingInput

SetClusterIdentifier sets the ClusterIdentifier field's value.

SetS3KeyPrefix

func (s *EnableLoggingInput) SetS3KeyPrefix(v string) *EnableLoggingInput

SetS3KeyPrefix sets the S3KeyPrefix field's value.

String

func (s EnableLoggingInput) String() string

String returns the string representation

Validate

func (s *EnableLoggingInput) Validate() error

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

On this page: