@aws-cdk_aws-redshift-alpha.TableAction

enum TableAction ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Redshift.Alpha.TableAction
Gogithub.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#TableAction
Javasoftware.amazon.awscdk.services.redshift.alpha.TableAction
Pythonaws_cdk.aws_redshift_alpha.TableAction
TypeScript (source)@aws-cdk/aws-redshift-alpha ยป TableAction

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

Example

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

NameDescription
SELECT ๐Ÿ”นGrants privilege to select data from a table or view using a SELECT statement.
INSERT ๐Ÿ”นGrants privilege to load data into a table using an INSERT statement or a COPY statement.
UPDATE ๐Ÿ”นGrants privilege to update a table column using an UPDATE statement.
DELETE ๐Ÿ”นGrants privilege to delete a data row from a table.
DROP ๐Ÿ”นGrants privilege to drop a table.
REFERENCES ๐Ÿ”นGrants privilege to create a foreign key constraint.
ALL ๐Ÿ”นGrants all available privileges at once to the specified user or user group.

SELECT ๐Ÿ”น

Grants privilege to select data from a table or view using a SELECT statement.


INSERT ๐Ÿ”น

Grants privilege to load data into a table using an INSERT statement or a COPY statement.


UPDATE ๐Ÿ”น

Grants privilege to update a table column using an UPDATE statement.


DELETE ๐Ÿ”น

Grants privilege to delete a data row from a table.


DROP ๐Ÿ”น

Grants privilege to drop a table.


REFERENCES ๐Ÿ”น

Grants privilege to create a foreign key constraint.

You need to grant this privilege on both the referenced table and the referencing table; otherwise, the user can't create the constraint.


ALL ๐Ÿ”น

Grants all available privileges at once to the specified user or user group.