com.pulumi.awsnative.iotwireless.kotlin.TaskDefinitionArgs.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.iotwireless.kotlin
import com.pulumi.awsnative.iotwireless.TaskDefinitionArgs.builder
import com.pulumi.awsnative.iotwireless.kotlin.enums.TaskDefinitionType
import com.pulumi.awsnative.iotwireless.kotlin.inputs.TaskDefinitionLoRaWanUpdateGatewayTaskEntryArgs
import com.pulumi.awsnative.iotwireless.kotlin.inputs.TaskDefinitionLoRaWanUpdateGatewayTaskEntryArgsBuilder
import com.pulumi.awsnative.iotwireless.kotlin.inputs.TaskDefinitionUpdateWirelessGatewayTaskCreateArgs
import com.pulumi.awsnative.iotwireless.kotlin.inputs.TaskDefinitionUpdateWirelessGatewayTaskCreateArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Creates a gateway task definition.
* @property autoCreateTasks Whether to automatically create tasks using this task definition for all gateways with the specified current version. If false, the task must me created by calling CreateWirelessGatewayTask.
* @property loRaWanUpdateGatewayTaskEntry The list of task definitions.
* @property name The name of the new resource.
* @property tags A list of key-value pairs that contain metadata for the destination.
* @property taskDefinitionType A filter to list only the wireless gateway task definitions that use this task definition type
* @property update Information about the gateways to update.
*/
public data class TaskDefinitionArgs(
public val autoCreateTasks: Output? = null,
public val loRaWanUpdateGatewayTaskEntry: Output? =
null,
public val name: Output? = null,
public val tags: Output>? = null,
public val taskDefinitionType: Output? = null,
public val update: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotwireless.TaskDefinitionArgs =
com.pulumi.awsnative.iotwireless.TaskDefinitionArgs.builder()
.autoCreateTasks(autoCreateTasks?.applyValue({ args0 -> args0 }))
.loRaWanUpdateGatewayTaskEntry(
loRaWanUpdateGatewayTaskEntry?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.taskDefinitionType(
taskDefinitionType?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.update(update?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [TaskDefinitionArgs].
*/
@PulumiTagMarker
public class TaskDefinitionArgsBuilder internal constructor() {
private var autoCreateTasks: Output? = null
private var loRaWanUpdateGatewayTaskEntry:
Output? = null
private var name: Output? = null
private var tags: Output>? = null
private var taskDefinitionType: Output? = null
private var update: Output? = null
/**
* @param value Whether to automatically create tasks using this task definition for all gateways with the specified current version. If false, the task must me created by calling CreateWirelessGatewayTask.
*/
@JvmName("dquhsylsvlobdsev")
public suspend fun autoCreateTasks(`value`: Output) {
this.autoCreateTasks = value
}
/**
* @param value The list of task definitions.
*/
@JvmName("lirnpwpkhwhwhkmd")
public suspend fun loRaWanUpdateGatewayTaskEntry(`value`: Output) {
this.loRaWanUpdateGatewayTaskEntry = value
}
/**
* @param value The name of the new resource.
*/
@JvmName("ddxgysmuctocaqbu")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A list of key-value pairs that contain metadata for the destination.
*/
@JvmName("egeweexryvcbjrpo")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("qaebfyrbyyalhyas")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values A list of key-value pairs that contain metadata for the destination.
*/
@JvmName("jgguuxgpgtxyvsma")
public suspend fun tags(values: List