UNPKG

cdk-amazon-chime-resources

Version:

![Experimental](https://img.shields.io/badge/experimental-important.svg?style=for-the-badge)

113 lines (112 loc) 3.46 kB
import { Construct } from 'constructs'; export declare enum InvocationType { ASYNC = "ASYNC" } export declare enum FallbackAction { CONTINUE = "CONTINUE", ABORT = "ABORT" } /** * Props for `LambdaConfiguration`. * See: https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_messaging-chime_LambdaConfiguration.html */ export interface Lambda { /** * The ARN of the Lambda message processing function. * * @default - None */ readonly resourceArn: string; /** * Controls how the Lambda function is invoked. * * @default - None */ readonly invocationType: InvocationType; } /** * Props for `Configuration`. * See: https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_messaging-chime_ProcessorConfiguration.html */ export interface Configuration { /** * Indicates that the processor is of type Lambda. * * @default - None */ readonly lambda: Lambda; } /** * Props for `Processors`. * See: https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_messaging-chime_Processor.html */ export interface Processors { /** * The name of the Channel Flow Processor * * @default - None */ readonly name: string; /** * The information about the type of processor and its identifier. * * @default - None */ readonly configuration: Configuration; /** * The sequence in which processors run. If you have multiple processors in a channel flow, message processing goes through each processor in the sequence. The value determines the sequence. At this point, we support only 1 processor within a flow. * * @default - None */ readonly executionOrder: number; /** * Determines whether to continue with message processing or stop it in cases where communication with a processor fails. If a processor has a fallback action of ABORT and communication with it fails, the processor sets the message status to FAILED and does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action of CONTINUE and communication with the processor fails, then the message is considered processed and sent to recipients of the channel. * * @default - None */ readonly fallbackAction: FallbackAction; } export interface ChannelFlowTags { readonly key: string; readonly value: string; } /** * Props for `AppInstance`. * See: https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_messaging-chime_CreateChannelFlow.html */ export interface ChannelFlowProps { /** * The ARN of the App Instance * * @default - None */ readonly appInstanceArn: string; /** * Information about the processor Lambda functions. * * @default - None */ readonly processors: Array<Processors>; /** * The tags for the creation request. * * @default - None */ readonly tags?: Array<ChannelFlowTags>; /** * The name of the channel flow. * * @default - None */ readonly name?: string; /** * The client token for the request. An Idempotency token. * * @default - None */ readonly clientRequestToken: string; } export declare class ChannelFlow extends Construct { readonly channelFlowArn: string; constructor(scope: Construct, id: string, props: ChannelFlowProps); }