software.amazon.awscdk.services.redshift.alpha.TableAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-alpha Show documentation
Show all versions of redshift-alpha Show documentation
The CDK Construct Library for AWS::Redshift
package software.amazon.awscdk.services.redshift.alpha;
/**
* (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);
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-24T10:56:42.320Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.redshift.alpha.$Module.class, fqn = "@aws-cdk/aws-redshift-alpha.TableAction")
public enum TableAction {
/**
* (experimental) Grants privilege to select data from a table or view using a SELECT statement.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
SELECT,
/**
* (experimental) Grants privilege to load data into a table using an INSERT statement or a COPY statement.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
INSERT,
/**
* (experimental) Grants privilege to update a table column using an UPDATE statement.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
UPDATE,
/**
* (experimental) Grants privilege to delete a data row from a table.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
DELETE,
/**
* (experimental) Grants privilege to drop a table.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
DROP,
/**
* (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.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
REFERENCES,
/**
* (experimental) Grants all available privileges at once to the specified user or user group.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
ALL,
}