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

com.pulumi.aws.imagebuilder.kotlin.inputs.ImagePipelineImageScanningConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.imagebuilder.kotlin.inputs

import com.pulumi.aws.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

/**
 *
 * @property ecrConfiguration Configuration block with ECR configuration for image scanning. Detailed below.
 * @property imageScanningEnabled Whether image scans are enabled. Defaults to `false`.
 */
public data class ImagePipelineImageScanningConfigurationArgs(
    public val ecrConfiguration: Output? =
        null,
    public val imageScanningEnabled: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.ImagePipelineImageScanningConfigurationArgs =
        com.pulumi.aws.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 Configuration block with ECR configuration for image scanning. Detailed below.
     */
    @JvmName("blwegydbwemncxek")
    public suspend fun ecrConfiguration(`value`: Output) {
        this.ecrConfiguration = value
    }

    /**
     * @param value Whether image scans are enabled. Defaults to `false`.
     */
    @JvmName("adblskdtbqavqegl")
    public suspend fun imageScanningEnabled(`value`: Output) {
        this.imageScanningEnabled = value
    }

    /**
     * @param value Configuration block with ECR configuration for image scanning. Detailed below.
     */
    @JvmName("ypixedutbdysbush")
    public suspend fun ecrConfiguration(`value`: ImagePipelineImageScanningConfigurationEcrConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ecrConfiguration = mapped
    }

    /**
     * @param argument Configuration block with ECR configuration for image scanning. Detailed below.
     */
    @JvmName("wykuhubvtjifupot")
    public suspend fun ecrConfiguration(argument: suspend ImagePipelineImageScanningConfigurationEcrConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ImagePipelineImageScanningConfigurationEcrConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.ecrConfiguration = mapped
    }

    /**
     * @param value Whether image scans are enabled. Defaults to `false`.
     */
    @JvmName("trhbuontpxuulocl")
    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 - 2024 Weber Informatics LLC | Privacy Policy