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

com.pulumi.awsnative.codepipeline.kotlin.outputs.PipelineGitConfiguration.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@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(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy