
com.pulumi.awsnative.batch.kotlin.outputs.SchedulingPolicyShareAttributes.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.batch.kotlin.outputs
import kotlin.Double
import kotlin.String
import kotlin.Suppress
/**
*
* @property shareIdentifier A fair share identifier or fair share identifier prefix. If the string ends with an asterisk (*), this entry specifies the weight factor to use for fair share identifiers that start with that prefix. The list of fair share identifiers in a fair share policy can't overlap. For example, you can't have one that specifies a `shareIdentifier` of `UserA*` and another that specifies a `shareIdentifier` of `UserA-1` .
* There can be no more than 500 fair share identifiers active in a job queue.
* The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
* @property weightFactor The weight factor for the fair share identifier. The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.
* The smallest supported value is 0.0001, and the largest supported value is 999.9999.
*/
public data class SchedulingPolicyShareAttributes(
public val shareIdentifier: String? = null,
public val weightFactor: Double? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.batch.outputs.SchedulingPolicyShareAttributes): SchedulingPolicyShareAttributes = SchedulingPolicyShareAttributes(
shareIdentifier = javaType.shareIdentifier().map({ args0 -> args0 }).orElse(null),
weightFactor = javaType.weightFactor().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy