Show / Hide Table of Contents

Interface IUserAttributes

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

Inherited Members
IDatabaseOptions.Cluster
IDatabaseOptions.DatabaseName
IDatabaseOptions.AdminUser
Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public interface IUserAttributes : IDatabaseOptions
Syntax (vb)
Public Interface IUserAttributes
    Inherits IDatabaseOptions
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

Password

(experimental) The password of the user.

Username

(experimental) The name of the user.

Properties

Password

(experimental) The password of the user.

SecretValue Password { get; }
Property Value

SecretValue

Remarks

Do not put passwords in CDK code directly.

Stability: Experimental

Username

(experimental) The name of the user.

string Username { get; }
Property Value

System.String

Remarks

Stability: Experimental

Back to top Generated by DocFX