UNPKG

@cdklabs/cdk-appflow

Version:

*Note:* this library is currently in technical preview.

35 lines (34 loc) 1.28 kB
import { CfnFlow } from "aws-cdk-lib/aws-appflow"; import { ConnectorType } from "../connectors/connector-type"; import { IFlow } from "../flows"; import { ISource } from "../vertices/source"; /** * A representation of a unitary action on the record fields */ export interface ITask { bind(flow: IFlow, source: ISource): CfnFlow.TaskProperty; } export interface TaskProperty { readonly key: string; readonly value: string; } /** * A pair that represents the (typically source) connector, and a task operation to be performed in the context of the connector */ export interface TaskConnectorOperator { readonly type?: ConnectorType; readonly operation: string; } /** * A representation of a unitary action on the record fields */ export declare class Task implements ITask { protected type: string; protected sourceFields: string[]; protected connectorOperator: TaskConnectorOperator; protected properties: TaskProperty[]; protected destinationField?: string | undefined; constructor(type: string, sourceFields: string[], connectorOperator: TaskConnectorOperator, properties: TaskProperty[], destinationField?: string | undefined); bind(_flow: IFlow, source: ISource): CfnFlow.TaskProperty; private buildOperatorFor; }