Interface IJobDefinitionProps
Props common to all JobDefinitions.
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IJobDefinitionProps
Syntax (vb)
Public Interface IJobDefinitionProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.Batch;
var parameters;
RetryStrategy retryStrategy;
var jobDefinitionProps = new JobDefinitionProps {
JobDefinitionName = "jobDefinitionName",
Parameters = new Dictionary<string, object> {
{ "parametersKey", parameters }
},
RetryAttempts = 123,
RetryStrategies = new [] { retryStrategy },
SchedulingPriority = 123,
Timeout = Duration.Minutes(30)
};
Synopsis
Properties
Job |
The name of this job definition. |
Parameters | The default parameters passed to the container These parameters can be referenced in the |
Retry |
The number of times to retry a job. |
Retry |
Defines the retry behavior for this job. |
Scheduling |
The priority of this Job. |
Timeout | The timeout time for jobs that are submitted with this job definition. |
Properties
JobDefinitionName
The name of this job definition.
virtual string JobDefinitionName { get; }
Property Value
System.
Remarks
Default: - generated by CloudFormation
Parameters
The default parameters passed to the container These parameters can be referenced in the command
that you give to the container.
virtual IDictionary<string, object> Parameters { get; }
Property Value
System.
Remarks
RetryAttempts
The number of times to retry a job.
virtual Nullable<double> RetryAttempts { get; }
Property Value
System.
Remarks
The job is retried on failure the same number of attempts as the value.
Default: 1
RetryStrategies
Defines the retry behavior for this job.
virtual RetryStrategy[] RetryStrategies { get; }
Property Value
Remarks
Default: - no RetryStrategy
SchedulingPriority
The priority of this Job.
virtual Nullable<double> SchedulingPriority { get; }
Property Value
System.
Remarks
Only used in Fairshare Scheduling to decide which job to run first when there are multiple jobs with the same share identifier.
Default: none
Timeout
The timeout time for jobs that are submitted with this job definition.
virtual Duration Timeout { get; }
Property Value
Remarks
After the amount of time you specify passes, Batch terminates your jobs if they aren't finished.
Default: - no timeout