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.

CopyCommand

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

type CopyCommand struct { CopyOptions *string `type:"string"` DataTableColumns *string `type:"string"` DataTableName *string `min:"1" type:"string" required:"true"` }

Describes a COPY command for Amazon Redshift.

CopyOptions

Type: *string

Optional parameters to use with the Amazon Redshift COPY command. For more information, see the "Optional Parameters" section of Amazon Redshift COPY command (https://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html). Some possible examples that would apply to Kinesis Data Firehose are as follows:

delimiter '\t' lzop; - fields are delimited with "\t" (TAB character) and compressed using lzop.

delimiter '|' - fields are delimited with "|" (this is the default delimiter).

delimiter '|' escape - the delimiter should be escaped.

fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' - fields are fixed width in the source, with each width specified after every column in the table.

JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path specified is the format of the data.

For more examples, see Amazon Redshift COPY command examples (https://docs.aws.amazon.com/redshift/latest/dg/r_COPY_command_examples.html).

DataTableColumns

Type: *string

A comma-separated list of column names.

DataTableName

Type: *string

The name of the target table. The table must already exist in the database.

DataTableName is a required field

Method

GoString

func (s CopyCommand) GoString() string

GoString returns the string representation

SetCopyOptions

func (s *CopyCommand) SetCopyOptions(v string) *CopyCommand

SetCopyOptions sets the CopyOptions field's value.

SetDataTableColumns

func (s *CopyCommand) SetDataTableColumns(v string) *CopyCommand

SetDataTableColumns sets the DataTableColumns field's value.

SetDataTableName

func (s *CopyCommand) SetDataTableName(v string) *CopyCommand

SetDataTableName sets the DataTableName field's value.

String

func (s CopyCommand) String() string

String returns the string representation

Validate

func (s *CopyCommand) Validate() error

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

On this page: