Interface CfnPipe.EcsTaskOverrideProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnPipe.EcsTaskOverrideProperty.Jsii$Proxy
Enclosing class:
CfnPipe

@Stability(Stable) public static interface CfnPipe.EcsTaskOverrideProperty extends software.amazon.jsii.JsiiSerializable
The overrides that are associated with a task.

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.pipes.*;
 EcsTaskOverrideProperty ecsTaskOverrideProperty = EcsTaskOverrideProperty.builder()
         .containerOverrides(List.of(EcsContainerOverrideProperty.builder()
                 .command(List.of("command"))
                 .cpu(123)
                 .environment(List.of(EcsEnvironmentVariableProperty.builder()
                         .name("name")
                         .value("value")
                         .build()))
                 .environmentFiles(List.of(EcsEnvironmentFileProperty.builder()
                         .type("type")
                         .value("value")
                         .build()))
                 .memory(123)
                 .memoryReservation(123)
                 .name("name")
                 .resourceRequirements(List.of(EcsResourceRequirementProperty.builder()
                         .type("type")
                         .value("value")
                         .build()))
                 .build()))
         .cpu("cpu")
         .ephemeralStorage(EcsEphemeralStorageProperty.builder()
                 .sizeInGiB(123)
                 .build())
         .executionRoleArn("executionRoleArn")
         .inferenceAcceleratorOverrides(List.of(EcsInferenceAcceleratorOverrideProperty.builder()
                 .deviceName("deviceName")
                 .deviceType("deviceType")
                 .build()))
         .memory("memory")
         .taskRoleArn("taskRoleArn")
         .build();
 
  • Method Details

    • getContainerOverrides

      @Stability(Stable) @Nullable default Object getContainerOverrides()
      One or more container overrides that are sent to a task.
    • getCpu

      @Stability(Stable) @Nullable default String getCpu()
      The cpu override for the task.
    • getEphemeralStorage

      @Stability(Stable) @Nullable default Object getEphemeralStorage()
      The ephemeral storage setting override for the task.

      This parameter is only supported for tasks hosted on Fargate that use the following platform versions:

      • Linux platform version 1.4.0 or later.
      • Windows platform version 1.0.0 or later.

    • getExecutionRoleArn

      @Stability(Stable) @Nullable default String getExecutionRoleArn()
      The Amazon Resource Name (ARN) of the task execution IAM role override for the task.

      For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide .

    • getInferenceAcceleratorOverrides

      @Stability(Stable) @Nullable default Object getInferenceAcceleratorOverrides()
      The Elastic Inference accelerator override for the task.
    • getMemory

      @Stability(Stable) @Nullable default String getMemory()
      The memory override for the task.
    • getTaskRoleArn

      @Stability(Stable) @Nullable default String getTaskRoleArn()
      The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.

      All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide .

    • builder

      @Stability(Stable) static CfnPipe.EcsTaskOverrideProperty.Builder builder()
      Returns:
      a CfnPipe.EcsTaskOverrideProperty.Builder of CfnPipe.EcsTaskOverrideProperty