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

com.pulumi.awsnative.imagebuilder.kotlin.inputs.ImagePipelineImageScanningConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.imagebuilder.kotlin.inputs

import com.pulumi.awsnative.imagebuilder.inputs.ImagePipelineImageScanningConfigurationArgs.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

/**
 * 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 ImagePipelineImageScanningConfigurationArgs(
    public val ecrConfiguration: Output? = null,
    public val imageScanningEnabled: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.ImagePipelineImageScanningConfigurationArgs =
        com.pulumi.awsnative.imagebuilder.inputs.ImagePipelineImageScanningConfigurationArgs.builder()
            .ecrConfiguration(ecrConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .imageScanningEnabled(imageScanningEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ImagePipelineImageScanningConfigurationArgs].
 */
@PulumiTagMarker
public class ImagePipelineImageScanningConfigurationArgsBuilder internal constructor() {
    private var ecrConfiguration: Output? = null

    private var imageScanningEnabled: Output? = null

    /**
     * @param value Contains ECR settings for vulnerability scans.
     */
    @JvmName("qinbyxpupwegglnh")
    public suspend fun ecrConfiguration(`value`: Output) {
        this.ecrConfiguration = value
    }

    /**
     * @param value 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.
     */
    @JvmName("matjpiivdxldrrrm")
    public suspend fun imageScanningEnabled(`value`: Output) {
        this.imageScanningEnabled = value
    }

    /**
     * @param value Contains ECR settings for vulnerability scans.
     */
    @JvmName("hrhcxkhygvtkjrrt")
    public suspend fun ecrConfiguration(`value`: ImagePipelineEcrConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ecrConfiguration = mapped
    }

    /**
     * @param argument Contains ECR settings for vulnerability scans.
     */
    @JvmName("vavxvvgwitxwjklq")
    public suspend fun ecrConfiguration(argument: suspend ImagePipelineEcrConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ImagePipelineEcrConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ecrConfiguration = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("whbcqkdmkdldqgwi")
    public suspend fun imageScanningEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageScanningEnabled = mapped
    }

    internal fun build(): ImagePipelineImageScanningConfigurationArgs =
        ImagePipelineImageScanningConfigurationArgs(
            ecrConfiguration = ecrConfiguration,
            imageScanningEnabled = imageScanningEnabled,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy