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

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

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

package com.pulumi.awsnative.deadline.kotlin

import com.pulumi.awsnative.deadline.QueueArgs.builder
import com.pulumi.awsnative.deadline.kotlin.enums.QueueDefaultQueueBudgetAction
import com.pulumi.awsnative.deadline.kotlin.inputs.QueueJobAttachmentSettingsArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.QueueJobAttachmentSettingsArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.inputs.QueueJobRunAsUserArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.QueueJobRunAsUserArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::Deadline::Queue Resource Type
 * @property allowedStorageProfileIds The identifiers of the storage profiles that this queue can use to share assets between workers using different operating systems.
 * @property defaultBudgetAction The default action taken on a queue summary if a budget wasn't configured.
 * @property description A description of the queue that helps identify what the queue is used for.
 * @property displayName The display name of the queue 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 jobAttachmentSettings The job attachment settings. These are the Amazon S3 bucket name and the Amazon S3 prefix.
 * @property jobRunAsUser Identifies the user for a job.
 * @property requiredFileSystemLocationNames The file system location that the queue uses.
 * @property roleArn The Amazon Resource Name (ARN) of the IAM role that workers use when running jobs in this queue.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class QueueArgs(
    public val allowedStorageProfileIds: Output>? = null,
    public val defaultBudgetAction: Output? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val farmId: Output? = null,
    public val jobAttachmentSettings: Output? = null,
    public val jobRunAsUser: Output? = null,
    public val requiredFileSystemLocationNames: Output>? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.deadline.QueueArgs =
        com.pulumi.awsnative.deadline.QueueArgs.builder()
            .allowedStorageProfileIds(
                allowedStorageProfileIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .defaultBudgetAction(
                defaultBudgetAction?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .farmId(farmId?.applyValue({ args0 -> args0 }))
            .jobAttachmentSettings(
                jobAttachmentSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .jobRunAsUser(jobRunAsUser?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .requiredFileSystemLocationNames(
                requiredFileSystemLocationNames?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var defaultBudgetAction: Output? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var farmId: Output? = null

    private var jobAttachmentSettings: Output? = null

    private var jobRunAsUser: Output? = null

    private var requiredFileSystemLocationNames: Output>? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The identifiers of the storage profiles that this queue can use to share assets between workers using different operating systems.
     */
    @JvmName("vyfppxmelvxhaubq")
    public suspend fun allowedStorageProfileIds(`value`: Output>) {
        this.allowedStorageProfileIds = value
    }

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

    /**
     * @param values The identifiers of the storage profiles that this queue can use to share assets between workers using different operating systems.
     */
    @JvmName("nwdukbwogqseolxi")
    public suspend fun allowedStorageProfileIds(values: List>) {
        this.allowedStorageProfileIds = Output.all(values)
    }

    /**
     * @param value The default action taken on a queue summary if a budget wasn't configured.
     */
    @JvmName("xirffsqbwhbotqie")
    public suspend fun defaultBudgetAction(`value`: Output) {
        this.defaultBudgetAction = value
    }

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

    /**
     * @param value The display name of the queue 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("jsjvivdfurwicfxf")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

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

    /**
     * @param value The job attachment settings. These are the Amazon S3 bucket name and the Amazon S3 prefix.
     */
    @JvmName("pdieoijykhjmvqub")
    public suspend fun jobAttachmentSettings(`value`: Output) {
        this.jobAttachmentSettings = value
    }

    /**
     * @param value Identifies the user for a job.
     */
    @JvmName("iynrpcdwkrjjsxbh")
    public suspend fun jobRunAsUser(`value`: Output) {
        this.jobRunAsUser = value
    }

    /**
     * @param value The file system location that the queue uses.
     */
    @JvmName("wqoodkhghdwsgyqy")
    public suspend fun requiredFileSystemLocationNames(`value`: Output>) {
        this.requiredFileSystemLocationNames = value
    }

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

    /**
     * @param values The file system location that the queue uses.
     */
    @JvmName("xwhikscwbkxlwgcx")
    public suspend fun requiredFileSystemLocationNames(values: List>) {
        this.requiredFileSystemLocationNames = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role that workers use when running jobs in this queue.
     */
    @JvmName("xisvwmirlhruhnlp")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

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

    @JvmName("kiantcfgkjoaxces")
    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("gsihvgnaxybqxeib")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The identifiers of the storage profiles that this queue can use to share assets between workers using different operating systems.
     */
    @JvmName("lghfovvuumdaapib")
    public suspend fun allowedStorageProfileIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedStorageProfileIds = mapped
    }

    /**
     * @param values The identifiers of the storage profiles that this queue can use to share assets between workers using different operating systems.
     */
    @JvmName("sdiwvxgvcvcbwygs")
    public suspend fun allowedStorageProfileIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedStorageProfileIds = mapped
    }

    /**
     * @param value The default action taken on a queue summary if a budget wasn't configured.
     */
    @JvmName("thyfdaphbrbmfncj")
    public suspend fun defaultBudgetAction(`value`: QueueDefaultQueueBudgetAction?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultBudgetAction = mapped
    }

    /**
     * @param value A description of the queue that helps identify what the queue is used for.
     */
    @JvmName("qrxbktxmmavfmgiw")
    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 queue 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("jabspjtfsneatxbh")
    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("yfthxkueoggfkqec")
    public suspend fun farmId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.farmId = mapped
    }

    /**
     * @param value The job attachment settings. These are the Amazon S3 bucket name and the Amazon S3 prefix.
     */
    @JvmName("aiejldhlvgjjgriu")
    public suspend fun jobAttachmentSettings(`value`: QueueJobAttachmentSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobAttachmentSettings = mapped
    }

    /**
     * @param argument The job attachment settings. These are the Amazon S3 bucket name and the Amazon S3 prefix.
     */
    @JvmName("wjxldgngqcuniryt")
    public suspend fun jobAttachmentSettings(argument: suspend QueueJobAttachmentSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = QueueJobAttachmentSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.jobAttachmentSettings = mapped
    }

    /**
     * @param value Identifies the user for a job.
     */
    @JvmName("kguanynsyuitenmr")
    public suspend fun jobRunAsUser(`value`: QueueJobRunAsUserArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobRunAsUser = mapped
    }

    /**
     * @param argument Identifies the user for a job.
     */
    @JvmName("erlttnvwhtbausbc")
    public suspend fun jobRunAsUser(argument: suspend QueueJobRunAsUserArgsBuilder.() -> Unit) {
        val toBeMapped = QueueJobRunAsUserArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.jobRunAsUser = mapped
    }

    /**
     * @param value The file system location that the queue uses.
     */
    @JvmName("flsbugotjkcpfswo")
    public suspend fun requiredFileSystemLocationNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requiredFileSystemLocationNames = mapped
    }

    /**
     * @param values The file system location that the queue uses.
     */
    @JvmName("temluqypooepftqx")
    public suspend fun requiredFileSystemLocationNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requiredFileSystemLocationNames = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role that workers use when running jobs in this queue.
     */
    @JvmName("kkaiwwjfjeltqkxw")
    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("etejiaklmobnitdm")
    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("nsippuyefbhefama")
    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("jmxccejglqgjqatc")
    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("tvesaxxetianfnhj")
    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("sbdxyitpajjbpcno")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): QueueArgs = QueueArgs(
        allowedStorageProfileIds = allowedStorageProfileIds,
        defaultBudgetAction = defaultBudgetAction,
        description = description,
        displayName = displayName,
        farmId = farmId,
        jobAttachmentSettings = jobAttachmentSettings,
        jobRunAsUser = jobRunAsUser,
        requiredFileSystemLocationNames = requiredFileSystemLocationNames,
        roleArn = roleArn,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy