@aws-cdk/aws-glue-alpha 2.39.0-alpha.0 → 2.41.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "aws-cdk-lib": "^2.39.0",
11
+ "aws-cdk-lib": "^2.41.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -3024,7 +3024,7 @@
3024
3024
  "stability": "experimental"
3025
3025
  },
3026
3026
  "homepage": "https://github.com/aws/aws-cdk",
3027
- "jsiiVersion": "1.65.0 (build 7a02b7f)",
3027
+ "jsiiVersion": "1.67.0 (build 2c027f5)",
3028
3028
  "keywords": [
3029
3029
  "aws",
3030
3030
  "cdk",
@@ -3045,7 +3045,7 @@
3045
3045
  },
3046
3046
  "name": "@aws-cdk/aws-glue-alpha",
3047
3047
  "readme": {
3048
- "markdown": "# AWS Glue Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.\n\n## Job\n\nA `Job` encapsulates a script that connects to data sources, processes them, and then writes output to a data target.\n\nThere are 3 types of jobs supported by AWS Glue: Spark ETL, Spark Streaming, and Python Shell jobs.\n\nThe `glue.JobExecutable` allows you to specify the type of job, the language to use and the code assets required by the job.\n\n`glue.Code` allows you to refer to the different code assets required by the job, either from an existing S3 location or from a local file path.\n\n### Spark Jobs\n\nThese jobs run in an Apache Spark environment managed by AWS Glue.\n\n#### ETL Jobs\n\nAn ETL job processes data in batches using Apache Spark.\n\n```ts\ndeclare const bucket: s3.Bucket;\nnew glue.Job(this, 'ScalaSparkEtlJob', {\n executable: glue.JobExecutable.scalaEtl({\n glueVersion: glue.GlueVersion.V2_0,\n script: glue.Code.fromBucket(bucket, 'src/com/example/HelloWorld.scala'),\n className: 'com.example.HelloWorld',\n extraJars: [glue.Code.fromBucket(bucket, 'jars/HelloWorld.jar')],\n }),\n description: 'an example Scala ETL job',\n});\n```\n\n#### Streaming Jobs\n\nA Streaming job is similar to an ETL job, except that it performs ETL on data streams. It uses the Apache Spark Structured Streaming framework. Some Spark job features are not available to streaming ETL jobs.\n\n```ts\nnew glue.Job(this, 'PythonSparkStreamingJob', {\n executable: glue.JobExecutable.pythonStreaming({\n glueVersion: glue.GlueVersion.V2_0,\n pythonVersion: glue.PythonVersion.THREE,\n script: glue.Code.fromAsset(path.join(__dirname, 'job-script/hello_world.py')),\n }),\n description: 'an example Python Streaming job',\n});\n```\n\n### Python Shell Jobs\n\nA Python shell job runs Python scripts as a shell and supports a Python version that depends on the AWS Glue version you are using.\nThis can be used to schedule and run tasks that don't require an Apache Spark environment.\n\n```ts\ndeclare const bucket: s3.Bucket;\nnew glue.Job(this, 'PythonShellJob', {\n executable: glue.JobExecutable.pythonShell({\n glueVersion: glue.GlueVersion.V1_0,\n pythonVersion: glue.PythonVersion.THREE,\n script: glue.Code.fromBucket(bucket, 'script.py'),\n }),\n description: 'an example Python Shell job',\n});\n```\n\nSee [documentation](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) for more information on adding jobs in Glue.\n\n## Connection\n\nA `Connection` allows Glue jobs, crawlers and development endpoints to access certain types of data stores. For example, to create a network connection to connect to a data source within a VPC:\n\n```ts\ndeclare const securityGroup: ec2.SecurityGroup;\ndeclare const subnet: ec2.Subnet;\nnew glue.Connection(this, 'MyConnection', {\n type: glue.ConnectionType.NETWORK,\n // The security groups granting AWS Glue inbound access to the data source within the VPC\n securityGroups: [securityGroup],\n // The VPC subnet which contains the data source\n subnet,\n});\n```\n\nIf you need to use a connection type that doesn't exist as a static member on `ConnectionType`, you can instantiate a `ConnectionType` object, e.g: `new glue.ConnectionType('NEW_TYPE')`.\n\nSee [Adding a Connection to Your Data Store](https://docs.aws.amazon.com/glue/latest/dg/populate-add-connection.html) and [Connection Structure](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-connections.html#aws-glue-api-catalog-connections-Connection) documentation for more information on the supported data stores and their configurations.\n\n## SecurityConfiguration\n\nA `SecurityConfiguration` is a set of security properties that can be used by AWS Glue to encrypt data at rest.\n\n```ts\nnew glue.SecurityConfiguration(this, 'MySecurityConfiguration', {\n securityConfigurationName: 'name',\n cloudWatchEncryption: {\n mode: glue.CloudWatchEncryptionMode.KMS,\n },\n jobBookmarksEncryption: {\n mode: glue.JobBookmarksEncryptionMode.CLIENT_SIDE_KMS,\n },\n s3Encryption: {\n mode: glue.S3EncryptionMode.KMS,\n },\n});\n```\n\nBy default, a shared KMS key is created for use with the encryption configurations that require one. You can also supply your own key for each encryption config, for example, for CloudWatch encryption:\n\n```ts\ndeclare const key: kms.Key;\nnew glue.SecurityConfiguration(this, 'MySecurityConfiguration', {\n securityConfigurationName: 'name',\n cloudWatchEncryption: {\n mode: glue.CloudWatchEncryptionMode.KMS,\n kmsKey: key,\n },\n});\n```\n\nSee [documentation](https://docs.aws.amazon.com/glue/latest/dg/encryption-security-configuration.html) for more info for Glue encrypting data written by Crawlers, Jobs, and Development Endpoints.\n\n## Database\n\nA `Database` is a logical grouping of `Tables` in the Glue Catalog.\n\n```ts\nnew glue.Database(this, 'MyDatabase', {\n databaseName: 'my_database',\n});\n```\n\n## Table\n\nA Glue table describes a table of data in S3: its structure (column names and types), location of data (S3 objects with a common prefix in a S3 bucket), and format for the files (Json, Avro, Parquet, etc.):\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }, {\n name: 'col2',\n type: glue.Schema.array(glue.Schema.STRING),\n comment: 'col2 is an array of strings' // comment is optional\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\nBy default, a S3 bucket will be created to store the table's data but you can manually pass the `bucket` and `s3Prefix`:\n\n```ts\ndeclare const myBucket: s3.Bucket;\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n bucket: myBucket,\n s3Prefix: 'my-table/',\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\nBy default, an S3 bucket will be created to store the table's data and stored in the bucket root. You can also manually pass the `bucket` and `s3Prefix`:\n\n### Partition Keys\n\nTo improve query performance, a table can specify `partitionKeys` on which data is stored and queried separately. For example, you might partition a table by `year` and `month` to optimize queries based on a time window:\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n partitionKeys: [{\n name: 'year',\n type: glue.Schema.SMALL_INT,\n }, {\n name: 'month',\n type: glue.Schema.SMALL_INT,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n### Partition Indexes\n\nAnother way to improve query performance is to specify partition indexes. If no partition indexes are\npresent on the table, AWS Glue loads all partitions of the table and filters the loaded partitions using\nthe query expression. The query takes more time to run as the number of partitions increase. With an\nindex, the query will try to fetch a subset of the partitions instead of loading all partitions of the\ntable.\n\nThe keys of a partition index must be a subset of the partition keys of the table. You can have a\nmaximum of 3 partition indexes per table. To specify a partition index, you can use the `partitionIndexes`\nproperty:\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n partitionKeys: [{\n name: 'year',\n type: glue.Schema.SMALL_INT,\n }, {\n name: 'month',\n type: glue.Schema.SMALL_INT,\n }],\n partitionIndexes: [{\n indexName: 'my-index', // optional\n keyNames: ['year'],\n }], // supply up to 3 indexes\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\nAlternatively, you can call the `addPartitionIndex()` function on a table:\n\n```ts\ndeclare const myTable: glue.Table;\nmyTable.addPartitionIndex({\n indexName: 'my-index',\n keyNames: ['year'],\n});\n```\n\n### Partition Filtering\n\nIf you have a table with a large number of partitions that grows over time, consider using AWS Glue partition indexing and filtering.\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n partitionKeys: [{\n name: 'year',\n type: glue.Schema.SMALL_INT,\n }, {\n name: 'month',\n type: glue.Schema.SMALL_INT,\n }],\n dataFormat: glue.DataFormat.JSON,\n enablePartitionFiltering: true,\n});\n```\n\n## [Encryption](https://docs.aws.amazon.com/athena/latest/ug/encryption.html)\n\nYou can enable encryption on a Table's data:\n\n* `Unencrypted` - files are not encrypted. The default encryption setting.\n* [S3Managed](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) - Server side encryption (`SSE-S3`) with an Amazon S3-managed key.\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.S3_MANAGED,\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n* [Kms](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) - Server-side encryption (`SSE-KMS`) with an AWS KMS Key managed by the account owner.\n\n```ts\ndeclare const myDatabase: glue.Database;\n// KMS key is created automatically\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.KMS,\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n\n// with an explicit KMS key\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.KMS,\n encryptionKey: new kms.Key(this, 'MyKey'),\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n* [KmsManaged](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) - Server-side encryption (`SSE-KMS`), like `Kms`, except with an AWS KMS Key managed by the AWS Key Management Service.\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.KMS_MANAGED,\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n* [ClientSideKms](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html#client-side-encryption-kms-managed-master-key-intro) - Client-side encryption (`CSE-KMS`) with an AWS KMS Key managed by the account owner.\n\n```ts\ndeclare const myDatabase: glue.Database;\n// KMS key is created automatically\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.CLIENT_SIDE_KMS,\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n\n// with an explicit KMS key\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.CLIENT_SIDE_KMS,\n encryptionKey: new kms.Key(this, 'MyKey'),\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n*Note: you cannot provide a `Bucket` when creating the `Table` if you wish to use server-side encryption (`KMS`, `KMS_MANAGED` or `S3_MANAGED`)*.\n\n## Types\n\nA table's schema is a collection of columns, each of which have a `name` and a `type`. Types are recursive structures, consisting of primitive and complex types:\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n columns: [{\n name: 'primitive_column',\n type: glue.Schema.STRING,\n }, {\n name: 'array_column',\n type: glue.Schema.array(glue.Schema.INTEGER),\n comment: 'array<integer>',\n }, {\n name: 'map_column',\n type: glue.Schema.map(\n glue.Schema.STRING,\n glue.Schema.TIMESTAMP),\n comment: 'map<string,string>',\n }, {\n name: 'struct_column',\n type: glue.Schema.struct([{\n name: 'nested_column',\n type: glue.Schema.DATE,\n comment: 'nested comment',\n }]),\n comment: \"struct<nested_column:date COMMENT 'nested comment'>\",\n }],\n // ...\n database: myDatabase,\n tableName: 'my_table',\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n### Primitives\n\n#### Numeric\n\n| Name \t| Type \t| Comments |\n|-----------\t|----------\t|------------------------------------------------------------------------------------------------------------------\t|\n| FLOAT \t| Constant \t| A 32-bit single-precision floating point number |\n| INTEGER \t| Constant \t| A 32-bit signed value in two's complement format, with a minimum value of -2^31 and a maximum value of 2^31-1 \t|\n| DOUBLE \t| Constant \t| A 64-bit double-precision floating point number |\n| BIG_INT \t| Constant \t| A 64-bit signed INTEGER in two’s complement format, with a minimum value of -2^63 and a maximum value of 2^63 -1 |\n| SMALL_INT \t| Constant \t| A 16-bit signed INTEGER in two’s complement format, with a minimum value of -2^15 and a maximum value of 2^15-1 |\n| TINY_INT \t| Constant \t| A 8-bit signed INTEGER in two’s complement format, with a minimum value of -2^7 and a maximum value of 2^7-1 |\n\n#### Date and time\n\n| Name \t| Type \t| Comments \t|\n|-----------\t|----------\t|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------\t|\n| DATE \t| Constant \t| A date in UNIX format, such as YYYY-MM-DD. \t|\n| TIMESTAMP \t| Constant \t| Date and time instant in the UNiX format, such as yyyy-mm-dd hh:mm:ss[.f...]. For example, TIMESTAMP '2008-09-15 03:04:05.324'. This format uses the session time zone. \t|\n\n#### String\n\n| Name \t| Type \t| Comments \t|\n|--------------------------------------------\t|----------\t|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\t|\n| STRING \t| Constant \t| A string literal enclosed in single or double quotes \t|\n| decimal(precision: number, scale?: number) \t| Function \t| `precision` is the total number of digits. `scale` (optional) is the number of digits in fractional part with a default of 0. For example, use these type definitions: decimal(11,5), decimal(15) \t|\n| char(length: number) \t| Function \t| Fixed length character data, with a specified length between 1 and 255, such as char(10) \t|\n| varchar(length: number) \t| Function \t| Variable length character data, with a specified length between 1 and 65535, such as varchar(10) \t|\n\n#### Miscellaneous\n\n| Name \t| Type \t| Comments \t|\n|---------\t|----------\t|-------------------------------\t|\n| BOOLEAN \t| Constant \t| Values are `true` and `false` \t|\n| BINARY \t| Constant \t| Value is in binary \t|\n\n### Complex\n\n| Name \t| Type \t| Comments \t|\n|-------------------------------------\t|----------\t|-------------------------------------------------------------------\t|\n| array(itemType: Type) \t| Function \t| An array of some other type \t|\n| map(keyType: Type, valueType: Type) \t| Function \t| A map of some primitive key type to any value type \t|\n| struct(collumns: Column[]) \t| Function \t| Nested structure containing individually named and typed collumns \t|\n"
3048
+ "markdown": "# AWS Glue Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.\n\n## Job\n\nA `Job` encapsulates a script that connects to data sources, processes them, and then writes output to a data target.\n\nThere are 3 types of jobs supported by AWS Glue: Spark ETL, Spark Streaming, and Python Shell jobs.\n\nThe `glue.JobExecutable` allows you to specify the type of job, the language to use and the code assets required by the job.\n\n`glue.Code` allows you to refer to the different code assets required by the job, either from an existing S3 location or from a local file path.\n\n### Spark Jobs\n\nThese jobs run in an Apache Spark environment managed by AWS Glue.\n\n#### ETL Jobs\n\nAn ETL job processes data in batches using Apache Spark.\n\n```ts\ndeclare const bucket: s3.Bucket;\nnew glue.Job(this, 'ScalaSparkEtlJob', {\n executable: glue.JobExecutable.scalaEtl({\n glueVersion: glue.GlueVersion.V2_0,\n script: glue.Code.fromBucket(bucket, 'src/com/example/HelloWorld.scala'),\n className: 'com.example.HelloWorld',\n extraJars: [glue.Code.fromBucket(bucket, 'jars/HelloWorld.jar')],\n }),\n description: 'an example Scala ETL job',\n});\n```\n\n#### Streaming Jobs\n\nA Streaming job is similar to an ETL job, except that it performs ETL on data streams. It uses the Apache Spark Structured Streaming framework. Some Spark job features are not available to streaming ETL jobs.\n\n```ts\nnew glue.Job(this, 'PythonSparkStreamingJob', {\n executable: glue.JobExecutable.pythonStreaming({\n glueVersion: glue.GlueVersion.V2_0,\n pythonVersion: glue.PythonVersion.THREE,\n script: glue.Code.fromAsset(path.join(__dirname, 'job-script/hello_world.py')),\n }),\n description: 'an example Python Streaming job',\n});\n```\n\n### Python Shell Jobs\n\nA Python shell job runs Python scripts as a shell and supports a Python version that depends on the AWS Glue version you are using.\nThis can be used to schedule and run tasks that don't require an Apache Spark environment. Currently, three flavors are supported:\n\n* PythonVersion.TWO (2.7; EOL)\n* PythonVersion.THREE (3.6)\n* PythonVersion.THREE_NINE (3.9)\n\n```ts\ndeclare const bucket: s3.Bucket;\nnew glue.Job(this, 'PythonShellJob', {\n executable: glue.JobExecutable.pythonShell({\n glueVersion: glue.GlueVersion.V1_0,\n pythonVersion: glue.PythonVersion.THREE,\n script: glue.Code.fromBucket(bucket, 'script.py'),\n }),\n description: 'an example Python Shell job',\n});\n```\n\nSee [documentation](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) for more information on adding jobs in Glue.\n\n## Connection\n\nA `Connection` allows Glue jobs, crawlers and development endpoints to access certain types of data stores. For example, to create a network connection to connect to a data source within a VPC:\n\n```ts\ndeclare const securityGroup: ec2.SecurityGroup;\ndeclare const subnet: ec2.Subnet;\nnew glue.Connection(this, 'MyConnection', {\n type: glue.ConnectionType.NETWORK,\n // The security groups granting AWS Glue inbound access to the data source within the VPC\n securityGroups: [securityGroup],\n // The VPC subnet which contains the data source\n subnet,\n});\n```\n\nFor RDS `Connection` by JDBC, it is recommended to manage credentials using AWS Secrets Manager. To use Secret, specify `SECRET_ID` in `properties` like the following code. Note that in this case, the subnet must have a route to the AWS Secrets Manager VPC endpoint or to the AWS Secrets Manager endpoint through a NAT gateway.\n\n```ts\ndeclare const securityGroup: ec2.SecurityGroup;\ndeclare const subnet: ec2.Subnet;\ndeclare const db: rds.DatabaseCluster;\nnew glue.Connection(this, \"RdsConnection\", {\n type: glue.ConnectionType.JDBC,\n securityGroups: [securityGroup],\n subnet,\n properties: {\n JDBC_CONNECTION_URL: `jdbc:mysql://${db.clusterEndpoint.socketAddress}/databasename`,\n JDBC_ENFORCE_SSL: \"false\",\n SECRET_ID: db.secret!.secretName,\n },\n});\n```\n\nIf you need to use a connection type that doesn't exist as a static member on `ConnectionType`, you can instantiate a `ConnectionType` object, e.g: `new glue.ConnectionType('NEW_TYPE')`.\n\nSee [Adding a Connection to Your Data Store](https://docs.aws.amazon.com/glue/latest/dg/populate-add-connection.html) and [Connection Structure](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-connections.html#aws-glue-api-catalog-connections-Connection) documentation for more information on the supported data stores and their configurations.\n\n## SecurityConfiguration\n\nA `SecurityConfiguration` is a set of security properties that can be used by AWS Glue to encrypt data at rest.\n\n```ts\nnew glue.SecurityConfiguration(this, 'MySecurityConfiguration', {\n securityConfigurationName: 'name',\n cloudWatchEncryption: {\n mode: glue.CloudWatchEncryptionMode.KMS,\n },\n jobBookmarksEncryption: {\n mode: glue.JobBookmarksEncryptionMode.CLIENT_SIDE_KMS,\n },\n s3Encryption: {\n mode: glue.S3EncryptionMode.KMS,\n },\n});\n```\n\nBy default, a shared KMS key is created for use with the encryption configurations that require one. You can also supply your own key for each encryption config, for example, for CloudWatch encryption:\n\n```ts\ndeclare const key: kms.Key;\nnew glue.SecurityConfiguration(this, 'MySecurityConfiguration', {\n securityConfigurationName: 'name',\n cloudWatchEncryption: {\n mode: glue.CloudWatchEncryptionMode.KMS,\n kmsKey: key,\n },\n});\n```\n\nSee [documentation](https://docs.aws.amazon.com/glue/latest/dg/encryption-security-configuration.html) for more info for Glue encrypting data written by Crawlers, Jobs, and Development Endpoints.\n\n## Database\n\nA `Database` is a logical grouping of `Tables` in the Glue Catalog.\n\n```ts\nnew glue.Database(this, 'MyDatabase', {\n databaseName: 'my_database',\n});\n```\n\n## Table\n\nA Glue table describes a table of data in S3: its structure (column names and types), location of data (S3 objects with a common prefix in a S3 bucket), and format for the files (Json, Avro, Parquet, etc.):\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }, {\n name: 'col2',\n type: glue.Schema.array(glue.Schema.STRING),\n comment: 'col2 is an array of strings' // comment is optional\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\nBy default, a S3 bucket will be created to store the table's data but you can manually pass the `bucket` and `s3Prefix`:\n\n```ts\ndeclare const myBucket: s3.Bucket;\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n bucket: myBucket,\n s3Prefix: 'my-table/',\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\nBy default, an S3 bucket will be created to store the table's data and stored in the bucket root. You can also manually pass the `bucket` and `s3Prefix`:\n\n### Partition Keys\n\nTo improve query performance, a table can specify `partitionKeys` on which data is stored and queried separately. For example, you might partition a table by `year` and `month` to optimize queries based on a time window:\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n partitionKeys: [{\n name: 'year',\n type: glue.Schema.SMALL_INT,\n }, {\n name: 'month',\n type: glue.Schema.SMALL_INT,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n### Partition Indexes\n\nAnother way to improve query performance is to specify partition indexes. If no partition indexes are\npresent on the table, AWS Glue loads all partitions of the table and filters the loaded partitions using\nthe query expression. The query takes more time to run as the number of partitions increase. With an\nindex, the query will try to fetch a subset of the partitions instead of loading all partitions of the\ntable.\n\nThe keys of a partition index must be a subset of the partition keys of the table. You can have a\nmaximum of 3 partition indexes per table. To specify a partition index, you can use the `partitionIndexes`\nproperty:\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n partitionKeys: [{\n name: 'year',\n type: glue.Schema.SMALL_INT,\n }, {\n name: 'month',\n type: glue.Schema.SMALL_INT,\n }],\n partitionIndexes: [{\n indexName: 'my-index', // optional\n keyNames: ['year'],\n }], // supply up to 3 indexes\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\nAlternatively, you can call the `addPartitionIndex()` function on a table:\n\n```ts\ndeclare const myTable: glue.Table;\nmyTable.addPartitionIndex({\n indexName: 'my-index',\n keyNames: ['year'],\n});\n```\n\n### Partition Filtering\n\nIf you have a table with a large number of partitions that grows over time, consider using AWS Glue partition indexing and filtering.\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n partitionKeys: [{\n name: 'year',\n type: glue.Schema.SMALL_INT,\n }, {\n name: 'month',\n type: glue.Schema.SMALL_INT,\n }],\n dataFormat: glue.DataFormat.JSON,\n enablePartitionFiltering: true,\n});\n```\n\n## [Encryption](https://docs.aws.amazon.com/athena/latest/ug/encryption.html)\n\nYou can enable encryption on a Table's data:\n\n* `Unencrypted` - files are not encrypted. The default encryption setting.\n* [S3Managed](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) - Server side encryption (`SSE-S3`) with an Amazon S3-managed key.\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.S3_MANAGED,\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n* [Kms](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) - Server-side encryption (`SSE-KMS`) with an AWS KMS Key managed by the account owner.\n\n```ts\ndeclare const myDatabase: glue.Database;\n// KMS key is created automatically\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.KMS,\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n\n// with an explicit KMS key\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.KMS,\n encryptionKey: new kms.Key(this, 'MyKey'),\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n* [KmsManaged](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) - Server-side encryption (`SSE-KMS`), like `Kms`, except with an AWS KMS Key managed by the AWS Key Management Service.\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.KMS_MANAGED,\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n* [ClientSideKms](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html#client-side-encryption-kms-managed-master-key-intro) - Client-side encryption (`CSE-KMS`) with an AWS KMS Key managed by the account owner.\n\n```ts\ndeclare const myDatabase: glue.Database;\n// KMS key is created automatically\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.CLIENT_SIDE_KMS,\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n\n// with an explicit KMS key\nnew glue.Table(this, 'MyTable', {\n encryption: glue.TableEncryption.CLIENT_SIDE_KMS,\n encryptionKey: new kms.Key(this, 'MyKey'),\n // ...\n database: myDatabase,\n tableName: 'my_table',\n columns: [{\n name: 'col1',\n type: glue.Schema.STRING,\n }],\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n*Note: you cannot provide a `Bucket` when creating the `Table` if you wish to use server-side encryption (`KMS`, `KMS_MANAGED` or `S3_MANAGED`)*.\n\n## Types\n\nA table's schema is a collection of columns, each of which have a `name` and a `type`. Types are recursive structures, consisting of primitive and complex types:\n\n```ts\ndeclare const myDatabase: glue.Database;\nnew glue.Table(this, 'MyTable', {\n columns: [{\n name: 'primitive_column',\n type: glue.Schema.STRING,\n }, {\n name: 'array_column',\n type: glue.Schema.array(glue.Schema.INTEGER),\n comment: 'array<integer>',\n }, {\n name: 'map_column',\n type: glue.Schema.map(\n glue.Schema.STRING,\n glue.Schema.TIMESTAMP),\n comment: 'map<string,string>',\n }, {\n name: 'struct_column',\n type: glue.Schema.struct([{\n name: 'nested_column',\n type: glue.Schema.DATE,\n comment: 'nested comment',\n }]),\n comment: \"struct<nested_column:date COMMENT 'nested comment'>\",\n }],\n // ...\n database: myDatabase,\n tableName: 'my_table',\n dataFormat: glue.DataFormat.JSON,\n});\n```\n\n### Primitives\n\n#### Numeric\n\n| Name \t| Type \t| Comments |\n|-----------\t|----------\t|------------------------------------------------------------------------------------------------------------------\t|\n| FLOAT \t| Constant \t| A 32-bit single-precision floating point number |\n| INTEGER \t| Constant \t| A 32-bit signed value in two's complement format, with a minimum value of -2^31 and a maximum value of 2^31-1 \t|\n| DOUBLE \t| Constant \t| A 64-bit double-precision floating point number |\n| BIG_INT \t| Constant \t| A 64-bit signed INTEGER in two’s complement format, with a minimum value of -2^63 and a maximum value of 2^63 -1 |\n| SMALL_INT \t| Constant \t| A 16-bit signed INTEGER in two’s complement format, with a minimum value of -2^15 and a maximum value of 2^15-1 |\n| TINY_INT \t| Constant \t| A 8-bit signed INTEGER in two’s complement format, with a minimum value of -2^7 and a maximum value of 2^7-1 |\n\n#### Date and time\n\n| Name \t| Type \t| Comments \t|\n|-----------\t|----------\t|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------\t|\n| DATE \t| Constant \t| A date in UNIX format, such as YYYY-MM-DD. \t|\n| TIMESTAMP \t| Constant \t| Date and time instant in the UNiX format, such as yyyy-mm-dd hh:mm:ss[.f...]. For example, TIMESTAMP '2008-09-15 03:04:05.324'. This format uses the session time zone. \t|\n\n#### String\n\n| Name \t| Type \t| Comments \t|\n|--------------------------------------------\t|----------\t|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\t|\n| STRING \t| Constant \t| A string literal enclosed in single or double quotes \t|\n| decimal(precision: number, scale?: number) \t| Function \t| `precision` is the total number of digits. `scale` (optional) is the number of digits in fractional part with a default of 0. For example, use these type definitions: decimal(11,5), decimal(15) \t|\n| char(length: number) \t| Function \t| Fixed length character data, with a specified length between 1 and 255, such as char(10) \t|\n| varchar(length: number) \t| Function \t| Variable length character data, with a specified length between 1 and 65535, such as varchar(10) \t|\n\n#### Miscellaneous\n\n| Name \t| Type \t| Comments \t|\n|---------\t|----------\t|-------------------------------\t|\n| BOOLEAN \t| Constant \t| Values are `true` and `false` \t|\n| BINARY \t| Constant \t| Value is in binary \t|\n\n### Complex\n\n| Name \t| Type \t| Comments \t|\n|-------------------------------------\t|----------\t|-------------------------------------------------------------------\t|\n| array(itemType: Type) \t| Function \t| An array of some other type \t|\n| map(keyType: Type, valueType: Type) \t| Function \t| A map of some primitive key type to any value type \t|\n| struct(collumns: Column[]) \t| Function \t| Nested structure containing individually named and typed collumns \t|\n"
3049
3049
  },
