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

com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineImageScanningConfiguration.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: 1.11.0.0
Show newest version
@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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy