Class S3Table
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.S3Table
- All Implemented Interfaces:
IResource,ITable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
Table
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:23.538Z")
@Stability(Experimental)
public class S3Table
extends TableBase
(experimental) A Glue table that targets a S3 dataset.
Example:
Database myDatabase;
S3Table.Builder.create(this, "MyTable")
.database(myDatabase)
.columns(List.of(Column.builder()
.name("col1")
.type(Schema.STRING)
.build()))
.partitionKeys(List.of(Column.builder()
.name("year")
.type(Schema.SMALL_INT)
.build(), Column.builder()
.name("month")
.type(Schema.SMALL_INT)
.build()))
.dataFormat(DataFormat.JSON)
.enablePartitionFiltering(true)
.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.alpha.ITable
ITable.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedS3Table(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedS3Table(software.amazon.jsii.JsiiObjectRef objRef) S3Table(software.constructs.Construct scope, String id, S3TableProps props) -
Method Summary
Modifier and TypeMethodDescriptionprotected String(experimental) S3 bucket in which the table's data resides.(experimental) The type of encryption enabled for the table.(experimental) The KMS key used to secure the data ifencryptionis set toCSE-KMSorSSE-KMS.(experimental) This table's partition indexes.(experimental) S3 Key Prefix under which this table's files are stored in S3.(experimental) ARN of this table.(experimental) Name of this table.protected CfnTablegrantRead(IGrantable grantee) (experimental) Grant read permissions to the table and the underlying data stored in S3 to an IAM principal.grantReadWrite(IGrantable grantee) (experimental) Grant read and write permissions to the table and the underlying data stored in S3 to an IAM principal.grantWrite(IGrantable grantee) (experimental) Grant write permissions to the table and the underlying data stored in S3 to an IAM principal.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
-
S3Table
protected S3Table(software.amazon.jsii.JsiiObjectRef objRef) -
S3Table
protected S3Table(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3Table
@Stability(Experimental) public S3Table(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull S3TableProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
generateS3PrefixForGrant
-
grantRead
(experimental) Grant read permissions to the table and the underlying data stored in S3 to an IAM principal. -
grantReadWrite
(experimental) Grant read and write permissions to the table and the underlying data stored in S3 to an IAM principal.- Specified by:
grantReadWritein classTableBase- Parameters:
grantee- the principal. This parameter is required.
-
grantWrite
(experimental) Grant write permissions to the table and the underlying data stored in S3 to an IAM principal.- Specified by:
grantWritein classTableBase- Parameters:
grantee- the principal. This parameter is required.
-
getBucket
(experimental) S3 bucket in which the table's data resides. -
getEncryption
(experimental) The type of encryption enabled for the table. -
getS3Prefix
(experimental) S3 Key Prefix under which this table's files are stored in S3. -
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
-
getEncryptionKey
(experimental) The KMS key used to secure the data ifencryptionis set toCSE-KMSorSSE-KMS.Otherwise,
undefined. -
getPartitionIndexes
(experimental) This table's partition indexes.- Specified by:
getPartitionIndexesin classTableBase
-