Class ExternalTable
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.glue.TableBase
software.amazon.awscdk.services.glue.ExternalTable
- All Implemented Interfaces:
IEnvironmentAware,IResource,ITable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-17T14:54:05.044Z")
@Stability(Stable)
public class ExternalTable
extends TableBase
A Glue table that targets an external data location (e.g. A table in a Redshift Cluster).
Example:
Connection myConnection;
Database myDatabase;
ExternalTable.Builder.create(this, "MyTable")
.connection(myConnection)
.externalDataLocation("default_db_public_example") // A table in Redshift
// ...
.database(myDatabase)
.columns(List.of(Column.builder()
.name("col1")
.type(Schema.STRING)
.build()))
.dataFormat(DataFormat.JSON)
.build();
-
Nested Class Summary
Nested ClassesNested 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.ITable
ITable.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExternalTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedExternalTable(software.amazon.jsii.JsiiObjectRef objRef) ExternalTable(software.constructs.Construct scope, String id, ExternalTableProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe connection associated to this table.This table's partition indexes.ARN of this table.Name of this table.protected CfnTablegrantRead(IGrantable grantee) Grant read permissions to the table [disable-awslint:no-grants].grantReadWrite(IGrantable grantee) Grant read and write permissions to the table [disable-awslint:no-grants].grantWrite(IGrantable grantee) Grant write permissions to the table [disable-awslint:no-grants].Methods inherited from class software.amazon.awscdk.services.glue.TableBase
addPartitionIndex, fromTableArn, fromTableAttributes, getColumns, getCompressed, getDatabase, getDataFormat, getHasEncryptedData, getParameters, getPartitionKeys, getPartitionProjection, getStorageParameters, grant, grantToUnderlyingResourcesMethods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods 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
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
ExternalTable
protected ExternalTable(software.amazon.jsii.JsiiObjectRef objRef) -
ExternalTable
protected ExternalTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ExternalTable
@Stability(Stable) public ExternalTable(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ExternalTableProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
grantRead
Grant read permissions to the table [disable-awslint:no-grants]. -
grantReadWrite
Grant read and write permissions to the table [disable-awslint:no-grants].- Specified by:
grantReadWritein classTableBase- Parameters:
grantee- the principal. This parameter is required.
-
grantWrite
Grant write permissions to the table [disable-awslint:no-grants].- Specified by:
grantWritein classTableBase- Parameters:
grantee- the principal. This parameter is required.
-
getConnection
The connection associated to this table. -
getTableArn
ARN of this table.- Specified by:
getTableArnin interfaceITable- Specified by:
getTableArnin classTableBase
-
getTableName
Name of this table.- Specified by:
getTableNamein interfaceITable- Specified by:
getTableNamein classTableBase
-
getTableResource
- Specified by:
getTableResourcein classTableBase
-
getPartitionIndexes
This table's partition indexes.- Specified by:
getPartitionIndexesin classTableBase
-