Skip to content

S3  >  Structures  >  CSVOutput

CSVOutput

Structure Class

CSVOutput dataclass

Bases: _SerdeShape

Describes how uncompressed comma-separated values (CSV)-formatted results are formatted.

Attributes

field_delimiter class-attribute instance-attribute
field_delimiter: str | None = ...

The value used to separate individual fields in a record. You can specify an arbitrary delimiter.

quote_character class-attribute instance-attribute
quote_character: str | None = ...

A single character used for escaping when the field delimiter is part of the value. For example, if the value is a, b, Amazon S3 wraps this field value in quotation marks, as follows: " a , b ".

quote_escape_character class-attribute instance-attribute
quote_escape_character: str | None = ...

The single character used for escaping the quote character inside an already escaped value.

quote_fields class-attribute instance-attribute
quote_fields: str | None = ...

Indicates whether to use quotation marks around output fields.

  • ALWAYS: Always use quotation marks for output fields.

  • ASNEEDED: Use quotation marks for output fields when needed.

record_delimiter class-attribute instance-attribute
record_delimiter: str | None = ...

A single character used to separate individual records in the output. Instead of the default value, you can specify an arbitrary delimiter.