com.pulumi.awsnative.codepipeline.kotlin.outputs.PipelineGitConfiguration.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.codepipeline.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A type of trigger configuration for Git-based source actions.
* @property pullRequest The field where the repository event that will start the pipeline is specified as pull requests.
* @property push The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
* @property sourceActionName The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
*/
public data class PipelineGitConfiguration(
public val pullRequest: List? = null,
public val push: List? = null,
public val sourceActionName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.codepipeline.outputs.PipelineGitConfiguration): PipelineGitConfiguration = PipelineGitConfiguration(
pullRequest = javaType.pullRequest().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codepipeline.kotlin.outputs.PipelineGitPullRequestFilter.Companion.toKotlin(args0)
})
}),
push = javaType.push().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codepipeline.kotlin.outputs.PipelineGitPushFilter.Companion.toKotlin(args0)
})
}),
sourceActionName = javaType.sourceActionName(),
)
}
}