
com.pulumi.awsnative.ecr.kotlin.inputs.RepositoryImageScanningConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ecr.kotlin.inputs
import com.pulumi.awsnative.ecr.inputs.RepositoryImageScanningConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The image scanning configuration for a repository.
* @property scanOnPush The setting that determines whether images are scanned after being pushed to a repository. If set to ``true``, images will be scanned after being pushed. If this parameter is not specified, it will default to ``false`` and images will not be scanned unless a scan is manually started.
*/
public data class RepositoryImageScanningConfigurationArgs(
public val scanOnPush: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ecr.inputs.RepositoryImageScanningConfigurationArgs =
com.pulumi.awsnative.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 The setting that determines whether images are scanned after being pushed to a repository. If set to ``true``, images will be scanned after being pushed. If this parameter is not specified, it will default to ``false`` and images will not be scanned unless a scan is manually started.
*/
@JvmName("ulkmhhstgpjvqvvd")
public suspend fun scanOnPush(`value`: Output) {
this.scanOnPush = value
}
/**
* @param value The setting that determines whether images are scanned after being pushed to a repository. If set to ``true``, images will be scanned after being pushed. If this parameter is not specified, it will default to ``false`` and images will not be scanned unless a scan is manually started.
*/
@JvmName("fhredctixtrjmfyy")
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,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy