java.lang.Object
java.lang.Enum<TableAction>
software.amazon.awscdk.services.redshift.alpha.TableAction
All Implemented Interfaces:
Serializable, Comparable<TableAction>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:26.094Z") @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 Constants
    Enum Constant
    Description
    (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 Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static TableAction[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SELECT

      @Stability(Experimental) public static final TableAction SELECT
      (experimental) Grants privilege to select data from a table or view using a SELECT statement.
    • INSERT

      @Stability(Experimental) public static final TableAction INSERT
      (experimental) Grants privilege to load data into a table using an INSERT statement or a COPY statement.
    • UPDATE

      @Stability(Experimental) public static final TableAction UPDATE
      (experimental) Grants privilege to update a table column using an UPDATE statement.
    • DELETE

      @Stability(Experimental) public static final TableAction DELETE
      (experimental) Grants privilege to delete a data row from a table.
    • DROP

      @Stability(Experimental) public static final TableAction DROP
      (experimental) Grants privilege to drop a table.
    • REFERENCES

      @Stability(Experimental) public static final TableAction 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

      @Stability(Experimental) public static final TableAction ALL
      (experimental) Grants all available privileges at once to the specified user or user group.
  • Method Details

    • values

      public static TableAction[] 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

      public static TableAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null