com.pulumi.gcp.eventarc.kotlin.outputs.TriggerDestination.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.eventarc.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property cloudFunction The Cloud Function resource name. Only Cloud Functions V2 is supported. Format projects/{project}/locations/{location}/functions/{function} This is a read-only field. [WARNING] Creating Cloud Functions V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.
* @property cloudRunService Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
* @property gke A GKE service capable of receiving events. The service should be running in the same project as the trigger.
* @property httpEndpoint An HTTP endpoint destination described by an URI.
* @property networkConfig Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.
* @property workflow The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`
*/
public data class TriggerDestination(
public val cloudFunction: String? = null,
public val cloudRunService: TriggerDestinationCloudRunService? = null,
public val gke: TriggerDestinationGke? = null,
public val httpEndpoint: TriggerDestinationHttpEndpoint? = null,
public val networkConfig: TriggerDestinationNetworkConfig? = null,
public val workflow: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.eventarc.outputs.TriggerDestination): TriggerDestination = TriggerDestination(
cloudFunction = javaType.cloudFunction().map({ args0 -> args0 }).orElse(null),
cloudRunService = javaType.cloudRunService().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.eventarc.kotlin.outputs.TriggerDestinationCloudRunService.Companion.toKotlin(args0)
})
}).orElse(null),
gke = javaType.gke().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.eventarc.kotlin.outputs.TriggerDestinationGke.Companion.toKotlin(args0)
})
}).orElse(null),
httpEndpoint = javaType.httpEndpoint().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.eventarc.kotlin.outputs.TriggerDestinationHttpEndpoint.Companion.toKotlin(args0)
})
}).orElse(null),
networkConfig = javaType.networkConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.eventarc.kotlin.outputs.TriggerDestinationNetworkConfig.Companion.toKotlin(args0)
})
}).orElse(null),
workflow = javaType.workflow().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy