interface Column
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Redshift.Column |
Java | software.amazon.awscdk.services.redshift.Column |
Python | aws_cdk.aws_redshift.Column |
TypeScript (source) | @aws-cdk/aws-redshift » Column |
A column in a Redshift table.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as redshift from '@aws-cdk/aws-redshift';
const column: redshift.Column = {
dataType: 'dataType',
name: 'name',
// the properties below are optional
distKey: false,
sortKey: false,
};
Properties
Name | Type | Description |
---|---|---|
data | string | The data type of the column. |
name | string | The name of the column. |
dist | boolean | Boolean value that indicates whether the column is to be configured as DISTKEY. |
sort | boolean | Boolean value that indicates whether the column is to be configured as SORTKEY. |
dataType
Type:
string
The data type of the column.
name
Type:
string
The name of the column.
distKey?
Type:
boolean
(optional, default: column is not DISTKEY)
Boolean value that indicates whether the column is to be configured as DISTKEY.
sortKey?
Type:
boolean
(optional, default: column is not a SORTKEY)
Boolean value that indicates whether the column is to be configured as SORTKEY.