
com.pulumi.awsnative.connect.kotlin.inputs.RuleTriggerEventSourceArgs.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.connect.kotlin.inputs
import com.pulumi.awsnative.connect.inputs.RuleTriggerEventSourceArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.RuleTriggerEventSourceEventSourceName
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The event source that will trigger the rule.
* @property eventSourceName The name of event source.
* @property integrationAssociationArn The Amazon Resource Name (ARN) for the AppIntegration association.
*/
public data class RuleTriggerEventSourceArgs(
public val eventSourceName: Output,
public val integrationAssociationArn: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.connect.inputs.RuleTriggerEventSourceArgs =
com.pulumi.awsnative.connect.inputs.RuleTriggerEventSourceArgs.builder()
.eventSourceName(eventSourceName.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.integrationAssociationArn(integrationAssociationArn?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RuleTriggerEventSourceArgs].
*/
@PulumiTagMarker
public class RuleTriggerEventSourceArgsBuilder internal constructor() {
private var eventSourceName: Output? = null
private var integrationAssociationArn: Output? = null
/**
* @param value The name of event source.
*/
@JvmName("nnpnqfvptjuandio")
public suspend fun eventSourceName(`value`: Output) {
this.eventSourceName = value
}
/**
* @param value The Amazon Resource Name (ARN) for the AppIntegration association.
*/
@JvmName("uiuupgmfqxmajeri")
public suspend fun integrationAssociationArn(`value`: Output) {
this.integrationAssociationArn = value
}
/**
* @param value The name of event source.
*/
@JvmName("ghclxotwxxavyrst")
public suspend fun eventSourceName(`value`: RuleTriggerEventSourceEventSourceName) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eventSourceName = mapped
}
/**
* @param value The Amazon Resource Name (ARN) for the AppIntegration association.
*/
@JvmName("xlduranyqsyttbjn")
public suspend fun integrationAssociationArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.integrationAssociationArn = mapped
}
internal fun build(): RuleTriggerEventSourceArgs = RuleTriggerEventSourceArgs(
eventSourceName = eventSourceName ?: throw PulumiNullFieldException("eventSourceName"),
integrationAssociationArn = integrationAssociationArn,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy