Skip to content

Commit

Permalink
docs(stepfunctions): add missing import in example (#16665)
Browse files Browse the repository at this point in the history
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
Yo Lulkin authored Sep 27, 2021
1 parent c165138 commit d21561a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-stepfunctions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ example](https://docs.aws.amazon.com/step-functions/latest/dg/job-status-poller-
## Example

```ts
import * as cdk from '@aws-cdk/core';
import * as sfn from '@aws-cdk/aws-stepfunctions';
import * as tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as lambda from '@aws-cdk/aws-lambda';
Expand Down Expand Up @@ -70,7 +71,7 @@ const definition = submitJob

new sfn.StateMachine(this, 'StateMachine', {
definition,
timeout: Duration.minutes(5)
timeout: cdk.Duration.minutes(5)
});
```

Expand Down Expand Up @@ -353,8 +354,8 @@ the State Machine uses.
The following example uses the `DynamoDB` service integration to insert data into a DynamoDB table.

```ts
import * as ddb from '@aws-cdk/aws-dynamodb';
import * as cdk from '@aws-cdk/core';
import * as ddb from '@aws-cdk/aws-dynamodb';
import * as sfn from '@aws-cdk/aws-stepfunctions';

// create a table
Expand Down

0 comments on commit d21561a

Please sign in to comment.