Struct aws_sdk_firehose::model::CopyCommand [−][src]
#[non_exhaustive]pub struct CopyCommand {
pub data_table_name: Option<String>,
pub data_table_columns: Option<String>,
pub copy_options: Option<String>,
}Expand description
Describes a COPY command for Amazon Redshift.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_table_name: Option<String>The name of the target table. The table must already exist in the database.
data_table_columns: Option<String>A comma-separated list of column names.
copy_options: Option<String>Optional parameters to use with the Amazon Redshift COPY command. For
more information, see the "Optional Parameters" section of Amazon Redshift COPY command. 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.
Implementations
The name of the target table. The table must already exist in the database.
A comma-separated list of column names.
Optional parameters to use with the Amazon Redshift COPY command. For
more information, see the "Optional Parameters" section of Amazon Redshift COPY command. 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.
Creates a new builder-style object to manufacture CopyCommand
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for CopyCommand
impl Send for CopyCommand
impl Sync for CopyCommand
impl Unpin for CopyCommand
impl UnwindSafe for CopyCommand
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more