aws-ddk-core
Version:
The AWS DataOps Development Kit is an open source development framework for customers that build data workflows and modern data architecture on AWS.
55 lines (54 loc) • 1.79 kB
TypeScript
import * as cdk from "aws-cdk-lib";
import * as events from "aws-cdk-lib/aws-events";
import * as sfn from "aws-cdk-lib/aws-stepfunctions";
import { Construct } from "constructs";
import { StateMachineStage, StateMachineStageProps } from "../pipelines";
/**
* Properties of the EMR Serverless Job stage.
*/
export interface EMRServerlessJobStageProps extends StateMachineStageProps {
/**
* EMR Serverless Application Id.
*/
readonly applicationId: string;
/**
* EMR Execution Role Arn.
*/
readonly executionRoleArn: string;
/**
* The job driver for the job run.
* This is a Tagged Union structure.
* Only one of the following top level
* keys can be set: 'sparkSubmit', 'hive'
*/
readonly jobDriver: {
[key: string]: any;
};
/**
* Duration to wait between polling job status.
* Defaults to 30 seconds.
*/
readonly jobExecutionStatusCheckPeriod?: cdk.Duration;
/**
* Additional properties to pass to 'emrserverless:StartJobRun'.
* https://docs.aws.amazon.com/emr-serverless/latest/APIReference/API_StartJobRun.html
*/
readonly startJobRunProps?: {
[key: string]: any;
};
}
/**
* Stage that contains a step function that runs an EMR Job.
*/
export declare class EMRServerlessJobStage extends StateMachineStage {
readonly targets?: events.IRuleTarget[];
readonly eventPattern?: events.EventPattern;
readonly stateMachine: sfn.StateMachine;
/**
* Constructs EMRServerlessJobStage.
* @param scope Scope within which this construct is defined.
* @param id Identifier of the stage.
* @param props Properties for the stage.
*/
constructor(scope: Construct, id: string, props: EMRServerlessJobStageProps);
}