Column

class aws_cdk.aws_redshift.Column(*, data_type, name, dist_key=None, sort_key=None)

Bases: object

(experimental) A column in a Redshift table.

Parameters:
  • data_type (str) – (experimental) The data type of the column.

  • name (str) – (experimental) The name of the column.

  • dist_key (Optional[bool]) – (experimental) Boolean value that indicates whether the column is to be configured as DISTKEY. Default: - column is not DISTKEY

  • sort_key (Optional[bool]) – (experimental) Boolean value that indicates whether the column is to be configured as SORTKEY. Default: - column is not a SORTKEY

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_redshift as redshift

column = redshift.Column(
    data_type="dataType",
    name="name",

    # the properties below are optional
    dist_key=False,
    sort_key=False
)

Attributes

data_type

(experimental) The data type of the column.

Stability:

experimental

dist_key

(experimental) Boolean value that indicates whether the column is to be configured as DISTKEY.

Default:
  • column is not DISTKEY

Stability:

experimental

name

(experimental) The name of the column.

Stability:

experimental

sort_key

(experimental) Boolean value that indicates whether the column is to be configured as SORTKEY.

Default:
  • column is not a SORTKEY

Stability:

experimental