CfnJobDefinitionProps Struct
Properties for defining a CfnJobDefinition.
Example
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
Properties
consumableResourcePropertiesIResolvable | CfnJobDefinition.ConsumableResourcePropertiesPropertyconsumable_resource_propertiestyping.Union[IResolvable, ConsumableResourcePropertiesProperty]consumableResourcePropertiesIResolvableConsumableResourcePropertiesIResolvableConsumableResourcePropertiesinterface{}#containerPropertiesIResolvable | CfnJobDefinition.ContainerPropertiesPropertycontainer_propertiestyping.Union[IResolvable, ContainerPropertiesProperty]containerPropertiesIResolvableContainerPropertiesIResolvableContainerPropertiesinterface{}#When containerProperties is used in the job definition, it can't be used in addition to eksProperties , ecsProperties , or nodeProperties .
ecsPropertiesIResolvable | CfnJobDefinition.EcsPropertiesPropertyecs_propertiestyping.Union[IResolvable, EcsPropertiesProperty]ecsPropertiesIResolvableEcsPropertiesIResolvableEcsPropertiesinterface{}#eksPropertiesIResolvable | CfnJobDefinition.EksPropertiesPropertyeks_propertiestyping.Union[IResolvable, EksPropertiesProperty]eksPropertiesIResolvableEksPropertiesIResolvableEksPropertiesinterface{}#When eksProperties is used in the job definition, it can't be used in addition to containerProperties , ecsProperties , or nodeProperties .
jobDefinitionNamestringjob_definition_namestrjobDefinitionNameStringJobDefinitionNamestringJobDefinitionName*string#nodePropertiesIResolvable | CfnJobDefinition.NodePropertiesPropertynode_propertiestyping.Union[IResolvable, NodePropertiesProperty]nodePropertiesIResolvableNodePropertiesIResolvableNodePropertiesinterface{}#notes
When nodeProperties is used in the job definition, it can't be used in addition to containerProperties , ecsProperties , or eksProperties .
If the job runs on Fargate resources, don't specify
nodeProperties. UsecontainerPropertiesinstead.
notes
Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition. For more information about specifying parameters, see Job definition parameters in the AWS Batch User Guide .
platformCapabilitiesstring[]platform_capabilitiestyping.List[str]platformCapabilitiesList<String>PlatformCapabilitiesstring[]PlatformCapabilities*[]*string#If no value is specified, it defaults to EC2 . Jobs run on Fargate resources specify FARGATE .
propagateTagsboolean | IResolvablepropagate_tagstyping.Union[bool, IResolvable]propagateTagsBooleanPropagateTagsboolPropagateTagsinterface{}#notes
If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.
resourceRetentionPolicyIResolvable | CfnJobDefinition.ResourceRetentionPolicyPropertyresource_retention_policytyping.Union[IResolvable, ResourceRetentionPolicyProperty]resourceRetentionPolicyIResolvableResourceRetentionPolicyIResolvableResourceRetentionPolicyinterface{}#retryStrategyIResolvable | CfnJobDefinition.RetryStrategyPropertyretry_strategytyping.Union[IResolvable, RetryStrategyProperty]retryStrategyIResolvableRetryStrategyIResolvableRetryStrategyinterface{}#schedulingPrioritynumberscheduling_priorityint | floatschedulingPriorityNumberSchedulingPrioritydoubleSchedulingPriority*float64#This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.
timeoutIResolvable | CfnJobDefinition.TimeoutPropertytimeouttyping.Union[IResolvable, TimeoutProperty]timeoutIResolvableTimeoutIResolvableTimeoutinterface{}#After the amount of time you specify passes, AWS Batch terminates your jobs if they aren't finished.
notes
For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the AWS Batch User Guide .
- If the value is
container, then one of the following is required:containerProperties,ecsProperties, oreksProperties. - If the value is
multinode, thennodePropertiesis required.
If the job is run on Fargate resources, then
multinodeisn't supported.