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

com.pulumi.awsnative.inspectorv2.kotlin.CisScanConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.inspectorv2.kotlin

import com.pulumi.awsnative.inspectorv2.CisScanConfigurationArgs.builder
import com.pulumi.awsnative.inspectorv2.kotlin.enums.CisScanConfigurationCisSecurityLevel
import com.pulumi.awsnative.inspectorv2.kotlin.inputs.CisScanConfigurationCisTargetsArgs
import com.pulumi.awsnative.inspectorv2.kotlin.inputs.CisScanConfigurationCisTargetsArgsBuilder
import com.pulumi.awsnative.inspectorv2.kotlin.inputs.CisScanConfigurationScheduleArgs
import com.pulumi.awsnative.inspectorv2.kotlin.inputs.CisScanConfigurationScheduleArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * CIS Scan Configuration resource schema
 * @property scanName Name of the scan
 * @property schedule The CIS scan configuration's schedule.
 * @property securityLevel The CIS scan configuration's CIS Benchmark level.
 * @property tags The CIS scan configuration's tags.
 * @property targets The CIS scan configuration's targets.
 */
public data class CisScanConfigurationArgs(
    public val scanName: Output? = null,
    public val schedule: Output? = null,
    public val securityLevel: Output? = null,
    public val tags: Output>? = null,
    public val targets: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.inspectorv2.CisScanConfigurationArgs =
        com.pulumi.awsnative.inspectorv2.CisScanConfigurationArgs.builder()
            .scanName(scanName?.applyValue({ args0 -> args0 }))
            .schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .securityLevel(securityLevel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .targets(targets?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [CisScanConfigurationArgs].
 */
@PulumiTagMarker
public class CisScanConfigurationArgsBuilder internal constructor() {
    private var scanName: Output? = null

    private var schedule: Output? = null

    private var securityLevel: Output? = null

    private var tags: Output>? = null

    private var targets: Output? = null

    /**
     * @param value Name of the scan
     */
    @JvmName("ygmgehfdnnxvdtpi")
    public suspend fun scanName(`value`: Output) {
        this.scanName = value
    }

    /**
     * @param value The CIS scan configuration's schedule.
     */
    @JvmName("aymxtankvjxqgsbw")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value The CIS scan configuration's CIS Benchmark level.
     */
    @JvmName("acydtyvhygutehbe")
    public suspend fun securityLevel(`value`: Output) {
        this.securityLevel = value
    }

    /**
     * @param value The CIS scan configuration's tags.
     */
    @JvmName("xokbmnpkibnffhrn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The CIS scan configuration's targets.
     */
    @JvmName("twpjowkgbegrsocu")
    public suspend fun targets(`value`: Output) {
        this.targets = value
    }

    /**
     * @param value Name of the scan
     */
    @JvmName("gqumoevyfdcfwafo")
    public suspend fun scanName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scanName = mapped
    }

    /**
     * @param value The CIS scan configuration's schedule.
     */
    @JvmName("hjmavlgglebdegju")
    public suspend fun schedule(`value`: CisScanConfigurationScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument The CIS scan configuration's schedule.
     */
    @JvmName("sbawdlollgevugqt")
    public suspend fun schedule(argument: suspend CisScanConfigurationScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = CisScanConfigurationScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    /**
     * @param value The CIS scan configuration's CIS Benchmark level.
     */
    @JvmName("mhxyvicrofnvsoma")
    public suspend fun securityLevel(`value`: CisScanConfigurationCisSecurityLevel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityLevel = mapped
    }

    /**
     * @param value The CIS scan configuration's tags.
     */
    @JvmName("xefcfnfinuwlbmmx")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The CIS scan configuration's tags.
     */
    @JvmName("dwnovsmailbosiju")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The CIS scan configuration's targets.
     */
    @JvmName("brbfgaeydypgjxdm")
    public suspend fun targets(`value`: CisScanConfigurationCisTargetsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targets = mapped
    }

    /**
     * @param argument The CIS scan configuration's targets.
     */
    @JvmName("ahsecxqvserpgcyf")
    public suspend fun targets(argument: suspend CisScanConfigurationCisTargetsArgsBuilder.() -> Unit) {
        val toBeMapped = CisScanConfigurationCisTargetsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.targets = mapped
    }

    internal fun build(): CisScanConfigurationArgs = CisScanConfigurationArgs(
        scanName = scanName,
        schedule = schedule,
        securityLevel = securityLevel,
        tags = tags,
        targets = targets,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy