
com.pulumi.awsnative.batch.kotlin.outputs.GetJobQueueResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.batch.kotlin.outputs
import com.pulumi.awsnative.batch.kotlin.enums.JobQueueState
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property computeEnvironmentOrder The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the `VALID` state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 ( `EC2` or `SPOT` ) or Fargate ( `FARGATE` or `FARGATE_SPOT` ); EC2 and Fargate compute environments can't be mixed.
* > All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
* @property jobQueueArn Returns the job queue ARN, such as `batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*` .
* @property jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after `maxTimeSeconds` has passed.
* @property priority The priority of the job queue. Job queues with a higher priority (or a higher integer value for the `priority` parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of `10` is given scheduling preference over a job queue with a priority value of `1` . All of the compute environments must be either EC2 ( `EC2` or `SPOT` ) or Fargate ( `FARGATE` or `FARGATE_SPOT` ); EC2 and Fargate compute environments can't be mixed.
* @property schedulingPolicyArn The Amazon Resource Name (ARN) of the scheduling policy. The format is `aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*` . For example, `aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy` .
* @property state The state of the job queue. If the job queue state is `ENABLED` , it is able to accept jobs. If the job queue state is `DISABLED` , new jobs can't be added to the queue, but jobs already in the queue can finish.
*/
public data class GetJobQueueResult(
public val computeEnvironmentOrder: List? = null,
public val jobQueueArn: String? = null,
public val jobStateTimeLimitActions: List? = null,
public val priority: Int? = null,
public val schedulingPolicyArn: String? = null,
public val state: JobQueueState? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.batch.outputs.GetJobQueueResult): GetJobQueueResult = GetJobQueueResult(
computeEnvironmentOrder = javaType.computeEnvironmentOrder().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.batch.kotlin.outputs.JobQueueComputeEnvironmentOrder.Companion.toKotlin(args0)
})
}),
jobQueueArn = javaType.jobQueueArn().map({ args0 -> args0 }).orElse(null),
jobStateTimeLimitActions = javaType.jobStateTimeLimitActions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.batch.kotlin.outputs.JobQueueJobStateTimeLimitAction.Companion.toKotlin(args0)
})
}),
priority = javaType.priority().map({ args0 -> args0 }).orElse(null),
schedulingPolicyArn = javaType.schedulingPolicyArn().map({ args0 -> args0 }).orElse(null),
state = javaType.state().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.batch.kotlin.enums.JobQueueState.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy