com.pulumi.aws.imagebuilder.kotlin.inputs.ImageImageScanningConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.imagebuilder.kotlin.inputs
import com.pulumi.aws.imagebuilder.inputs.ImageImageScanningConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property ecrConfiguration Configuration block with ECR configuration. Detailed below.
* @property imageScanningEnabled Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image. Defaults to `false`.
*/
public data class ImageImageScanningConfigurationArgs(
public val ecrConfiguration: Output? = null,
public val imageScanningEnabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.imagebuilder.inputs.ImageImageScanningConfigurationArgs =
com.pulumi.aws.imagebuilder.inputs.ImageImageScanningConfigurationArgs.builder()
.ecrConfiguration(ecrConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.imageScanningEnabled(imageScanningEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ImageImageScanningConfigurationArgs].
*/
@PulumiTagMarker
public class ImageImageScanningConfigurationArgsBuilder internal constructor() {
private var ecrConfiguration: Output? = null
private var imageScanningEnabled: Output? = null
/**
* @param value Configuration block with ECR configuration. Detailed below.
*/
@JvmName("hxaunggjiwbpalid")
public suspend fun ecrConfiguration(`value`: Output) {
this.ecrConfiguration = value
}
/**
* @param value Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image. Defaults to `false`.
*/
@JvmName("itqxgnapdafaoqxv")
public suspend fun imageScanningEnabled(`value`: Output) {
this.imageScanningEnabled = value
}
/**
* @param value Configuration block with ECR configuration. Detailed below.
*/
@JvmName("nwecchrfjtoldakm")
public suspend fun ecrConfiguration(`value`: ImageImageScanningConfigurationEcrConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ecrConfiguration = mapped
}
/**
* @param argument Configuration block with ECR configuration. Detailed below.
*/
@JvmName("wbcxmxpilojdahjt")
public suspend fun ecrConfiguration(argument: suspend ImageImageScanningConfigurationEcrConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = ImageImageScanningConfigurationEcrConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ecrConfiguration = mapped
}
/**
* @param value Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image. Defaults to `false`.
*/
@JvmName("dpyejgjgweaycjah")
public suspend fun imageScanningEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.imageScanningEnabled = mapped
}
internal fun build(): ImageImageScanningConfigurationArgs = ImageImageScanningConfigurationArgs(
ecrConfiguration = ecrConfiguration,
imageScanningEnabled = imageScanningEnabled,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy