import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for managing an AWS Batch Job Definition. * * ## Example Usage * * ### Lookup via ARN * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const arn = aws.batch.getJobDefinition({ * arn: "arn:aws:batch:us-east-1:012345678910:job-definition/example", * }); * ``` * * ### Lookup via Name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const name = aws.batch.getJobDefinition({ * name: "example", * revision: 2, * }); * ``` */ export declare function getJobDefinition(args?: GetJobDefinitionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getJobDefinition. */ export interface GetJobDefinitionArgs { /** * ARN of the Job Definition. */ arn?: string; /** * Name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). */ name?: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Revision of the job definition. */ revision?: number; /** * Status of the job definition. */ status?: string; } /** * A collection of values returned by getJobDefinition. */ export interface GetJobDefinitionResult { readonly arn?: string; /** * ARN prefix of the job definition. */ readonly arnPrefix: string; /** * Orchestration type of the compute environment. */ readonly containerOrchestrationType: string; /** * Properties that are specific to Amazon EKS based jobs. This must not be specified for Amazon ECS based job definitions. See `eksProperties` below. */ readonly eksProperties: outputs.batch.GetJobDefinitionEksProperty[]; /** * ARN */ readonly id: string; /** * Name of the volume. */ readonly name?: string; /** * Properties specific to multi-node parallel jobs. See `nodeProperties` below. */ readonly nodeProperties: outputs.batch.GetJobDefinitionNodeProperty[]; readonly region: string; /** * Retry strategy to use for failed jobs that are submitted with this job definition. See `retryStrategy` below. */ readonly retryStrategies: outputs.batch.GetJobDefinitionRetryStrategy[]; readonly revision?: number; /** * Scheduling priority for jobs that are submitted with this job definition. 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. */ readonly schedulingPriority: number; readonly status?: string; /** * Map of tags assigned to the resource. */ readonly tags: { [key: string]: string; }; /** * Timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates your jobs if they have not finished. See `timeout` below. */ readonly timeouts: outputs.batch.GetJobDefinitionTimeout[]; /** * Type of resource to assign to a container. The supported resources include `GPU`, `MEMORY`, and `VCPU`. */ readonly type: string; } /** * Data source for managing an AWS Batch Job Definition. * * ## Example Usage * * ### Lookup via ARN * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const arn = aws.batch.getJobDefinition({ * arn: "arn:aws:batch:us-east-1:012345678910:job-definition/example", * }); * ``` * * ### Lookup via Name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const name = aws.batch.getJobDefinition({ * name: "example", * revision: 2, * }); * ``` */ export declare function getJobDefinitionOutput(args?: GetJobDefinitionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getJobDefinition. */ export interface GetJobDefinitionOutputArgs { /** * ARN of the Job Definition. */ arn?: pulumi.Input; /** * Name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Revision of the job definition. */ revision?: pulumi.Input; /** * Status of the job definition. */ status?: pulumi.Input; } //# sourceMappingURL=getJobDefinition.d.ts.map