Class TableAttributes
(experimental) A full specification of a Redshift table that can be used to import it fluently into the CDK application.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public class TableAttributes : Object, ITableAttributes
Syntax (vb)
Public Class TableAttributes
Inherits Object
Implements ITableAttributes
Remarks
Stability: Experimental
ExampleMetadata: fixture=cluster infused
Examples
var databaseName = "databaseName";
var username = "myuser";
var tableName = "mytable";
var user = User.FromUserAttributes(this, "User", new UserAttributes {
Username = username,
Password = SecretValue.UnsafePlainText("NOT_FOR_PRODUCTION"),
Cluster = cluster,
DatabaseName = databaseName
});
var table = Table.FromTableAttributes(this, "Table", new TableAttributes {
TableName = tableName,
TableColumns = new [] { new Column { Name = "col1", DataType = "varchar(4)" }, new Column { Name = "col2", DataType = "float" } },
Cluster = cluster,
DatabaseName = "databaseName"
});
table.Grant(user, TableAction.INSERT);
Synopsis
Constructors
Table |
Properties
Cluster | (experimental) The cluster where the table is located. |
Database |
(experimental) The name of the database where the table is located. |
Table |
(experimental) The columns of the table. |
Table |
(experimental) Name of the table. |
Constructors
TableAttributes()
public TableAttributes()
Properties
Cluster
(experimental) The cluster where the table is located.
public ICluster Cluster { get; set; }
Property Value
Remarks
Stability: Experimental
DatabaseName
(experimental) The name of the database where the table is located.
public string DatabaseName { get; set; }
Property Value
System.
Remarks
Stability: Experimental
TableColumns
(experimental) The columns of the table.
public IColumn[] TableColumns { get; set; }
Property Value
IColumn[]
Remarks
Stability: Experimental
TableName
(experimental) Name of the table.
public string TableName { get; set; }
Property Value
System.
Remarks
Stability: Experimental