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.104.0 (build e79254c)",
date="2024-11-21T06:34:18.116Z")
@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
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forExternalTable
.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
ExternalTable
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ExternalTable
(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 CfnTable
grantRead
(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, grantToUnderlyingResources
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
-
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:
grantReadWrite
in classTableBase
- Parameters:
grantee
- the principal. This parameter is required.
-
grantWrite
(experimental) Grant write permissions to the table.- Specified by:
grantWrite
in 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:
getTableArn
in interfaceITable
- Specified by:
getTableArn
in classTableBase
-
getTableName
(experimental) Name of this table.- Specified by:
getTableName
in interfaceITable
- Specified by:
getTableName
in classTableBase
-
getTableResource
- Specified by:
getTableResource
in classTableBase
-
getPartitionIndexes
(experimental) This table's partition indexes.- Specified by:
getPartitionIndexes
in classTableBase
-