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.104.0 (build e79254c)",
date="2024-11-06T23:25:18.954Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.alpha.ITable
ITable.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
TableBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
TableBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
TableBase
(software.constructs.Construct scope, String id, TableBaseProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPartitionIndex
(PartitionIndex index) (experimental) Add a partition index to the table.static ITable
fromTableArn
(software.constructs.Construct scope, String id, String tableArn) static ITable
fromTableAttributes
(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 String
abstract String
protected abstract CfnTable
grant
(IGrantable grantee, List<String> actions) (experimental) Grant the given identity custom permissions.abstract Grant
grantRead
(IGrantable grantee) abstract Grant
grantReadWrite
(IGrantable grantee) grantToUnderlyingResources
(IGrantable grantee, List<String> actions) (experimental) Grant the given identity custom permissions to ALL underlying resources of the table.abstract Grant
grantWrite
(IGrantable grantee) Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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:
getTableArn
in interfaceITable
-
getTableName
- Specified by:
getTableName
in interfaceITable
-
getTableResource
-
getPartitionIndexes
-
getPartitionKeys
(experimental) This table's partition keys if the table is partitioned. -
getStorageParameters
(experimental) The tables' storage descriptor properties.
-