Class CfnJobDefinition
- All Implemented Interfaces:
IInspectable,IJobDefinitionRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::Batch::JobDefinition resource specifies the parameters for an AWS Batch job definition.
For more information, see Job Definitions in the ** .
Example:
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static final classA fluent builder forCfnJobDefinition.static interfaceContains a list of consumable resources required by a job.static interfaceInformation about a consumable resource required to run a job.static interfaceContainer properties are used for Amazon ECS based job definitions.static interfaceAn object that represents a container instance host device.static interfaceAn object that contains the properties for the Amazon ECS resources of a job.static interfaceThe properties for a task definition that describes the container and volume definitions of an Amazon ECS task.static interfaceExample:static interfaceAn environment variable.static interfaceEKS container properties are used in job definitions for Amazon EKS based job definitions to describe the properties for a container node in the pod that's launched as part of a job.static interfaceThe volume mounts for a container for an Amazon EKS job.static interfaceApersistentVolumeClaimvolume is used to mount a PersistentVolume into a Pod.static interfaceAn object that contains the properties for the Kubernetes resources of a job.static interfaceSpecifies the configuration of a Kubernetessecretvolume.static interfaceSpecifies an Amazon EKS volume for a job definition.static interfaceExample:static interfaceThe Environment property type specifies environment variables to use in a job definition.static interfaceThe amount of ephemeral storage to allocate for the task.static interfaceSpecifies an array of up to 5 conditions to be met, and an action to take (RETRYorEXIT) if all conditions are met.static interfaceThe platform configuration for jobs that are running on Fargate resources.static interfaceThe FireLens configuration for the container.static interfaceExample:static interfaceReferences a Kubernetes secret resource.static interfaceAn object that represents a job timeout configuration.static interfaceLinux-specific modifications that are applied to the container, such as details for device mappings.static interfaceLog configuration options to send to a custom log driver for the container.static interfaceExample:static interfaceDetails for a Docker volume mount point that's used in a job's container properties.static interfaceExample:static interfaceAn object that contains the properties for the Amazon ECS resources of a job.static interfaceThe properties for a task definition that describes the container and volume definitions of an Amazon ECS task.static interfaceThe network configuration for jobs that are running on Fargate resources.static interfaceAn object that represents the node properties of a multi-node parallel job.static interfaceThis is an object that represents the properties of the node range for a multi-node parallel job.static interfaceExample:static interfaceThe repository credentials for private registry authentication.static interfaceThe type and amount of a resource to assign to a container.static interfaceSpecifies the resource retention policy settings for a job definition.static interfaceExample:static interfaceThe retry strategy that's associated with a job.static interfaceAn object that represents the compute environment architecture for AWS Batch jobs on Fargate.static interfaceAn object that represents the secret to expose to your container.static interfaceExample:static interfaceA list of containers that this task depends on.static interfaceContainer properties are used for Amazon ECS-based job definitions.static interfaceExample:static interfaceThe container path, mount options, and size of thetmpfsmount.static interfaceTheulimitsettings to pass to the container.static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.batch.IJobDefinitionRef
IJobDefinitionRef.Jsii$Default, IJobDefinitionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnJobDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnJobDefinition(software.amazon.jsii.JsiiObjectRef objRef) CfnJobDefinition(software.constructs.Construct scope, String id, CfnJobDefinitionProps props) Create a newAWS::Batch::JobDefinition. -
Method Summary
Modifier and TypeMethodDescriptionstatic IJobDefinitionReffromJobDefinitionArn(software.constructs.Construct scope, String id, String arn) Creates a new IJobDefinitionRef from an ARN.static IJobDefinitionReffromJobDefinitionName(software.constructs.Construct scope, String id, String jobDefinitionName) Creates a new IJobDefinitionRef from a jobDefinitionName.The job definition ARN, such asbatch: *us-east-1* : *111122223333* :job-definition/ *test-gpu* : *2*.Contains a list of consumable resources required by the job.An object with properties specific to Amazon ECS-based jobs.An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties.An object with properties that are specific to Amazon EKS-based jobs.The name of the job definition.A reference to a JobDefinition resource.An object with properties that are specific to multi-node parallel jobs.Default parameters or parameter substitution placeholders that are set in the job definition.The platform capabilities required by the job definition.Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.Specifies the resource retention policy settings for the job definition.The retry strategy to use for failed jobs that are submitted with this job definition.The scheduling priority of the job definition.getTags()Tag Manager which manages the tags for this resource.The tags that are applied to the job definition.The timeout time for jobs that are submitted with this job definition.getType()The type of job definition.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidContains a list of consumable resources required by the job.voidContains a list of consumable resources required by the job.voidAn object with properties specific to Amazon ECS-based jobs.voidAn object with properties specific to Amazon ECS-based jobs.voidsetEcsProperties(IResolvable value) An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties.voidAn object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties.voidsetEksProperties(IResolvable value) An object with properties that are specific to Amazon EKS-based jobs.voidAn object with properties that are specific to Amazon EKS-based jobs.voidsetJobDefinitionName(String value) The name of the job definition.voidsetNodeProperties(IResolvable value) An object with properties that are specific to multi-node parallel jobs.voidAn object with properties that are specific to multi-node parallel jobs.voidsetParameters(Object value) Default parameters or parameter substitution placeholders that are set in the job definition.voidsetPlatformCapabilities(List<String> value) The platform capabilities required by the job definition.voidsetPropagateTags(Boolean value) Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.voidsetPropagateTags(IResolvable value) Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.voidSpecifies the resource retention policy settings for the job definition.voidSpecifies the resource retention policy settings for the job definition.voidsetRetryStrategy(IResolvable value) The retry strategy to use for failed jobs that are submitted with this job definition.voidThe retry strategy to use for failed jobs that are submitted with this job definition.voidsetSchedulingPriority(Number value) The scheduling priority of the job definition.voidsetTagsRaw(Object value) The tags that are applied to the job definition.voidsetTimeout(IResolvable value) The timeout time for jobs that are submitted with this job definition.voidThe timeout time for jobs that are submitted with this job definition.voidThe type of job definition.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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) Create a newAWS::Batch::JobDefinition.- 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
-
fromJobDefinitionArn
@Stability(Stable) @NotNull public static IJobDefinitionRef fromJobDefinitionArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IJobDefinitionRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromJobDefinitionName
@Stability(Stable) @NotNull public static IJobDefinitionRef fromJobDefinitionName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String jobDefinitionName) Creates a new IJobDefinitionRef from a jobDefinitionName.- Parameters:
scope- This parameter is required.id- This parameter is required.jobDefinitionName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrJobDefinitionArn
The job definition ARN, such asbatch: *us-east-1* : *111122223333* :job-definition/ *test-gpu* : *2*. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getJobDefinitionRef
A reference to a JobDefinition resource.- Specified by:
getJobDefinitionRefin interfaceIJobDefinitionRef
-
getTags
Tag Manager which manages the tags for this resource. -
getType
The type of job definition. -
setType
The type of job definition. -
getConsumableResourceProperties
Contains a list of consumable resources required by the job.Returns union: either
IResolvableorCfnJobDefinition.ConsumableResourcePropertiesProperty -
setConsumableResourceProperties
Contains a list of consumable resources required by the job. -
setConsumableResourceProperties
@Stability(Stable) public void setConsumableResourceProperties(@Nullable CfnJobDefinition.ConsumableResourcePropertiesProperty value) Contains a list of consumable resources required by the job. -
getContainerProperties
An object with properties specific to Amazon ECS-based jobs.Returns union: either
IResolvableorCfnJobDefinition.ContainerPropertiesProperty -
setContainerProperties
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
An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties.Returns union: either
IResolvableorCfnJobDefinition.EcsPropertiesProperty -
setEcsProperties
An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties. -
setEcsProperties
@Stability(Stable) public void setEcsProperties(@Nullable CfnJobDefinition.EcsPropertiesProperty value) An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties. -
getEksProperties
An object with properties that are specific to Amazon EKS-based jobs.Returns union: either
IResolvableorCfnJobDefinition.EksPropertiesProperty -
setEksProperties
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
The name of the job definition. -
setJobDefinitionName
The name of the job definition. -
getNodeProperties
An object with properties that are specific to multi-node parallel jobs.Returns union: either
IResolvableorCfnJobDefinition.NodePropertiesProperty -
setNodeProperties
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
Default parameters or parameter substitution placeholders that are set in the job definition. -
setParameters
Default parameters or parameter substitution placeholders that are set in the job definition. -
getPlatformCapabilities
The platform capabilities required by the job definition. -
setPlatformCapabilities
The platform capabilities required by the job definition. -
getPropagateTags
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.Returns union: either
BooleanorIResolvable -
setPropagateTags
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. -
setPropagateTags
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. -
getResourceRetentionPolicy
Specifies the resource retention policy settings for the job definition.Returns union: either
IResolvableorCfnJobDefinition.ResourceRetentionPolicyProperty -
setResourceRetentionPolicy
Specifies the resource retention policy settings for the job definition. -
setResourceRetentionPolicy
@Stability(Stable) public void setResourceRetentionPolicy(@Nullable CfnJobDefinition.ResourceRetentionPolicyProperty value) Specifies the resource retention policy settings for the job definition. -
getRetryStrategy
The retry strategy to use for failed jobs that are submitted with this job definition.Returns union: either
IResolvableorCfnJobDefinition.RetryStrategyProperty -
setRetryStrategy
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
The scheduling priority of the job definition. -
setSchedulingPriority
The scheduling priority of the job definition. -
getTagsRaw
The tags that are applied to the job definition. -
setTagsRaw
The tags that are applied to the job definition. -
getTimeout
The timeout time for jobs that are submitted with this job definition.Returns union: either
IResolvableorCfnJobDefinition.TimeoutProperty -
setTimeout
The timeout time for jobs that are submitted with this job definition. -
setTimeout
The timeout time for jobs that are submitted with this job definition.
-