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 ecs from '@aws-cdk/aws-ecs';
    import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
    import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
    
    declare const cluster: ecs.Cluster;
    declare const containerDefinition: ecs.ContainerDefinition;
    declare const parameters: any;
    declare const taskDefinition: ecs.TaskDefinition;
    const ecsRunTaskBase = new stepfunctions_tasks.EcsRunTaskBase({
      cluster: cluster,
      taskDefinition: taskDefinition,
    
      // the properties below are optional
      containerOverrides: [{
        containerDefinition: containerDefinition,
    
        // the properties below are optional
        command: ['command'],
        cpu: 123,
        environment: [{
          name: 'name',
          value: 'value',
        }],
        memoryLimit: 123,
        memoryReservation: 123,
      }],
      integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
      parameters: {
        parametersKey: parameters,
      },
    });
    
    Docs
  • // 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 ecs from '@aws-cdk/aws-ecs';
    import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
    import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
    
    declare const cluster: ecs.Cluster;
    declare const containerDefinition: ecs.ContainerDefinition;
    declare const securityGroup: ec2.SecurityGroup;
    declare const subnet: ec2.Subnet;
    declare const subnetFilter: ec2.SubnetFilter;
    declare const taskDefinition: ecs.TaskDefinition;
    const runEcsFargateTask = new stepfunctions_tasks.RunEcsFargateTask({
      cluster: cluster,
      taskDefinition: taskDefinition,
    
      // the properties below are optional
      assignPublicIp: false,
      containerOverrides: [{
        containerDefinition: containerDefinition,
    
        // the properties below are optional
        command: ['command'],
        cpu: 123,
        environment: [{
          name: 'name',
          value: 'value',
        }],
        memoryLimit: 123,
        memoryReservation: 123,
      }],
      integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
      platformVersion: ecs.FargatePlatformVersion.LATEST,
      securityGroup: securityGroup,
      subnets: {
        availabilityZones: ['availabilityZones'],
        onePerAz: false,
        subnetFilters: [subnetFilter],
        subnetGroupName: 'subnetGroupName',
        subnetName: 'subnetName',
        subnets: [subnet],
        subnetType: ec2.SubnetType.ISOLATED,
      },
    });
    
    Docs
  • // 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 ecs from '@aws-cdk/aws-ecs';
    import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
    import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
    
    declare const cluster: ecs.Cluster;
    declare const containerDefinition: ecs.ContainerDefinition;
    declare const placementConstraint: ecs.PlacementConstraint;
    declare const placementStrategy: ecs.PlacementStrategy;
    declare const securityGroup: ec2.SecurityGroup;
    declare const subnet: ec2.Subnet;
    declare const subnetFilter: ec2.SubnetFilter;
    declare const taskDefinition: ecs.TaskDefinition;
    const runEcsEc2Task = new stepfunctions_tasks.RunEcsEc2Task({
      cluster: cluster,
      taskDefinition: taskDefinition,
    
      // the properties below are optional
      containerOverrides: [{
        containerDefinition: containerDefinition,
    
        // the properties below are optional
        command: ['command'],
        cpu: 123,
        environment: [{
          name: 'name',
          value: 'value',
        }],
        memoryLimit: 123,
        memoryReservation: 123,
      }],
      integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
      placementConstraints: [placementConstraint],
      placementStrategies: [placementStrategy],
      securityGroup: securityGroup,
      subnets: {
        availabilityZones: ['availabilityZones'],
        onePerAz: false,
        subnetFilters: [subnetFilter],
        subnetGroupName: 'subnetGroupName',
        subnetName: 'subnetName',
        subnets: [subnet],
        subnetType: ec2.SubnetType.ISOLATED,
      },
    });
    
    Docs
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
    import * as cdk from '@aws-cdk/core';
    const cloudWatchAlarmDefinitionProperty: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmDefinitionProperty = {
      comparisonOperator: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmComparisonOperator.GREATER_THAN_OR_EQUAL,
      metricName: 'metricName',
      period: cdk.Duration.minutes(30),
    
      // the properties below are optional
      dimensions: [{
        key: 'key',
        value: 'value',
      }],
      evaluationPeriods: 123,
      namespace: 'namespace',
      statistic: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmStatistic.SAMPLE_COUNT,
      threshold: 123,
      unit: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmUnit.NONE,
    };
    
    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 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
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples