@aws-cdk_aws-redshift-alpha.TableAttributes

interface TableAttributes ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Redshift.Alpha.TableAttributes
Gogithub.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#TableAttributes
Javasoftware.amazon.awscdk.services.redshift.alpha.TableAttributes
Pythonaws_cdk.aws_redshift_alpha.TableAttributes
TypeScript (source)@aws-cdk/aws-redshift-alpha ยป TableAttributes

A full specification of a Redshift table that can be used to import it fluently into the CDK application.

Example

const databaseName = 'databaseName';
const username = 'myuser'
const tableName = 'mytable'

const user = User.fromUserAttributes(this, 'User', {
  username: username,
  password: SecretValue.unsafePlainText('NOT_FOR_PRODUCTION'),
  cluster: cluster,
  databaseName: databaseName,
});
const table = Table.fromTableAttributes(this, 'Table', {
  tableName: tableName,
  tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],
  cluster: cluster,
  databaseName: 'databaseName',
});
table.grant(user, TableAction.INSERT);

Properties

NameTypeDescription
cluster๐Ÿ”นIClusterThe cluster where the table is located.
databaseName๐Ÿ”นstringThe name of the database where the table is located.
tableColumns๐Ÿ”นColumn[]The columns of the table.
tableName๐Ÿ”นstringName of the table.

cluster๐Ÿ”น

Type: ICluster

The cluster where the table is located.


databaseName๐Ÿ”น

Type: string

The name of the database where the table is located.


tableColumns๐Ÿ”น

Type: Column[]

The columns of the table.


tableName๐Ÿ”น

Type: string

Name of the table.