TableProps

class aws_cdk.aws_glue.TableProps(*, columns, database, data_format, table_name, bucket=None, compressed=None, description=None, encryption=None, encryption_key=None, partition_keys=None, s3_prefix=None, stored_as_sub_directories=None)

Bases: object

Parameters
  • columns (List[Column]) – (experimental) Columns of the table.

  • database (IDatabase) – (experimental) Database in which to store the table.

  • data_format (DataFormat) – (experimental) Storage type of the table’s data.

  • table_name (str) – (experimental) Name of the table.

  • bucket (Optional[IBucket]) – (experimental) S3 bucket in which to store data. Default: one is created for you

  • compressed (Optional[bool]) – (experimental) Indicates whether the table’s data is compressed or not. Default: false

  • description (Optional[str]) – (experimental) Description of the table. Default: generated

  • encryption (Optional[TableEncryption]) – (experimental) The kind of encryption to secure the data with. You can only provide this option if you are not explicitly passing in a bucket. If you choose SSE-KMS, you can provide an un-managed KMS key with encryptionKey. If you choose CSE-KMS, you must provide an un-managed KMS key with encryptionKey. Default: Unencrypted

  • encryption_key (Optional[IKey]) – (experimental) External KMS key to use for bucket encryption. The encryption property must be SSE-KMS or CSE-KMS. Default: key is managed by KMS.

  • partition_keys (Optional[List[Column]]) – (experimental) Partition columns of the table. Default: table is not partitioned

  • s3_prefix (Optional[str]) – (experimental) S3 prefix under which table objects are stored. Default: - No prefix. The data will be stored under the root of the bucket.

  • stored_as_sub_directories (Optional[bool]) – (experimental) Indicates whether the table data is stored in subdirectories. Default: false

Stability

experimental

Attributes

bucket

(experimental) S3 bucket in which to store data.

Default

one is created for you

Stability

experimental

Return type

Optional[IBucket]

columns

(experimental) Columns of the table.

Stability

experimental

Return type

List[Column]

compressed

(experimental) Indicates whether the table’s data is compressed or not.

Default

false

Stability

experimental

Return type

Optional[bool]

data_format

(experimental) Storage type of the table’s data.

Stability

experimental

Return type

DataFormat

database

(experimental) Database in which to store the table.

Stability

experimental

Return type

IDatabase

description

(experimental) Description of the table.

Default

generated

Stability

experimental

Return type

Optional[str]

encryption

(experimental) The kind of encryption to secure the data with.

You can only provide this option if you are not explicitly passing in a bucket.

If you choose SSE-KMS, you can provide an un-managed KMS key with encryptionKey. If you choose CSE-KMS, you must provide an un-managed KMS key with encryptionKey.

Default

Unencrypted

Stability

experimental

Return type

Optional[TableEncryption]

encryption_key

(experimental) External KMS key to use for bucket encryption.

The encryption property must be SSE-KMS or CSE-KMS.

Default

key is managed by KMS.

Stability

experimental

Return type

Optional[IKey]

partition_keys

(experimental) Partition columns of the table.

Default

table is not partitioned

Stability

experimental

Return type

Optional[List[Column]]

s3_prefix

(experimental) S3 prefix under which table objects are stored.

Default
  • No prefix. The data will be stored under the root of the bucket.

Stability

experimental

Return type

Optional[str]

stored_as_sub_directories

(experimental) Indicates whether the table data is stored in subdirectories.

Default

false

Stability

experimental

Return type

Optional[bool]

table_name

(experimental) Name of the table.

Stability

experimental

Return type

str