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.104.0 (build e79254c)",
date="2024-10-31T19:13:07.918Z")
@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 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
S3Table
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
S3Table
(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 ifencryption
is set toCSE-KMS
orSSE-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 CfnTable
grantRead
(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, 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
-
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:
grantReadWrite
in 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:
grantWrite
in 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:
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
-
getEncryptionKey
(experimental) The KMS key used to secure the data ifencryption
is set toCSE-KMS
orSSE-KMS
.Otherwise,
undefined
. -
getPartitionIndexes
(experimental) This table's partition indexes.- Specified by:
getPartitionIndexes
in classTableBase
-