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

  • declare const child: sfn.StateMachine;
    const task = new tasks.StepFunctionsStartExecution(this, 'ChildTask', {
      stateMachine: child,
      associateWithParent: true,
    });
    
    Docs
    0
  • // Define a state machine with one Pass state
    const child = new sfn.StateMachine(this, 'ChildStateMachine', {
      definition: sfn.Chain.start(new sfn.Pass(this, 'PassState')),
    });
    
    // Include the state machine in a Task state with callback pattern
    const task = new tasks.StepFunctionsStartExecution(this, 'ChildTask', {
      stateMachine: child,
      integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
      input: sfn.TaskInput.fromObject({
        token: sfn.JsonPath.taskToken,
        foo: 'bar',
      }),
      name: 'MyExecutionName',
    });
    
    // Define a second state machine with the Task state above
    new sfn.StateMachine(this, 'ParentStateMachine', {
      definition: task,
    });
    
    Docs
    0
  • // 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';
    
    declare const input: any;
    declare const stateMachine: stepfunctions.StateMachine;
    
    const startExecution = new stepfunctions_tasks.StartExecution(stateMachine, /* all optional props */ {
      input: {
        inputKey: input,
      },
      integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
      name: 'name',
    });
    
    Docs
    0
  • const submitJobActivity = new sfn.Activity(this, 'SubmitJob');
    
    new tasks.StepFunctionsInvokeActivity(this, 'Submit Job', {
      activity: submitJobActivity,
    });
    
    Docs
    0
  • const startQueryExecutionJob = new tasks.AthenaStartQueryExecution(this, 'Athena Start Query', {
      queryString: sfn.JsonPath.stringAt("States.Format('select contacts where year={};', $.year)"),
      queryExecutionContext: {
        databaseName: 'interactions',
      },
      resultConfiguration: {
        encryptionConfiguration: {
          encryptionOption: tasks.EncryptionOption.S3_MANAGED,
        },
        outputLocation: {
          bucketName: 'mybucket',
          objectKey: 'myprefix',
        },
      },
      integrationPattern: sfn.IntegrationPattern.RUN_JOB,
    });
    
    Docs
    0
  • const startQueryExecutionJob = new tasks.AthenaStartQueryExecution(this, 'Start Athena Query', {
      queryString: sfn.JsonPath.stringAt('$.queryString'),
      queryExecutionContext: {
        databaseName: 'mydatabase',
      },
      resultConfiguration: {
        encryptionConfiguration: {
          encryptionOption: tasks.EncryptionOption.S3_MANAGED,
        },
        outputLocation: {
          bucketName: 'query-results-bucket',
          objectKey: 'folder',
        },
      },
    });
    
    Docs
    0
  • const stopQueryExecutionJob = new tasks.AthenaStopQueryExecution(this, 'Stop Query Execution', {
      queryExecutionId: sfn.JsonPath.stringAt('$.QueryExecutionId'),
    });
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples