Skip to content

Commit

Permalink
chore(stepfunctions-tasks): doc has incorrect api endpoint (aws#31364)
Browse files Browse the repository at this point in the history
Closes aws#30940.
  • Loading branch information
msambol authored and xazhao committed Sep 12, 2024
1 parent ae6c664 commit 7c583a0
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 7c583a0

Please sign in to comment.