@aws-cdk/aws-glue-alpha
Version:
The CDK Construct Library for AWS::Glue
73 lines (72 loc) • 2.69 kB
TypeScript
import { Construct } from 'constructs';
import * as cdk from 'aws-cdk-lib/core';
import { Code } from '../code';
import { SparkJob, SparkJobProps } from './spark-job';
/**
* Properties for PySparkFlexEtlJob
*/
export interface PySparkFlexEtlJobProps extends SparkJobProps {
/**
* Specifies configuration properties of a notification (optional).
* After a job run starts, the number of minutes to wait before sending a job run delay notification.
* @default - undefined
*/
readonly notifyDelayAfter?: cdk.Duration;
/**
* Extra Python Files S3 URL (optional)
* S3 URL where additional python dependencies are located
*
* @default - no extra files
*/
readonly extraPythonFiles?: Code[];
/**
* Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
*
* @default - no extra files specified.
*
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
*/
readonly extraFiles?: Code[];
/**
* Extra Jars S3 URL (optional)
* S3 URL where additional jar dependencies are located
* @default - no extra jar files
*/
readonly extraJars?: Code[];
/**
* Setting this value to true prioritizes the customer's extra JAR files in the classpath.
*
* @default false - priority is not given to user-provided jars
*
* @see `--user-jars-first` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
*/
readonly extraJarsFirst?: boolean;
}
/**
* Flex Jobs class
*
* Flex jobs supports Python and Scala language.
* The flexible execution class is appropriate for non-urgent jobs such as
* pre-production jobs, testing, and one-time data loads.
* Flexible job runs are supported for jobs using AWS Glue version 3.0 or later and G.1X or
* G.2X worker types but will default to the latest version of Glue (currently Glue 3.0.)
*
* Similar to ETL, we’ll enable these features: —enable-metrics, —enable-spark-ui,
* —enable-continuous-cloudwatch-log
*/
export declare class PySparkFlexEtlJob extends SparkJob {
/** Uniquely identifies this class. */
static readonly PROPERTY_INJECTION_ID: string;
readonly jobArn: string;
readonly jobName: string;
/**
* PySparkFlexEtlJob constructor
*/
constructor(scope: Construct, id: string, props: PySparkFlexEtlJobProps);
/**
*Set the executable arguments with best practices enabled by default
*
* @returns An array of arguments for Glue to use on execution
*/
private executableArguments;
}