@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-09T19:25:26.087Z") @Stability(value=Experimental) public interface UserAttributes extends software.amazon.jsii.JsiiSerializable, DatabaseOptions
Example:
String databaseName = "databaseName";
String username = "myuser";
String tableName = "mytable";
IUser user = User.fromUserAttributes(this, "User", UserAttributes.builder()
.username(username)
.password(SecretValue.plainText("NOT_FOR_PRODUCTION"))
.cluster(cluster)
.databaseName(databaseName)
.build());
ITable table = Table.fromTableAttributes(this, "Table", TableAttributes.builder()
.tableName(tableName)
.tableColumns(List.of(Column.builder().name("col1").dataType("varchar(4)").build(), Column.builder().name("col2").dataType("float").build()))
.cluster(cluster)
.databaseName("databaseName")
.build());
table.grant(user, TableAction.INSERT);
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserAttributes.Builder
A builder for
UserAttributes |
static class |
UserAttributes.Jsii$Proxy
An implementation for
UserAttributes |
| Modifier and Type | Method and Description |
|---|---|
static UserAttributes.Builder |
builder() |
SecretValue |
getPassword()
(experimental) The password of the user.
|
String |
getUsername()
(experimental) The name of the user.
|
getAdminUser, getCluster, getDatabaseName@Stability(value=Experimental) @NotNull SecretValue getPassword()
Do not put passwords in CDK code directly.
@Stability(value=Experimental) @NotNull String getUsername()
@Stability(value=Experimental) static UserAttributes.Builder builder()
builder in interface DatabaseOptionsUserAttributes.Builder of UserAttributesCopyright © 2022. All rights reserved.