How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
    import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
    import * as cdk from '@aws-cdk/core';
    
    declare const activity: stepfunctions.Activity;
    const invokeActivity = new stepfunctions_tasks.InvokeActivity(activity, /* all optional props */ {
      heartbeat: cdk.Duration.minutes(30),
    });
    
    Docs
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as lambda from '@aws-cdk/aws-lambda';
    import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
    
    declare const function_: lambda.Function;
    declare const payload: any;
    const invokeFunction = new stepfunctions_tasks.InvokeFunction(function_, /* all optional props */ {
      payload: {
        payloadKey: payload,
      },
    });
    
    Docs
  • import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
    const pipeline = new codepipeline.Pipeline(this, 'MyPipeline');
    const startState = new stepfunctions.Pass(this, 'StartState');
    const simpleStateMachine  = new stepfunctions.StateMachine(this, 'SimpleStateMachine', {
      definition: startState,
    });
    const stepFunctionAction = new codepipeline_actions.StepFunctionInvokeAction({
      actionName: 'Invoke',
      stateMachine: simpleStateMachine,
      stateMachineInput: codepipeline_actions.StateMachineInput.literal({ IsHelloWorldExample: true }),
    });
    pipeline.addStage({
      stageName: 'StepFunctions',
      actions: [stepFunctionAction],
    });
    
    Docs
  • const submitJobActivity = new sfn.Activity(this, 'SubmitJob');
    
    new tasks.StepFunctionsInvokeActivity(this, 'Submit Job', {
      activity: submitJobActivity,
    });
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples