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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.codepipeline.kotlin.outputs

import com.pulumi.awsnative.codepipeline.kotlin.enums.PipelineTriggerDeclarationProviderType
import kotlin.Suppress

/**
 * Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.
 * @property gitConfiguration Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
 * @property providerType The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
 */
public data class PipelineTriggerDeclaration(
    public val gitConfiguration: PipelineGitConfiguration? = null,
    public val providerType: PipelineTriggerDeclarationProviderType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.codepipeline.outputs.PipelineTriggerDeclaration): PipelineTriggerDeclaration = PipelineTriggerDeclaration(
            gitConfiguration = javaType.gitConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.codepipeline.kotlin.outputs.PipelineGitConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            providerType = javaType.providerType().let({ args0 ->
                com.pulumi.awsnative.codepipeline.kotlin.enums.PipelineTriggerDeclarationProviderType.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy