Enum TableAction
- All Implemented Interfaces:
Serializable
,Comparable<TableAction>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:02:12.443Z")
@Stability(Experimental)
public enum TableAction
extends Enum<TableAction>
(experimental) An action that a Redshift user can be granted privilege to perform on a table.
Example:
String databaseName = "databaseName"; String username = "myuser"; String tableName = "mytable"; User user = User.Builder.create(this, "User") .username(username) .cluster(cluster) .databaseName(databaseName) .build(); Table table = Table.Builder.create(this, "Table") .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);
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) Grants all available privileges at once to the specified user or user group.(experimental) Grants privilege to delete a data row from a table.(experimental) Grants privilege to drop a table.(experimental) Grants privilege to load data into a table using an INSERT statement or a COPY statement.(experimental) Grants privilege to create a foreign key constraint.(experimental) Grants privilege to select data from a table or view using a SELECT statement.(experimental) Grants privilege to update a table column using an UPDATE statement. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableAction
Returns the enum constant of this type with the specified name.static TableAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SELECT
(experimental) Grants privilege to select data from a table or view using a SELECT statement. -
INSERT
(experimental) Grants privilege to load data into a table using an INSERT statement or a COPY statement. -
UPDATE
(experimental) Grants privilege to update a table column using an UPDATE statement. -
DELETE
(experimental) Grants privilege to delete a data row from a table. -
DROP
(experimental) Grants privilege to drop a table. -
REFERENCES
(experimental) 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
(experimental) Grants all available privileges at once to the specified user or user group.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-