3050
3050
  "repository": {
3051
3051
  "directory": "packages/individual-packages/aws-glue",
@@ -6423,7 +6423,7 @@
6423
6423
  "kind": "class",
6424
6424
  "locationInModule": {
6425
6425
  "filename": "lib/job-executable.ts",
6426
- "line": 207
6426
+ "line": 212
6427
6427
  },
6428
6428
  "methods": [
6429
6429
  {
@@ -6433,7 +6433,7 @@
6433
6433
  },
6434
6434
  "locationInModule": {
6435
6435
  "filename": "lib/job-executable.ts",
6436
- "line": 279
6436
+ "line": 284
6437
6437
  },
6438
6438
  "name": "of",
6439
6439
  "parameters": [
@@ -6461,7 +6461,7 @@
6461
6461
  },
6462
6462
  "locationInModule": {
6463
6463
  "filename": "lib/job-executable.ts",
6464
- "line": 240
6464
+ "line": 245
6465
6465
  },
6466
6466
  "name": "pythonEtl",
6467
6467
  "parameters": [
@@ -6489,7 +6489,7 @@
6489
6489
  },
6490
6490
  "locationInModule": {
6491
6491
  "filename": "lib/job-executable.ts",
6492
- "line": 266
6492
+ "line": 271
6493
6493
  },
6494
6494
  "name": "pythonShell",
6495
6495
  "parameters": [
@@ -6517,7 +6517,7 @@
6517
6517
  },
6518
6518
  "locationInModule": {
6519
6519
  "filename": "lib/job-executable.ts",
6520
- "line": 253
6520
+ "line": 258
6521
6521
  },
6522
6522
  "name": "pythonStreaming",
6523
6523
  "parameters": [
@@ -6545,7 +6545,7 @@
6545
6545
  },
6546
6546
  "locationInModule": {
6547
6547
  "filename": "lib/job-executable.ts",
6548
- "line": 214
6548
+ "line": 219
6549
6549
  },
6550
6550
  "name": "scalaEtl",
6551
6551
  "parameters": [
@@ -6573,7 +6573,7 @@
6573
6573
  },
6574
6574
  "locationInModule": {
6575
6575
  "filename": "lib/job-executable.ts",
6576
- "line": 227
6576
+ "line": 232
6577
6577
  },
6578
6578
  "name": "scalaStreaming",
6579
6579
  "parameters": [
@@ -6601,7 +6601,7 @@
6601
6601
  },
6602
6602
  "locationInModule": {
6603
6603
  "filename": "lib/job-executable.ts",
6604
- "line": 309
6604
+ "line": 317
6605
6605
  },
6606
6606
  "name": "bind",
6607
6607
  "returns": {
@@ -6629,7 +6629,7 @@
6629
6629
  "kind": "interface",
6630
6630
  "locationInModule": {
6631
6631
  "filename": "lib/job-executable.ts",
6632
- "line": 317
6632
+ "line": 325
6633
6633
  },
6634
6634
  "name": "JobExecutableConfig",
6635
6635
  "properties": [
@@ -6643,7 +6643,7 @@
6643
6643
  "immutable": true,
6644
6644
  "locationInModule": {
6645
6645
  "filename": "lib/job-executable.ts",
6646
- "line": 323
6646
+ "line": 331
6647
6647
  },
6648
6648
  "name": "glueVersion",
6649
6649
  "type": {
@@ -6660,7 +6660,7 @@
6660
6660
  "immutable": true,
6661
6661
  "locationInModule": {
6662
6662
  "filename": "lib/job-executable.ts",
6663
- "line": 330
6663
+ "line": 338
6664
6664
  },
6665
6665
  "name": "language",
6666
6666
  "type": {
@@ -6676,7 +6676,7 @@
6676
6676
  "immutable": true,
6677
6677
  "locationInModule": {
6678
6678
  "filename": "lib/job-executable.ts",
6679
- "line": 347
6679
+ "line": 355
6680
6680
  },
6681
6681
  "name": "script",
6682
6682
  "type": {
@@ -6692,7 +6692,7 @@
6692
6692
  "immutable": true,
6693
6693
  "locationInModule": {
6694
6694
  "filename": "lib/job-executable.ts",
6695
- "line": 335
6695
+ "line": 343
6696
6696
  },
6697
6697
  "name": "type",
6698
6698
  "type": {
@@ -6711,7 +6711,7 @@
6711
6711
  "immutable": true,
6712
6712
  "locationInModule": {
6713
6713
  "filename": "lib/job-executable.ts",
6714
- "line": 356
6714
+ "line": 364
6715
6715
  },
6716
6716
  "name": "className",
6717
6717
  "optional": true,
@@ -6730,7 +6730,7 @@
6730
6730
  "immutable": true,
6731
6731
  "locationInModule": {
6732
6732
  "filename": "lib/job-executable.ts",
6733
- "line": 383
6733
+ "line": 391
6734
6734
  },
6735
6735
  "name": "extraFiles",
6736
6736
  "optional": true,
@@ -6754,7 +6754,7 @@
6754
6754
  "immutable": true,
6755
6755
  "locationInModule": {
6756
6756
  "filename": "lib/job-executable.ts",
6757
- "line": 365
6757
+ "line": 373
6758
6758
  },
6759
6759
  "name": "extraJars",
6760
6760
  "optional": true,
@@ -6778,7 +6778,7 @@
6778
6778
  "immutable": true,
6779
6779
  "locationInModule": {
6780
6780
  "filename": "lib/job-executable.ts",
6781
- "line": 392
6781
+ "line": 400
6782
6782
  },
6783
6783
  "name": "extraJarsFirst",
6784
6784
  "optional": true,
@@ -6797,7 +6797,7 @@
6797
6797
  "immutable": true,
6798
6798
  "locationInModule": {
6799
6799
  "filename": "lib/job-executable.ts",
6800
- "line": 374
6800
+ "line": 382
6801
6801
  },
6802
6802
  "name": "extraPythonFiles",
6803
6803
  "optional": true,
@@ -6820,7 +6820,7 @@
6820
6820
  "immutable": true,
6821
6821
  "locationInModule": {
6822
6822
  "filename": "lib/job-executable.ts",
6823
- "line": 342
6823
+ "line": 350
6824
6824
  },
6825
6825
  "name": "pythonVersion",
6826
6826
  "optional": true,
@@ -7312,7 +7312,7 @@
7312
7312
  "kind": "class",
7313
7313
  "locationInModule": {
7314
7314
  "filename": "lib/job-executable.ts",
7315
- "line": 86
7315
+ "line": 91
7316
7316
  },
7317
7317
  "methods": [
7318
7318
  {
@@ -7322,7 +7322,7 @@
7322
7322
  },
7323
7323
  "locationInModule": {
7324
7324
  "filename": "lib/job-executable.ts",
7325
- "line": 106
7325
+ "line": 111
7326
7326
  },
7327
7327
  "name": "of",
7328
7328
  "parameters": [
@@ -7355,7 +7355,7 @@
7355
7355
  "immutable": true,
7356
7356
  "locationInModule": {
7357
7357
  "filename": "lib/job-executable.ts",
7358
- "line": 90
7358
+ "line": 95
7359
7359
  },
7360
7360
  "name": "ETL",
7361
7361
  "static": true,
@@ -7372,7 +7372,7 @@
7372
7372
  "immutable": true,
7373
7373
  "locationInModule": {
7374
7374
  "filename": "lib/job-executable.ts",
7375
- "line": 100
7375
+ "line": 105
7376
7376
  },
7377
7377
  "name": "PYTHON_SHELL",
7378
7378
  "static": true,
@@ -7389,7 +7389,7 @@
7389
7389
  "immutable": true,
7390
7390
  "locationInModule": {
7391
7391
  "filename": "lib/job-executable.ts",
7392
- "line": 95
7392
+ "line": 100
7393
7393
  },
7394
7394
  "name": "STREAMING",
7395
7395
  "static": true,
@@ -7405,7 +7405,7 @@
7405
7405
  "immutable": true,
7406
7406
  "locationInModule": {
7407
7407
  "filename": "lib/job-executable.ts",
7408
- "line": 113
7408
+ "line": 118
7409
7409
  },
7410
7410
  "name": "name",
7411
7411
  "type": {
@@ -7648,7 +7648,7 @@
7648
7648
  "kind": "interface",
7649
7649
  "locationInModule": {
7650
7650
  "filename": "lib/job-executable.ts",
7651
- "line": 202
7651
+ "line": 207
7652
7652
  },
7653
7653
  "name": "PythonShellExecutableProps",
7654
7654
  "properties": [
@@ -7662,7 +7662,7 @@
7662
7662
  "immutable": true,
7663
7663
  "locationInModule": {
7664
7664
  "filename": "lib/job-executable.ts",
7665
- "line": 143
7665
+ "line": 148
7666
7666
  },
7667
7667
  "name": "glueVersion",
7668
7668
  "type": {
@@ -7678,7 +7678,7 @@
7678
7678
  "immutable": true,
7679
7679
  "locationInModule": {
7680
7680
  "filename": "lib/job-executable.ts",
7681
- "line": 124
7681
+ "line": 129
7682
7682
  },
7683
7683
  "name": "pythonVersion",
7684
7684
  "type": {
@@ -7694,7 +7694,7 @@
7694
7694
  "immutable": true,
7695
7695
  "locationInModule": {
7696
7696
  "filename": "lib/job-executable.ts",
7697
- "line": 148
7697
+ "line": 153
7698
7698
  },
7699
7699
  "name": "script",
7700
7700
  "type": {
@@ -7713,7 +7713,7 @@
7713
7713
  "immutable": true,
7714
7714
  "locationInModule": {
7715
7715
  "filename": "lib/job-executable.ts",
7716
- "line": 158
7716
+ "line": 163
7717
7717
  },
7718
7718
  "name": "extraFiles",
7719
7719
  "optional": true,
@@ -7738,7 +7738,7 @@
7738
7738
  "immutable": true,
7739
7739
  "locationInModule": {
7740
7740
  "filename": "lib/job-executable.ts",
7741
- "line": 134
7741
+ "line": 139
7742
7742
  },
7743
7743
  "name": "extraPythonFiles",
7744
7744
  "optional": true,
@@ -7769,7 +7769,7 @@
7769
7769
  "kind": "interface",
7770
7770
  "locationInModule": {
7771
7771
  "filename": "lib/job-executable.ts",
7772
- "line": 197
7772
+ "line": 202
7773
7773
  },
7774
7774
  "name": "PythonSparkJobExecutableProps",
7775
7775
  "properties": [
@@ -7783,7 +7783,7 @@
7783
7783
  "immutable": true,
7784
7784
  "locationInModule": {
7785
7785
  "filename": "lib/job-executable.ts",
7786
- "line": 143
7786
+ "line": 148
7787
7787
  },
7788
7788
  "name": "glueVersion",
7789
7789
  "type": {
@@ -7799,7 +7799,7 @@
7799
7799
  "immutable": true,
7800
7800
  "locationInModule": {
7801
7801
  "filename": "lib/job-executable.ts",
7802
- "line": 124
7802
+ "line": 129
7803
7803
  },
7804
7804
  "name": "pythonVersion",
7805
7805
  "type": {
@@ -7815,7 +7815,7 @@
7815
7815
  "immutable": true,
7816
7816
  "locationInModule": {
7817
7817
  "filename": "lib/job-executable.ts",
7818
- "line": 148
7818
+ "line": 153
7819
7819
  },
7820
7820
  "name": "script",
7821
7821
  "type": {
@@ -7834,7 +7834,7 @@
7834
7834
  "immutable": true,
7835
7835
  "locationInModule": {
7836
7836
  "filename": "lib/job-executable.ts",
7837
- "line": 158
7837
+ "line": 163
7838
7838
  },
7839
7839
  "name": "extraFiles",
7840
7840
  "optional": true,
@@ -7858,7 +7858,7 @@
7858
7858
  "immutable": true,
7859
7859
  "locationInModule": {
7860
7860
  "filename": "lib/job-executable.ts",
7861
- "line": 170
7861
+ "line": 175
7862
7862
  },
7863
7863
  "name": "extraJars",
7864
7864
  "optional": true,
@@ -7882,7 +7882,7 @@
7882
7882
  "immutable": true,
7883
7883
  "locationInModule": {
7884
7884
  "filename": "lib/job-executable.ts",
7885
- "line": 179
7885
+ "line": 184
7886
7886
  },
7887
7887
  "name": "extraJarsFirst",
7888
7888
  "optional": true,
@@ -7902,7 +7902,7 @@
7902
7902
  "immutable": true,
7903
7903
  "locationInModule": {
7904
7904
  "filename": "lib/job-executable.ts",
7905
- "line": 134
7905
+ "line": 139
7906
7906
  },
7907
7907
  "name": "extraPythonFiles",
7908
7908
  "optional": true,
@@ -7948,6 +7948,13 @@
7948
7948
  "summary": "Python 3 (the exact version depends on GlueVersion and JobCommand used)."
7949
7949
  },
7950
7950
  "name": "THREE"
7951
+ },
7952
+ {
7953
+ "docs": {
7954
+ "stability": "experimental",
7955
+ "summary": "Python 3.9 (the exact version depends on GlueVersion and JobCommand used)."
7956
+ },
7957
+ "name": "THREE_NINE"
7951
7958
  }
7952
7959
  ],
7953
7960
  "name": "PythonVersion",
@@ -8138,7 +8145,7 @@
8138
8145
  "kind": "interface",
8139
8146
  "locationInModule": {
8140
8147
  "filename": "lib/job-executable.ts",
8141
- "line": 185
8148
+ "line": 190
8142
8149
  },
8143
8150
  "name": "ScalaJobExecutableProps",
8144
8151
  "properties": [
@@ -8152,7 +8159,7 @@
8152
8159
  "immutable": true,
8153
8160
  "locationInModule": {
8154
8161
  "filename": "lib/job-executable.ts",
8155
- "line": 191
8162
+ "line": 196
8156
8163
  },
8157
8164
  "name": "className",
8158
8165
  "type": {
@@ -8169,7 +8176,7 @@
8169
8176
  "immutable": true,
8170
8177
  "locationInModule": {
8171
8178
  "filename": "lib/job-executable.ts",
8172
- "line": 143
8179
+ "line": 148
8173
8180
  },
8174
8181
  "name": "glueVersion",
8175
8182
  "type": {
@@ -8185,7 +8192,7 @@
8185
8192
  "immutable": true,
8186
8193
  "locationInModule": {
8187
8194
  "filename": "lib/job-executable.ts",
8188
- "line": 148
8195
+ "line": 153
8189
8196
  },
8190
8197
  "name": "script",
8191
8198
  "type": {
@@ -8204,7 +8211,7 @@
8204
8211
  "immutable": true,
8205
8212
  "locationInModule": {
8206
8213
  "filename": "lib/job-executable.ts",
8207
- "line": 158
8214
+ "line": 163
8208
8215
  },
8209
8216
  "name": "extraFiles",
8210
8217
  "optional": true,
@@ -8228,7 +8235,7 @@
8228
8235
  "immutable": true,
8229
8236
  "locationInModule": {
8230
8237
  "filename": "lib/job-executable.ts",
8231
- "line": 170
8238
+ "line": 175
8232
8239
  },
8233
8240
  "name": "extraJars",
8234
8241
  "optional": true,
@@ -8252,7 +8259,7 @@
8252
8259
  "immutable": true,
8253
8260
  "locationInModule": {
8254
8261
  "filename": "lib/job-executable.ts",
8255
- "line": 179
8262
+ "line": 184
8256
8263
  },
8257
8264
  "name": "extraJarsFirst",
8258
8265
  "optional": true,
@@ -10365,6 +10372,6 @@
10365
10372
  "symbolId": "lib/job:WorkerType"
10366
10373
  }
10367
10374
  },
10368
- "version": "2.39.0-alpha.0",
10375
+ "version": "2.41.0-alpha.0",
10369
10376
  "fingerprint": "**********"
10370
10377
  }
Binary file
package/README.md CHANGED
@@ -66,7 +66,11 @@ new glue.Job(this, 'PythonSparkStreamingJob', {
66
66
  ### Python Shell Jobs
67
67
 
68
68
  A Python shell job runs Python scripts as a shell and supports a Python version that depends on the AWS Glue version you are using.
69
- This can be used to schedule and run tasks that don't require an Apache Spark environment.
69
+ This can be used to schedule and run tasks that don't require an Apache Spark environment. Currently, three flavors are supported:
70
+
71
+ * PythonVersion.TWO (2.7; EOL)
72
+ * PythonVersion.THREE (3.6)
73
+ * PythonVersion.THREE_NINE (3.9)
70
74
 
71
75
  ```ts
72
76
  declare const bucket: s3.Bucket;
@@ -98,6 +102,24 @@ new glue.Connection(this, 'MyConnection', {
98
102
  });
99
103
  ```
100
104
 
105
+ For RDS `Connection` by JDBC, it is recommended to manage credentials using AWS Secrets Manager. To use Secret, specify `SECRET_ID` in `properties` like the following code. Note that in this case, the subnet must have a route to the AWS Secrets Manager VPC endpoint or to the AWS Secrets Manager endpoint through a NAT gateway.
106
+
107
+ ```ts
108
+ declare const securityGroup: ec2.SecurityGroup;
109
+ declare const subnet: ec2.Subnet;
110
+ declare const db: rds.DatabaseCluster;
111
+ new glue.Connection(this, "RdsConnection", {
112
+ type: glue.ConnectionType.JDBC,
113
+ securityGroups: [securityGroup],
114
+ subnet,
115
+ properties: {
116
+ JDBC_CONNECTION_URL: `jdbc:mysql://${db.clusterEndpoint.socketAddress}/databasename`,
117
+ JDBC_ENFORCE_SSL: "false",
118
+ SECRET_ID: db.secret!.secretName,
119
+ },
120
+ });
121
+ ```
122
+
101
123
  If you need to use a connection type that doesn't exist as a static member on `ConnectionType`, you can instantiate a `ConnectionType` object, e.g: `new glue.ConnectionType('NEW_TYPE')`.
102
124
 
103
125
  See [Adding a Connection to Your Data Store](https://docs.aws.amazon.com/glue/latest/dg/populate-add-connection.html) and [Connection Structure](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-connections.html#aws-glue-api-catalog-connections-Connection) documentation for more information on the supported data stores and their configurations.
package/lib/code.js CHANGED
@@ -30,7 +30,7 @@ class Code {
30
30
  }
31
31
  exports.Code = Code;
32
32
  _a = JSII_RTTI_SYMBOL_1;
33
- Code[_a] = { fqn: "@aws-cdk/aws-glue-alpha.Code", version: "2.39.0-alpha.0" };
33
+ Code[_a] = { fqn: "@aws-cdk/aws-glue-alpha.Code", version: "2.41.0-alpha.0" };
34
34
  /**
35
35
  * Glue job Code from an S3 bucket.
36
36
  */
@@ -52,7 +52,7 @@ class S3Code extends Code {
52
52
  }
53
53
  exports.S3Code = S3Code;
54
54
  _b = JSII_RTTI_SYMBOL_1;
55
- S3Code[_b] = { fqn: "@aws-cdk/aws-glue-alpha.S3Code", version: "2.39.0-alpha.0" };
55
+ S3Code[_b] = { fqn: "@aws-cdk/aws-glue-alpha.S3Code", version: "2.41.0-alpha.0" };
56
56
  /**
57
57
  * Job Code from a local file.
58
58
  */
@@ -100,5 +100,5 @@ class AssetCode extends Code {
100
100
  }
101
101
  exports.AssetCode = AssetCode;
102
102
  _c = JSII_RTTI_SYMBOL_1;
103
- AssetCode[_c] = { fqn: "@aws-cdk/aws-glue-alpha.AssetCode", version: "2.39.0-alpha.0" };
103
+ AssetCode[_c] = { fqn: "@aws-cdk/aws-glue-alpha.AssetCode", version: "2.41.0-alpha.0" };
104
104
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNvZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxpQ0FBaUM7QUFDakMseUJBQXlCO0FBR3pCLHNEQUFzRDtBQUN0RCxtQ0FBbUM7QUFHbkM7O0dBRUc7QUFDSCxNQUFzQixJQUFJO0lBRXhCOzs7O09BSUc7SUFDSSxNQUFNLENBQUMsVUFBVSxDQUFDLE1BQWtCLEVBQUUsR0FBVztRQUN0RCxPQUFPLElBQUksTUFBTSxDQUFDLE1BQU0sRUFBRSxHQUFHLENBQUMsQ0FBQztLQUNoQztJQUVEOzs7O09BSUc7SUFDSSxNQUFNLENBQUMsU0FBUyxDQUFDLElBQVksRUFBRSxPQUErQjtRQUNuRSxPQUFPLElBQUksU0FBUyxDQUFDLElBQUksRUFBRSxPQUFPLENBQUMsQ0FBQztLQUNyQzs7QUFsQkgsb0JBd0JDOzs7QUFFRDs7R0FFRztBQUNILE1BQWEsTUFBTyxTQUFRLElBQUk7SUFDOUIsWUFBNkIsTUFBa0IsRUFBbUIsR0FBVztRQUMzRSxLQUFLLEVBQUUsQ0FBQztRQURtQixXQUFNLEdBQU4sTUFBTSxDQUFZO1FBQW1CLFFBQUcsR0FBSCxHQUFHLENBQVE7S0FFNUU7SUFFTSxJQUFJLENBQUMsTUFBNEIsRUFBRSxT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4gICAgfVxuICAgIHRoaXMuYXNzZXQuZ3JhbnRSZWFkKGdyYW50YWJsZSk7XG4gICAgcmV0dXJuIHtcbiAgICAgIHMzTG9jYXRpb246IHtcbiAgICAgICAgYnVja2V0TmFtZTogdGhpcy5hc3NldC5zM0J1Y2tldE5hbWUsXG4gICAgICAgIG9iamVjdEtleTogdGhpcy5hc3NldC5zM09iamVjdEtleSxcbiAgICAgIH0sXG4gICAgfTtcbiAgfVxuXG4gIC8qKlxuICAgKiBIYXNoIGEgc3RyaW5nXG4gICAqL1xuICBwcml2YXRlIGhhc2hjb2RlKHM6IHN0cmluZyk6IHN0cmluZyB7XG4gICAgY29uc3QgaGFzaCA9IGNyeXB0by5jcmVhdGVIYXNoKCdtZDUnKTtcbiAgICBoYXNoLnVwZGF0ZShzKTtcbiAgICByZXR1cm4gaGFzaC5kaWdlc3QoJ2hleCcpO1xuICB9O1xufVxuXG4vKipcbiAqIFJlc3VsdCBvZiBiaW5kaW5nIGBDb2RlYCBpbnRvIGEgYEpvYmAuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgQ29kZUNvbmZpZyB7XG4gIC8qKlxuICAgKiBUaGUgbG9jYXRpb24gb2YgdGhlIGNvZGUgaW4gUzMuXG4gICAqL1xuICByZWFkb25seSBzM0xvY2F0aW9uOiBzMy5Mb2NhdGlvbjtcbn0iXX0=
package/lib/connection.js CHANGED
@@ -25,7 +25,7 @@ class ConnectionType {
25
25
  }
26
26
  exports.ConnectionType = ConnectionType;
27
27
  _a = JSII_RTTI_SYMBOL_1;
28
- ConnectionType[_a] = { fqn: "@aws-cdk/aws-glue-alpha.ConnectionType", version: "2.39.0-alpha.0" };
28
+ ConnectionType[_a] = { fqn: "@aws-cdk/aws-glue-alpha.ConnectionType", version: "2.41.0-alpha.0" };
29
29
  /**
30
30
  * Designates a connection to a database through Java Database Connectivity (JDBC).
31
31
  */
@@ -132,5 +132,5 @@ class Connection extends cdk.Resource {
132
132
  }
133
133
  exports.Connection = Connection;
134
134
  _b = JSII_RTTI_SYMBOL_1;
135
- Connection[_b] = { fqn: "@aws-cdk/aws-glue-alpha.Connection", version: "2.39.0-alpha.0" };
135
+ Connection[_b] = { fqn: "@aws-cdk/aws-glue-alpha.Connection", version: "2.41.0-alpha.0" };
136
136
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29ubmVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNvbm5lY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQ0EsbUNBQW1DO0FBRW5DLG1EQUFxRDtBQUVyRDs7Ozs7R0FLRztBQUNILE1BQWEsY0FBYztJQTJCekIsWUFBWSxJQUFZO1FBQ3RCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO0tBQ2xCO0lBRUQ7O09BRUc7SUFDSSxRQUFRO1FBQ2IsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDO0tBQ2xCOztBQXBDSCx3Q0FxQ0M7OztBQW5DQzs7R0FFRztBQUNvQixtQkFBSSxHQUFHLElBQUksY0FBYyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBRXpEOztHQUVHO0FBQ29CLG9CQUFLLEdBQUcsSUFBSSxjQUFjLENBQUMsT0FBTyxDQUFDLENBQUM7QUFFM0Q7O0dBRUc7QUFDb0Isc0JBQU8sR0FBRyxJQUFJLGNBQWMsQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUUvRDs7R0FFRztBQUNvQixzQkFBTyxHQUFHLElBQUksY0FBYyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBeUZqRTs7R0FFRztBQUNILE1BQWEsVUFBVyxTQUFRLEdBQUcsQ0FBQyxRQUFRO0lBc0QxQyxZQUFZLEtBQTJCLEVBQUUsRUFBVSxFQUFFLEtBQXNCO1FBQ3pFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQU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