Skip to content
v2.273.0

TableAction Enum ​

An action that a Redshift user can be granted privilege to perform on a table.

Example ​

ts
const databaseName = 'databaseName';
const username = 'myuser'
const tableName = 'mytable'

const user = new User(this, 'User', {
  username: username,
  cluster: cluster,
  databaseName: databaseName,
});
const table = new Table(this, 'Table', {
  tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],
  cluster: cluster,
  databaseName: databaseName,
});
table.grant(user, TableAction.INSERT);

Members ​

MemberDescription
SELECTGrants privilege to select data from a table or view using a SELECT statement.
INSERTGrants privilege to load data into a table using an INSERT statement or a COPY statement.
UPDATEGrants privilege to update a table column using an UPDATE statement.
DELETEGrants privilege to delete a data row from a table.
DROPGrants privilege to drop a table.
REFERENCESGrants privilege to create a foreign key constraint.
ALLGrants all available privileges at once to the specified user or user group.