Class ExternalTable
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.glue.alpha.TableBase
software.amazon.awscdk.services.glue.alpha.ExternalTable
- All Implemented Interfaces:
IResource,ITable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:23.498Z")
@Stability(Experimental)
public class ExternalTable
extends TableBase
(experimental) 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 ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forExternalTable.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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
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 TypeMethodDescription(experimental) The connection associated to this table.(experimental) This table's partition indexes.(experimental) ARN of this table.(experimental) Name of this table.protected CfnTablegrantRead(IGrantable grantee) (experimental) Grant read permissions to the table.grantReadWrite(IGrantable grantee) (experimental) Grant read and write permissions to the table.grantWrite(IGrantable grantee) (experimental) Grant write permissions to the table.Methods inherited from class software.amazon.awscdk.services.glue.alpha.TableBase
addPartitionIndex, fromTableArn, fromTableAttributes, getColumns, getCompressed, getDatabase, getDataFormat, getParameters, getPartitionKeys, getStorageParameters, grant, grantToUnderlyingResourcesMethods 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
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) 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(Experimental) 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
(experimental) Grant read permissions to the table. -
grantReadWrite
(experimental) Grant read and write permissions to the table.- Specified by:
grantReadWritein classTableBase- Parameters:
grantee- the principal. This parameter is required.
-
grantWrite
(experimental) Grant write permissions to the table.- Specified by:
grantWritein classTableBase- Parameters:
grantee- the principal. This parameter is required.
-
getConnection
(experimental) The connection associated to this table. -
getTableArn
(experimental) ARN of this table.- Specified by:
getTableArnin interfaceITable- Specified by:
getTableArnin classTableBase
-
getTableName
(experimental) Name of this table.- Specified by:
getTableNamein interfaceITable- Specified by:
getTableNamein classTableBase
-
getTableResource
- Specified by:
getTableResourcein classTableBase
-
getPartitionIndexes
(experimental) This table's partition indexes.- Specified by:
getPartitionIndexesin classTableBase
-