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

com.pulumi.aws.ecr.kotlin.inputs.RepositoryImageScanningConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ecr.kotlin.inputs

import com.pulumi.aws.ecr.inputs.RepositoryImageScanningConfigurationArgs.builder
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.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property scanOnPush Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
 */
public data class RepositoryImageScanningConfigurationArgs(
    public val scanOnPush: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ecr.inputs.RepositoryImageScanningConfigurationArgs =
        com.pulumi.aws.ecr.inputs.RepositoryImageScanningConfigurationArgs.builder()
            .scanOnPush(scanOnPush.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RepositoryImageScanningConfigurationArgs].
 */
@PulumiTagMarker
public class RepositoryImageScanningConfigurationArgsBuilder internal constructor() {
    private var scanOnPush: Output? = null

    /**
     * @param value Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
     */
    @JvmName("icnhucwqsvxowaio")
    public suspend fun scanOnPush(`value`: Output) {
        this.scanOnPush = value
    }

    /**
     * @param value Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
     */
    @JvmName("ggmuhxlkacogjifd")
    public suspend fun scanOnPush(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scanOnPush = mapped
    }

    internal fun build(): RepositoryImageScanningConfigurationArgs =
        RepositoryImageScanningConfigurationArgs(
            scanOnPush = scanOnPush ?: throw PulumiNullFieldException("scanOnPush"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy