1 | import * as events from '@aws-cdk/aws-events';
|
2 | import * as iam from '@aws-cdk/aws-iam';
|
3 | import * as sfn from '@aws-cdk/aws-stepfunctions';
|
4 | import { TargetBaseProps } from './util';
|
5 |
|
6 |
|
7 |
|
8 | export interface SfnStateMachineProps extends TargetBaseProps {
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 | readonly input?: events.RuleTargetInput;
|
15 | |
16 |
|
17 |
|
18 |
|
19 |
|
20 | readonly role?: iam.IRole;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 | export declare class SfnStateMachine implements events.IRuleTarget {
|
26 | readonly machine: sfn.IStateMachine;
|
27 | private readonly props;
|
28 | private readonly role;
|
29 | constructor(machine: sfn.IStateMachine, props?: SfnStateMachineProps);
|
30 | /**
|
31 | * Returns a properties that are used in an Rule to trigger this State Machine
|
32 | *
|
33 | * @see https://docs.aws.amazon.com/eventbridge/latest/userguide/resource-based-policies-eventbridge.html#sns-permissions
|
34 | */
|
35 | bind(_rule: events.IRule, _id?: string): events.RuleTargetConfig;
|
36 | }
|