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

  • new sfn.StateMachine(this, 'MyStateMachine', {
      definition: sfn.Chain.start(new sfn.Pass(this, 'Pass')),
      tracingEnabled: true,
    });
    
    Docs
    0
  • const user = new iam.User(this, 'MyUser');
    
    declare const definition: sfn.IChainable;
    const stateMachine = new sfn.StateMachine(this, 'StateMachine', {
      definition,
    });
    
    //give user permission to send task success to the state machine
    stateMachine.grant(user, 'states:SendTaskSuccess');
    
    Docs
    0
  • import * as logs from '@aws-cdk/aws-logs';
    
    const logGroup = new logs.LogGroup(this, 'MyLogGroup');
    
    new sfn.StateMachine(this, 'MyStateMachine', {
      definition: sfn.Chain.start(new sfn.Pass(this, 'Pass')),
      logs: {
        destination: logGroup,
        level: sfn.LogLevel.ALL,
      },
    });
    
    Docs
    0
  • const role = new iam.Role(this, 'Role', {
      assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
    });
    
    declare const definition: sfn.IChainable;
    const stateMachine = new sfn.StateMachine(this, 'StateMachine', {
      definition,
    });
    
    // Give role read access to state machine
    stateMachine.grantRead(role);
    
    Docs
    0
  • const role = new iam.Role(this, 'Role', {
      assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
    });
    
    declare const definition: sfn.IChainable;
    const stateMachine = new sfn.StateMachine(this, 'StateMachine', {
      definition,
    });
    
    // Give role permission to get execution history of ALL executions for the state machine
    stateMachine.grantExecution(role, 'states:GetExecutionHistory');
    
    Docs
    0
  • const user = new iam.User(this, 'MyUser');
    
    declare const definition: sfn.IChainable;
    const stateMachine = new sfn.StateMachine(this, 'StateMachine', {
      definition,
    });
    
    //give user permission to send task success to the state machine
    stateMachine.grant(user, 'states:SendTaskSuccess');
    
    Docs
    0
  • const role = new iam.Role(this, 'Role', {
      assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
    });
    
    declare const definition: sfn.IChainable;
    const stateMachine = new sfn.StateMachine(this, 'StateMachine', {
      definition,
    });
    
    // Give role read access to state machine
    stateMachine.grantRead(role);
    
    Docs
    0
  • const app = new App();
    const stack = new Stack(app, 'MyStack');
    sfn.StateMachine.fromStateMachineArn(
      stack,
      'ImportedStateMachine',
      'arn:aws:states:us-east-1:123456789012:stateMachine:StateMachine2E01A3A5-N5TJppzoevKQ',
    );
    
    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';
    
    const cfnStateMachine = new stepfunctions.CfnStateMachine(this, 'MyCfnStateMachine', {
      roleArn: 'roleArn',
    
      // the properties below are optional
      definition: { },
      definitionS3Location: {
        bucket: 'bucket',
        key: 'key',
    
        // the properties below are optional
        version: 'version',
      },
      definitionString: 'definitionString',
      definitionSubstitutions: {
        definitionSubstitutionsKey: 'definitionSubstitutions',
      },
      loggingConfiguration: {
        destinations: [{
          cloudWatchLogsLogGroup: {
            logGroupArn: 'logGroupArn',
          },
        }],
        includeExecutionData: false,
        level: 'level',
      },
      stateMachineName: 'stateMachineName',
      stateMachineType: 'stateMachineType',
      tags: [{
        key: 'key',
        value: 'value',
      }],
      tracingConfiguration: {
        enabled: false,
      },
    });
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples