Interface ITaskDefinition.Jsii$Default

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default, software.constructs.IDependable, software.constructs.IDependable.Jsii$Default, IEnvironmentAware, IEnvironmentAware.Jsii$Default, IResource, IResource.Jsii$Default, ITaskDefinition, ITaskDefinitionRef, ITaskDefinitionRef.Jsii$Default, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IEc2TaskDefinition.Jsii$Default, IExternalTaskDefinition.Jsii$Default, IFargateTaskDefinition.Jsii$Default
All Known Implementing Classes:
IEc2TaskDefinition.Jsii$Proxy, IExternalTaskDefinition.Jsii$Proxy, IFargateTaskDefinition.Jsii$Proxy, ITaskDefinition.Jsii$Proxy
Enclosing interface:
ITaskDefinition

@Internal public static interface ITaskDefinition.Jsii$Default extends ITaskDefinition, IResource.Jsii$Default, ITaskDefinitionRef.Jsii$Default
Internal default implementation for ITaskDefinition.
  • Method Details

    • getCompatibility

      @Stability(Stable) @NotNull default Compatibility getCompatibility()
      What launch types this task definition should be compatible with.
      Specified by:
      getCompatibility in interface ITaskDefinition
    • getIsEc2Compatible

      @Stability(Stable) @NotNull default Boolean getIsEc2Compatible()
      Return true if the task definition can be run on an EC2 cluster.
      Specified by:
      getIsEc2Compatible in interface ITaskDefinition
    • getIsExternalCompatible

      @Stability(Stable) @NotNull default Boolean getIsExternalCompatible()
      Return true if the task definition can be run on a ECS Anywhere cluster.
      Specified by:
      getIsExternalCompatible in interface ITaskDefinition
    • getIsFargateCompatible

      @Stability(Stable) @NotNull default Boolean getIsFargateCompatible()
      Return true if the task definition can be run on a Fargate cluster.
      Specified by:
      getIsFargateCompatible in interface ITaskDefinition
    • getIsManagedInstancesCompatible

      @Stability(Stable) @NotNull default Boolean getIsManagedInstancesCompatible()
      Return true if the task definition can be run on Managed Instances.
      Specified by:
      getIsManagedInstancesCompatible in interface ITaskDefinition
    • getNetworkMode

      @Stability(Stable) @NotNull default NetworkMode getNetworkMode()
      The networking mode to use for the containers in the task.
      Specified by:
      getNetworkMode in interface ITaskDefinition
    • getTaskDefinitionArn

      @Stability(Stable) @NotNull default String getTaskDefinitionArn()
      ARN of this task definition.
      Specified by:
      getTaskDefinitionArn in interface ITaskDefinition
    • getTaskRole

      @Stability(Stable) @NotNull default IRole getTaskRole()
      The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
      Specified by:
      getTaskRole in interface ITaskDefinition
    • getExecutionRole

      @Stability(Stable) @Nullable default IRole getExecutionRole()
      Execution role for this task definition.
      Specified by:
      getExecutionRole in interface ITaskDefinition