com.pulumi.aws.ecs.kotlin.outputs.ServiceOrderedPlacementStrategy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ecs.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property field For the `spread` placement strategy, valid values are `instanceId` (or `host`,
* which has the same effect), or any platform or custom attribute that is applied to a container instance.
* For the `binpack` type, valid values are `memory` and `cpu`. For the `random` type, this attribute is not
* needed. For more information, see [Placement Strategy](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PlacementStrategy.html).
* > **Note:** for `spread`, `host` and `instanceId` will be normalized, by AWS, to be `instanceId`. This means the statefile will show `instanceId` but your config will differ if you use `host`.
* @property type Type of placement strategy. Must be one of: `binpack`, `random`, or `spread`
*/
public data class ServiceOrderedPlacementStrategy(
public val `field`: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.ecs.outputs.ServiceOrderedPlacementStrategy): ServiceOrderedPlacementStrategy = ServiceOrderedPlacementStrategy(
`field` = javaType.`field`().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy