@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
131 lines (130 loc) • 4.76 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* The Batch Job Queue data source allows access to details of a specific
* job queue within AWS Batch.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test_queue = aws.batch.getJobQueue({
* name: "tf-test-batch-job-queue",
* });
* ```
*/
export declare function getJobQueue(args: GetJobQueueArgs, opts?: pulumi.InvokeOptions): Promise<GetJobQueueResult>;
/**
* A collection of arguments for invoking getJobQueue.
*/
export interface GetJobQueueArgs {
/**
* Name of the job queue.
*/
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;
/**
* Key-value map of resource tags
*/
tags?: {
[key: string]: string;
};
}
/**
* A collection of values returned by getJobQueue.
*/
export interface GetJobQueueResult {
/**
* ARN of the job queue.
*/
readonly arn: string;
/**
* The compute environments that are attached to the job queue and the order in
* which job placement is preferred. Compute environments are selected for job placement in ascending order.
* * `compute_environment_order.#.order` - The order of the compute environment.
* * `compute_environment_order.#.compute_environment` - The ARN of the compute environment.
*/
readonly computeEnvironmentOrders: outputs.batch.GetJobQueueComputeEnvironmentOrder[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Specifies an action that AWS Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time.
* * `job_state_time_limit_action.#.action` - The action to take when a job is at the head of the job queue in the specified state for the specified period of time.
* * `job_state_time_limit_action.#.max_time_seconds` - The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.
* * `job_state_time_limit_action.#.reason` - The reason to log for the action being taken.
* * `job_state_time_limit_action.#.state` - The state of the job needed to trigger the action.
*/
readonly jobStateTimeLimitActions: outputs.batch.GetJobQueueJobStateTimeLimitAction[];
readonly name: string;
/**
* Priority of the job queue. Job queues with a higher priority are evaluated first when
* associated with the same compute environment.
*/
readonly priority: number;
readonly region: string;
/**
* The ARN of the fair share scheduling policy. If this attribute has a value, the job queue uses a fair share scheduling policy. If this attribute does not have a value, the job queue uses a first in, first out (FIFO) scheduling policy.
*/
readonly schedulingPolicyArn: string;
/**
* Describes the ability of the queue to accept new jobs (for example, `ENABLED` or `DISABLED`).
*/
readonly state: string;
/**
* Current status of the job queue (for example, `CREATING` or `VALID`).
*/
readonly status: string;
/**
* Short, human-readable string to provide additional details about the current status
* of the job queue.
*/
readonly statusReason: string;
/**
* Key-value map of resource tags
*/
readonly tags: {
[key: string]: string;
};
}
/**
* The Batch Job Queue data source allows access to details of a specific
* job queue within AWS Batch.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test_queue = aws.batch.getJobQueue({
* name: "tf-test-batch-job-queue",
* });
* ```
*/
export declare function getJobQueueOutput(args: GetJobQueueOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetJobQueueResult>;
/**
* A collection of arguments for invoking getJobQueue.
*/
export interface GetJobQueueOutputArgs {
/**
* Name of the job queue.
*/
name: pulumi.Input<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?: pulumi.Input<string>;
/**
* Key-value map of resource tags
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}