Show / Hide Table of Contents

Class TableAttributes

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

Inheritance
object
TableAttributes
Implements
ITableAttributes
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public class TableAttributes : ITableAttributes
Syntax (vb)
Public Class TableAttributes 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

TableAttributes()

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

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.

Constructors

TableAttributes()

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

public TableAttributes()
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);

Properties

Cluster

(experimental) The cluster where the table is located.

public ICluster Cluster { get; set; }
Property Value

ICluster

Remarks

Stability: Experimental

DatabaseName

(experimental) The name of the database where the table is located.

public string DatabaseName { get; set; }
Property Value

string

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

string

Remarks

Stability: Experimental

Implements

ITableAttributes
Back to top Generated by DocFX