Class CfnJobDefinition

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:13.184Z") @Stability(Stable) public class CfnJobDefinition extends CfnResource implements IInspectable, ITaggable
The AWS::Batch::JobDefinition resource specifies the parameters for an AWS Batch job definition.

For more information, see Job Definitions in the ** .

Example:

 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnJobDefinition

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

      protected CfnJobDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnJobDefinition

      @Stability(Stable) public CfnJobDefinition(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnJobDefinitionProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getType

      @Stability(Stable) @NotNull public String getType()
      The type of job definition.
    • setType

      @Stability(Stable) public void setType(@NotNull String value)
      The type of job definition.
    • getContainerProperties

      @Stability(Stable) @Nullable public Object getContainerProperties()
      An object with properties specific to Amazon ECS-based jobs.
    • setContainerProperties

      @Stability(Stable) public void setContainerProperties(@Nullable IResolvable value)
      An object with properties specific to Amazon ECS-based jobs.
    • setContainerProperties

      @Stability(Stable) public void setContainerProperties(@Nullable CfnJobDefinition.ContainerPropertiesProperty value)
      An object with properties specific to Amazon ECS-based jobs.
    • getEcsProperties

      @Stability(Stable) @Nullable public Object getEcsProperties()
      An object that contains the properties for the Amazon ECS resources of a job.When ecsProperties is used in the job definition, it can't be used in addition to containerProperties , eksProperties , or nodeProperties .
    • setEcsProperties

      @Stability(Stable) public void setEcsProperties(@Nullable IResolvable value)
      An object that contains the properties for the Amazon ECS resources of a job.When ecsProperties is used in the job definition, it can't be used in addition to containerProperties , eksProperties , or nodeProperties .
    • setEcsProperties

      @Stability(Stable) public void setEcsProperties(@Nullable CfnJobDefinition.EcsPropertiesProperty value)
      An object that contains the properties for the Amazon ECS resources of a job.When ecsProperties is used in the job definition, it can't be used in addition to containerProperties , eksProperties , or nodeProperties .
    • getEksProperties

      @Stability(Stable) @Nullable public Object getEksProperties()
      An object with properties that are specific to Amazon EKS-based jobs.
    • setEksProperties

      @Stability(Stable) public void setEksProperties(@Nullable IResolvable value)
      An object with properties that are specific to Amazon EKS-based jobs.
    • setEksProperties

      @Stability(Stable) public void setEksProperties(@Nullable CfnJobDefinition.EksPropertiesProperty value)
      An object with properties that are specific to Amazon EKS-based jobs.
    • getJobDefinitionName

      @Stability(Stable) @Nullable public String getJobDefinitionName()
      The name of the job definition.
    • setJobDefinitionName

      @Stability(Stable) public void setJobDefinitionName(@Nullable String value)
      The name of the job definition.
    • getNodeProperties

      @Stability(Stable) @Nullable public Object getNodeProperties()
      An object with properties that are specific to multi-node parallel jobs.
    • setNodeProperties

      @Stability(Stable) public void setNodeProperties(@Nullable IResolvable value)
      An object with properties that are specific to multi-node parallel jobs.
    • setNodeProperties

      @Stability(Stable) public void setNodeProperties(@Nullable CfnJobDefinition.NodePropertiesProperty value)
      An object with properties that are specific to multi-node parallel jobs.
    • getParameters

      @Stability(Stable) @Nullable public Object getParameters()
      Default parameters or parameter substitution placeholders that are set in the job definition.
    • setParameters

      @Stability(Stable) public void setParameters(@Nullable Object value)
      Default parameters or parameter substitution placeholders that are set in the job definition.
    • getPlatformCapabilities

      @Stability(Stable) @Nullable public List<String> getPlatformCapabilities()
      The platform capabilities required by the job definition.
    • setPlatformCapabilities

      @Stability(Stable) public void setPlatformCapabilities(@Nullable List<String> value)
      The platform capabilities required by the job definition.
    • getPropagateTags

      @Stability(Stable) @Nullable public Object getPropagateTags()
      Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
    • setPropagateTags

      @Stability(Stable) public void setPropagateTags(@Nullable Boolean value)
      Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
    • setPropagateTags

      @Stability(Stable) public void setPropagateTags(@Nullable IResolvable value)
      Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
    • getRetryStrategy

      @Stability(Stable) @Nullable public Object getRetryStrategy()
      The retry strategy to use for failed jobs that are submitted with this job definition.
    • setRetryStrategy

      @Stability(Stable) public void setRetryStrategy(@Nullable IResolvable value)
      The retry strategy to use for failed jobs that are submitted with this job definition.
    • setRetryStrategy

      @Stability(Stable) public void setRetryStrategy(@Nullable CfnJobDefinition.RetryStrategyProperty value)
      The retry strategy to use for failed jobs that are submitted with this job definition.
    • getSchedulingPriority

      @Stability(Stable) @Nullable public Number getSchedulingPriority()
      The scheduling priority of the job definition.
    • setSchedulingPriority

      @Stability(Stable) public void setSchedulingPriority(@Nullable Number value)
      The scheduling priority of the job definition.
    • getTagsRaw

      @Stability(Stable) @Nullable public Object getTagsRaw()
      The tags that are applied to the job definition.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable Object value)
      The tags that are applied to the job definition.
    • getTimeout

      @Stability(Stable) @Nullable public Object getTimeout()
      The timeout time for jobs that are submitted with this job definition.
    • setTimeout

      @Stability(Stable) public void setTimeout(@Nullable IResolvable value)
      The timeout time for jobs that are submitted with this job definition.
    • setTimeout

      @Stability(Stable) public void setTimeout(@Nullable CfnJobDefinition.TimeoutProperty value)
      The timeout time for jobs that are submitted with this job definition.