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 tasks.GlueDataBrewStartJobRun(this, 'Task', {
      name: 'databrew-job',
    });
    
    Docs
    0
  • new tasks.GlueStartJobRun(this, 'Task', {
      glueJobName: 'my-glue-job',
      arguments: sfn.TaskInput.fromObject({
        key: 'value',
      }),
      timeout: Duration.minutes(30),
      notifyDelayAfter: Duration.minutes(5),
    });
    
    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 lambda from '@aws-cdk/aws-lambda';
    import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
    import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
    
    declare const function_: lambda.Function;
    declare const taskInput: stepfunctions.TaskInput;
    
    const runLambdaTask = new stepfunctions_tasks.RunLambdaTask(function_, /* all optional props */ {
      clientContext: 'clientContext',
      integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
      invocationType: stepfunctions_tasks.InvocationType.REQUEST_RESPONSE,
      payload: taskInput,
      qualifier: 'qualifier',
    });
    
    Docs
    0
  • const vpc = ec2.Vpc.fromLookup(this, 'Vpc', {
      isDefault: true,
    });
    
    const cluster = new ecs.Cluster(this, 'FargateCluster', { vpc });
    
    const taskDefinition = new ecs.TaskDefinition(this, 'TD', {
      memoryMiB: '512',
      cpu: '256',
      compatibility: ecs.Compatibility.FARGATE,
    });
    
    const containerDefinition = taskDefinition.addContainer('TheContainer', {
      image: ecs.ContainerImage.fromRegistry('foo/bar'),
      memoryLimitMiB: 256,
    });
    
    const runTask = new tasks.EcsRunTask(this, 'RunFargate', {
      integrationPattern: sfn.IntegrationPattern.RUN_JOB,
      cluster,
      taskDefinition,
      assignPublicIp: true,
      containerOverrides: [{
        containerDefinition,
        environment: [{ name: 'SOME_KEY', value: sfn.JsonPath.stringAt('$.SomeKey') }],
      }],
      launchTarget: new tasks.EcsFargateLaunchTarget(),
    });
    
    Docs
    0
  • const vpc = ec2.Vpc.fromLookup(this, 'Vpc', {
      isDefault: true,
    });
    
    const cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });
    cluster.addCapacity('DefaultAutoScalingGroup', {
      instanceType: new ec2.InstanceType('t2.micro'),
      vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },
    });
    
    const taskDefinition = new ecs.TaskDefinition(this, 'TD', {
      compatibility: ecs.Compatibility.EC2,
    });
    
    taskDefinition.addContainer('TheContainer', {
      image: ecs.ContainerImage.fromRegistry('foo/bar'),
      memoryLimitMiB: 256,
    });
    
    const runTask = new tasks.EcsRunTask(this, 'Run', {
      integrationPattern: sfn.IntegrationPattern.RUN_JOB,
      cluster,
      taskDefinition,
      launchTarget: new tasks.EcsEc2LaunchTarget({
        placementStrategies: [
          ecs.PlacementStrategy.spreadAcrossInstances(),
          ecs.PlacementStrategy.packedByCpu(),
          ecs.PlacementStrategy.randomly(),
        ],
        placementConstraints: [
          ecs.PlacementConstraint.memberOf('blieptuut'),
        ],
      }),
    });
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples