Class JobDefinition
(experimental) Batch Job Definition.
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.AWS.Batch.dll
Syntax (csharp)
public class JobDefinition : Resource, IJobDefinition, IResource, IConstruct, IDependable
Syntax (vb)
Public Class JobDefinition
Inherits Resource
Implements IJobDefinition, IResource, IConstruct, IDependable
Remarks
Defines a batch job definition to execute a specific batch job.
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.ECR;
var repo = Repository.FromRepositoryName(this, "batch-job-repo", "todo-list");
new JobDefinition(this, "batch-job-def-from-ecr", new JobDefinitionProps {
Container = new JobDefinitionContainer {
Image = new EcrImage(repo, "latest")
}
});
Synopsis
Constructors
JobDefinition(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
JobDefinition(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
JobDefinition(Construct, String, IJobDefinitionProps) |
Properties
JobDefinitionArn | (experimental) The ARN of this batch job definition. |
JobDefinitionName | (experimental) The name of the batch job definition. |
Methods
FromJobDefinitionArn(Construct, String, String) | (experimental) Imports an existing batch job definition by its amazon resource name. |
FromJobDefinitionName(Construct, String, String) | (experimental) Imports an existing batch job definition by its name. |
Constructors
JobDefinition(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected JobDefinition(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
JobDefinition(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected JobDefinition(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
JobDefinition(Construct, String, IJobDefinitionProps)
public JobDefinition(Construct scope, string id, IJobDefinitionProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IJobDefinitionProps
Remarks
Stability: Experimental
Properties
JobDefinitionArn
(experimental) The ARN of this batch job definition.
public virtual string JobDefinitionArn { get; }
Property Value
System.String
Remarks
Stability: Experimental
JobDefinitionName
(experimental) The name of the batch job definition.
public virtual string JobDefinitionName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
FromJobDefinitionArn(Construct, String, String)
(experimental) Imports an existing batch job definition by its amazon resource name.
public static IJobDefinition FromJobDefinitionArn(Construct scope, string id, string jobDefinitionArn)
Parameters
- scope Constructs.Construct
- id System.String
- jobDefinitionArn System.String
Returns
Remarks
Stability: Experimental
FromJobDefinitionName(Construct, String, String)
(experimental) Imports an existing batch job definition by its name.
public static IJobDefinition FromJobDefinitionName(Construct scope, string id, string jobDefinitionName)
Parameters
- scope Constructs.Construct
- id System.String
- jobDefinitionName System.String
Returns
Remarks
If name is specified without a revision then the latest active revision is used.
Stability: Experimental