Skip to content

Commit

Permalink
chore(stepfunctions-tasks): doc has incorrect api endpoint (#31364)
Browse files Browse the repository at this point in the history
Closes #30940.
  • Loading branch information
msambol committed Sep 8, 2024
1 parent 633904d commit ab73e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ const connection = new events.Connection(this, 'Connection', {

new tasks.HttpInvoke(this, 'Invoke HTTP API', {
apiRoot: 'https://api.example.com',
apiEndpoint: sfn.TaskInput.fromText('https://api.example.com/path/to/resource'),
apiEndpoint: sfn.TaskInput.fromText('path/to/resource'),
body: sfn.TaskInput.fromObject({ foo: 'bar' }),
connection,
headers: sfn.TaskInput.fromObject({ 'Content-Type': 'application/json' }),
Expand Down

0 comments on commit ab73e53

Please sign in to comment.