com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineImageScanningConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.imagebuilder.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
/**
* Determines if tests should run after building the image. Image Builder defaults to enable tests to run following the image build, before image distribution.
* @property ecrConfiguration Contains ECR settings for vulnerability scans.
* @property imageScanningEnabled This sets whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
*/
public data class ImagePipelineImageScanningConfiguration(
public val ecrConfiguration: ImagePipelineEcrConfiguration? = null,
public val imageScanningEnabled: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.imagebuilder.outputs.ImagePipelineImageScanningConfiguration): ImagePipelineImageScanningConfiguration = ImagePipelineImageScanningConfiguration(
ecrConfiguration = javaType.ecrConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineEcrConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
imageScanningEnabled = javaType.imageScanningEnabled().map({ args0 -> args0 }).orElse(null),
)
}
}