java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.tasks.EcsRunTaskBase
All Implemented Interfaces:
IConnectable, IStepFunctionsTask, software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
RunEcsEc2Task, RunEcsFargateTask

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.960Z") @Stability(Deprecated) @Deprecated public class EcsRunTaskBase extends software.amazon.jsii.JsiiObject implements IConnectable, IStepFunctionsTask
Deprecated.
No replacement
(deprecated) A StepFunctions Task to run a Task on ECS or Fargate.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.*;
 import software.amazon.awscdk.services.stepfunctions.*;
 import software.amazon.awscdk.services.stepfunctions.tasks.*;
 Cluster cluster;
 ContainerDefinition containerDefinition;
 Object parameters;
 TaskDefinition taskDefinition;
 EcsRunTaskBase ecsRunTaskBase = EcsRunTaskBase.Builder.create()
         .cluster(cluster)
         .taskDefinition(taskDefinition)
         // the properties below are optional
         .containerOverrides(List.of(ContainerOverride.builder()
                 .containerDefinition(containerDefinition)
                 // the properties below are optional
                 .command(List.of("command"))
                 .cpu(123)
                 .environment(List.of(TaskEnvironmentVariable.builder()
                         .name("name")
                         .value("value")
                         .build()))
                 .memoryLimit(123)
                 .memoryReservation(123)
                 .build()))
         .integrationPattern(ServiceIntegrationPattern.FIRE_AND_FORGET)
         .parameters(Map.of(
                 "parametersKey", parameters))
         .build();
 

  • Constructor Details

    • EcsRunTaskBase

      protected EcsRunTaskBase(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • EcsRunTaskBase

      protected EcsRunTaskBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
    • EcsRunTaskBase

      @Stability(Deprecated) @Deprecated public EcsRunTaskBase(@NotNull EcsRunTaskBaseProps props)
      Deprecated.
      Parameters:
      props - This parameter is required.
  • Method Details

    • bind

      @Stability(Deprecated) @Deprecated @NotNull public StepFunctionsTaskConfig bind(@NotNull Task task)
      Deprecated.
      (deprecated) Called when the task object is used in a workflow.

      Specified by:
      bind in interface IStepFunctionsTask
      Parameters:
      task - This parameter is required.
    • configureAwsVpcNetworking

      @Stability(Deprecated) @Deprecated protected void configureAwsVpcNetworking(@NotNull IVpc vpc, @Nullable Boolean assignPublicIp, @Nullable SubnetSelection subnetSelection, @Nullable ISecurityGroup securityGroup)
      Deprecated.
      Parameters:
      vpc - This parameter is required.
      assignPublicIp -
      subnetSelection -
      securityGroup -
    • configureAwsVpcNetworking

      @Stability(Deprecated) @Deprecated protected void configureAwsVpcNetworking(@NotNull IVpc vpc, @Nullable Boolean assignPublicIp, @Nullable SubnetSelection subnetSelection)
      Deprecated.
      Parameters:
      vpc - This parameter is required.
      assignPublicIp -
      subnetSelection -
    • configureAwsVpcNetworking

      @Stability(Deprecated) @Deprecated protected void configureAwsVpcNetworking(@NotNull IVpc vpc, @Nullable Boolean assignPublicIp)
      Deprecated.
      Parameters:
      vpc - This parameter is required.
      assignPublicIp -
    • configureAwsVpcNetworking

      @Stability(Deprecated) @Deprecated protected void configureAwsVpcNetworking(@NotNull IVpc vpc)
      Deprecated.
      Parameters:
      vpc - This parameter is required.
    • getConnections

      @Stability(Deprecated) @Deprecated @NotNull public Connections getConnections()
      Deprecated.
      (deprecated) Manage allowed network traffic for this service.
      Specified by:
      getConnections in interface IConnectable