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

  • import * as batch from '@aws-cdk/aws-batch';
    declare const batchJobDefinition: batch.JobDefinition;
    declare const batchQueue: batch.JobQueue;
    
    const task = new tasks.BatchSubmitJob(this, 'Submit Job', {
      jobDefinitionArn: batchJobDefinition.jobDefinitionArn,
      jobName: 'MyJob',
      jobQueueArn: batchQueue.jobQueueArn,
    });
    
    Docs
    0
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as ec2 from '@aws-cdk/aws-ec2';
    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 instanceType: ec2.InstanceType;
    declare const payload: any;
    
    const runBatchJob = new stepfunctions_tasks.RunBatchJob({
      jobDefinitionArn: 'jobDefinitionArn',
      jobName: 'jobName',
      jobQueueArn: 'jobQueueArn',
    
      // the properties below are optional
      arraySize: 123,
      attempts: 123,
      containerOverrides: {
        command: ['command'],
        environment: {
          environmentKey: 'environment',
        },
        gpuCount: 123,
        instanceType: instanceType,
        memory: 123,
        vcpus: 123,
      },
      dependsOn: [{
        jobId: 'jobId',
        type: 'type',
      }],
      integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
      payload: {
        payloadKey: payload,
      },
      timeout: cdk.Duration.minutes(30),
    });
    
    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';
    import * as cdk from '@aws-cdk/core';
    
    const runGlueJobTask = new stepfunctions_tasks.RunGlueJobTask('glueJobName', /* all optional props */ {
      arguments: {
        argumentsKey: 'arguments',
      },
      integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
      notifyDelayAfter: cdk.Duration.minutes(30),
      securityConfiguration: 'securityConfiguration',
      timeout: cdk.Duration.minutes(30),
    });
    
    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
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as sqs from '@aws-cdk/aws-sqs';
    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 queue: sqs.Queue;
    declare const taskInput: stepfunctions.TaskInput;
    
    const sendToQueue = new stepfunctions_tasks.SendToQueue(queue, {
      messageBody: taskInput,
    
      // the properties below are optional
      delay: cdk.Duration.minutes(30),
      integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
      messageDeduplicationId: 'messageDeduplicationId',
      messageGroupId: 'messageGroupId',
    });
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples