Interface ITableAttributes
(experimental) A full specification of a Redshift table that can be used to import it fluently into the CDK application.
Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public interface ITableAttributes
Syntax (vb)
Public Interface 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
Properties
Cluster | (experimental) The cluster where the table is located. |
DatabaseName | (experimental) The name of the database where the table is located. |
TableColumns | (experimental) The columns of the table. |
TableName | (experimental) Name of the table. |
Properties
Cluster
(experimental) The cluster where the table is located.
ICluster Cluster { get; }
Property Value
Remarks
Stability: Experimental
DatabaseName
(experimental) The name of the database where the table is located.
string DatabaseName { get; }
Property Value
System.String
Remarks
Stability: Experimental
TableColumns
(experimental) The columns of the table.
IColumn[] TableColumns { get; }
Property Value
IColumn[]
Remarks
Stability: Experimental
TableName
(experimental) Name of the table.
string TableName { get; }
Property Value
System.String
Remarks
Stability: Experimental