Class TaskDefinitionRevision

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.TaskDefinitionRevision
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.653Z") @Stability(Stable) public class TaskDefinitionRevision extends software.amazon.jsii.JsiiObject
Represents revision of a task definition, either a specific numbered revision or the latest revision.

Example:

 Cluster cluster;
 TaskDefinition taskDefinition;
 ExternalService.Builder.create(this, "Service")
         .cluster(cluster)
         .taskDefinition(taskDefinition)
         .desiredCount(5)
         .taskDefinitionRevision(TaskDefinitionRevision.of(1))
         .build();
 ExternalService.Builder.create(this, "Service")
         .cluster(cluster)
         .taskDefinition(taskDefinition)
         .desiredCount(5)
         .taskDefinitionRevision(TaskDefinitionRevision.LATEST)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The most recent revision of a task.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    TaskDefinitionRevision(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    TaskDefinitionRevision(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The string representation of this revision.
    of(Number revision)
    Specific revision of a task.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • LATEST

      @Stability(Stable) public static final TaskDefinitionRevision LATEST
      The most recent revision of a task.
  • Constructor Details

    • TaskDefinitionRevision

      protected TaskDefinitionRevision(software.amazon.jsii.JsiiObjectRef objRef)
    • TaskDefinitionRevision

      protected TaskDefinitionRevision(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • of

      @Stability(Stable) @NotNull public static TaskDefinitionRevision of(@NotNull Number revision)
      Specific revision of a task.

      Parameters:
      revision - This parameter is required.
    • getRevision

      @Stability(Stable) @NotNull public String getRevision()
      The string representation of this revision.