Class TableBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.glue.alpha.TableBase
- All Implemented Interfaces:
IResource,ITable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
ExternalTable,S3Table
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:23.573Z")
@Stability(Experimental)
public abstract class TableBase
extends Resource
implements ITable
(experimental) A Glue table.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.glue.alpha.*; ITable tableBase = TableBase.fromTableArn(this, "MyTableBase", "tableArn");
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.alpha.ITable
ITable.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTableBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTableBase(software.amazon.jsii.JsiiObjectRef objRef) protectedTableBase(software.constructs.Construct scope, String id, TableBaseProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPartitionIndex(PartitionIndex index) (experimental) Add a partition index to the table.static ITablefromTableArn(software.constructs.Construct scope, String id, String tableArn) static ITablefromTableAttributes(software.constructs.Construct scope, String id, TableAttributes attrs) (experimental) Creates a Table construct that represents an external table.(experimental) This table's columns.(experimental) Indicates whether the table's data is compressed or not.(experimental) Database this table belongs to.(experimental) Format of this table's data files.(experimental) The tables' properties associated with the table.abstract List<PartitionIndex> (experimental) This table's partition keys if the table is partitioned.(experimental) The tables' storage descriptor properties.abstract Stringabstract Stringprotected abstract CfnTablegrant(IGrantable grantee, List<String> actions) (experimental) Grant the given identity custom permissions.abstract GrantgrantRead(IGrantable grantee) abstract GrantgrantReadWrite(IGrantable grantee) grantToUnderlyingResources(IGrantable grantee, List<String> actions) (experimental) Grant the given identity custom permissions to ALL underlying resources of the table.abstract GrantgrantWrite(IGrantable grantee) Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
TableBase
protected TableBase(software.amazon.jsii.JsiiObjectRef objRef) -
TableBase
protected TableBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
TableBase
@Stability(Experimental) protected TableBase(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TableBaseProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromTableArn
@Stability(Experimental) @NotNull public static ITable fromTableArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String tableArn) - Parameters:
scope- This parameter is required.id- This parameter is required.tableArn- This parameter is required.
-
fromTableAttributes
@Stability(Experimental) @NotNull public static ITable fromTableAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TableAttributes attrs) (experimental) Creates a Table construct that represents an external table.- Parameters:
scope- The scope creating construct (usuallythis). This parameter is required.id- The construct's id. This parameter is required.attrs- Import attributes. This parameter is required.
-
addPartitionIndex
(experimental) Add a partition index to the table.You can have a maximum of 3 partition indexes to a table. Partition index keys must be a subset of the table's partition keys.
- Parameters:
index- This parameter is required.- See Also:
-
grant
@Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull List<String> actions) (experimental) Grant the given identity custom permissions.- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantRead
- Parameters:
grantee- This parameter is required.
-
grantReadWrite
- Parameters:
grantee- This parameter is required.
-
grantToUnderlyingResources
@Stability(Experimental) @NotNull public Grant grantToUnderlyingResources(@NotNull IGrantable grantee, @NotNull List<String> actions) (experimental) Grant the given identity custom permissions to ALL underlying resources of the table.Permissions will be granted to the catalog, the database, and the table.
- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantWrite
- Parameters:
grantee- This parameter is required.
-
getColumns
(experimental) This table's columns. -
getCompressed
(experimental) Indicates whether the table's data is compressed or not. -
getDatabase
(experimental) Database this table belongs to. -
getDataFormat
(experimental) Format of this table's data files. -
getParameters
(experimental) The tables' properties associated with the table.- See Also:
-
getTableArn
- Specified by:
getTableArnin interfaceITable
-
getTableName
- Specified by:
getTableNamein interfaceITable
-
getTableResource
-
getPartitionIndexes
-
getPartitionKeys
(experimental) This table's partition keys if the table is partitioned. -
getStorageParameters
(experimental) The tables' storage descriptor properties.
-