37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import type { TargetBaseProps } from './util';
|
|
import type * as events from '../../aws-events';
|
|
import type * as iam from '../../aws-iam';
|
|
import type * as sfn from '../../aws-stepfunctions';
|
|
/**
|
|
* Customize the Step Functions State Machine target
|
|
*/
|
|
export interface SfnStateMachineProps extends TargetBaseProps {
|
|
/**
|
|
* The input to the state machine execution
|
|
*
|
|
* @default the entire EventBridge event
|
|
*/
|
|
readonly input?: events.RuleTargetInput;
|
|
/**
|
|
* The IAM role to be assumed to execute the State Machine
|
|
*
|
|
* @default - a new role will be created
|
|
*/
|
|
readonly role?: iam.IRole;
|
|
}
|
|
/**
|
|
* Use a StepFunctions state machine as a target for Amazon EventBridge rules.
|
|
*/
|
|
export declare class SfnStateMachine implements events.IRuleTarget {
|
|
readonly machine: sfn.IStateMachine;
|
|
private readonly props;
|
|
private readonly role;
|
|
constructor(machine: sfn.IStateMachine, props?: SfnStateMachineProps);
|
|
/**
|
|
* Returns a properties that are used in an Rule to trigger this State Machine
|
|
*
|
|
* @see https://docs.aws.amazon.com/eventbridge/latest/userguide/resource-based-policies-eventbridge.html#sns-permissions
|
|
*/
|
|
bind(rule: events.IRuleRef, _id?: string): events.RuleTargetConfig;
|
|
}
|