How to use the StepFunctions function from aws-sdk

Find comprehensive JavaScript aws-sdk.StepFunctions code examples handpicked from public code repositorys.

9
10
11
12
13
14
15
16
17
18
19
 * @returns {Object} object - API Gateway Lambda Proxy Output Format
 *
 */


const AWS = require('aws-sdk');
const stepFunctions = new AWS.StepFunctions();
const sns = new AWS.SNS();
const sqs = new AWS.SQS();
const { v4: uuid } = require('uuid');

fork icon0
star icon1
watch icon1

+ 44 other calls in file

875
876
877
878
879
880
881
882
883
884
 * Start a step function state machine which will wait for the request
 * to be successful.
 */
async startExecution(req) {
  try {
    const sfn = new AWS.StepFunctions();
    await sfn.startExecution(req).promise();
  } finally {
    clearTimeout(this.timeout);
  }
fork icon0
star icon0
watch icon1

+ 14 other calls in file

106
107
108
109
110
111
112
113
114
115

/**
 * Start the state machine execution request and record the execution ARN
 */
const startExecution = async () => {
  const client = new AWS.StepFunctions();
  const response = await client
    .startExecution({
      stateMachineArn,
      name: `integ-test-${uuid.v4()}`,
fork icon0
star icon0
watch icon1

+ 5 other calls in file