All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.deadline.kotlin.FleetArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.deadline.kotlin

import com.pulumi.awsnative.deadline.FleetArgs.builder
import com.pulumi.awsnative.deadline.kotlin.inputs.FleetConfiguration0PropertiesArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.FleetConfiguration1PropertiesArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::Deadline::Fleet Resource Type
 * @property configuration The configuration details for the fleet.
 * @property description A description that helps identify what the fleet is used for.
 * @property displayName The display name of the fleet summary to update.
 * > This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
 * @property farmId The farm ID.
 * @property maxWorkerCount The maximum number of workers specified in the fleet.
 * @property minWorkerCount The minimum number of workers in the fleet.
 * @property roleArn The IAM role that workers in the fleet use when processing jobs.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class FleetArgs(
    public val configuration: Output>? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val farmId: Output? = null,
    public val maxWorkerCount: Output? = null,
    public val minWorkerCount: Output? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.deadline.FleetArgs =
        com.pulumi.awsnative.deadline.FleetArgs.builder()
            .configuration(
                configuration?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .farmId(farmId?.applyValue({ args0 -> args0 }))
            .maxWorkerCount(maxWorkerCount?.applyValue({ args0 -> args0 }))
            .minWorkerCount(minWorkerCount?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [FleetArgs].
 */
@PulumiTagMarker
public class FleetArgsBuilder internal constructor() {
    private var configuration:
        Output>? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var farmId: Output? = null

    private var maxWorkerCount: Output? = null

    private var minWorkerCount: Output? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The configuration details for the fleet.
     */
    @JvmName("anikwliivcttwahc")
    public suspend fun configuration(`value`: Output>) {
        this.configuration = value
    }

    /**
     * @param value A description that helps identify what the fleet is used for.
     */
    @JvmName("rpucyacpwmxmlcss")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The display name of the fleet summary to update.
     * > This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
     */
    @JvmName("mnnvwccyxiqosnkm")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The farm ID.
     */
    @JvmName("naipfsjyrptuctuw")
    public suspend fun farmId(`value`: Output) {
        this.farmId = value
    }

    /**
     * @param value The maximum number of workers specified in the fleet.
     */
    @JvmName("voefngmpruouconb")
    public suspend fun maxWorkerCount(`value`: Output) {
        this.maxWorkerCount = value
    }

    /**
     * @param value The minimum number of workers in the fleet.
     */
    @JvmName("jsqikgoowaukwtbt")
    public suspend fun minWorkerCount(`value`: Output) {
        this.minWorkerCount = value
    }

    /**
     * @param value The IAM role that workers in the fleet use when processing jobs.
     */
    @JvmName("jkerfcdblyksbiem")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("uptpgiqchyvnmaqq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("gshonvnbxuaoahbx")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("tsbuuilrbymrwfdf")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The configuration details for the fleet.
     */
    @JvmName("otfhdmnvhrommwcj")
    public suspend fun configuration(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value The configuration details for the fleet.
     */
    @JvmName("socgbdnvxstrciyo")
    public fun configuration(`value`: FleetConfiguration0PropertiesArgs) {
        val toBeMapped = Either.ofLeft<
            FleetConfiguration0PropertiesArgs,
            FleetConfiguration1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value The configuration details for the fleet.
     */
    @JvmName("dycchnroqhrcrmvv")
    public fun configuration(`value`: FleetConfiguration1PropertiesArgs) {
        val toBeMapped = Either.ofRight<
            FleetConfiguration0PropertiesArgs,
            FleetConfiguration1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value A description that helps identify what the fleet is used for.
     */
    @JvmName("jdvajdigcawtjvtw")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The display name of the fleet summary to update.
     * > This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
     */
    @JvmName("mbhipswqxtrlmpcq")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The farm ID.
     */
    @JvmName("qfpgwivoghoibsoy")
    public suspend fun farmId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.farmId = mapped
    }

    /**
     * @param value The maximum number of workers specified in the fleet.
     */
    @JvmName("huylbqhhqubqowma")
    public suspend fun maxWorkerCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxWorkerCount = mapped
    }

    /**
     * @param value The minimum number of workers in the fleet.
     */
    @JvmName("dgxrtplrppjyurlu")
    public suspend fun minWorkerCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minWorkerCount = mapped
    }

    /**
     * @param value The IAM role that workers in the fleet use when processing jobs.
     */
    @JvmName("ejaejqktmejeibox")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("cisapbgoobtguhln")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("cpaokjlhjiempvag")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("xikconcluoaagivt")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("mxbveotumoegxkux")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("tsqptlhiescrxffr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): FleetArgs = FleetArgs(
        configuration = configuration,
        description = description,
        displayName = displayName,
        farmId = farmId,
        maxWorkerCount = maxWorkerCount,
        minWorkerCount = minWorkerCount,
        roleArn = roleArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy