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

com.pulumi.awsnative.accessanalyzer.kotlin.inputs.AnalyzerArchiveRuleArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.accessanalyzer.kotlin.inputs

import com.pulumi.awsnative.accessanalyzer.inputs.AnalyzerArchiveRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * An Access Analyzer archive rule. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
 * @property filter The criteria for the rule.
 * @property ruleName The archive rule name
 */
public data class AnalyzerArchiveRuleArgs(
    public val filter: Output>,
    public val ruleName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.accessanalyzer.inputs.AnalyzerArchiveRuleArgs =
        com.pulumi.awsnative.accessanalyzer.inputs.AnalyzerArchiveRuleArgs.builder()
            .filter(filter.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .ruleName(ruleName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AnalyzerArchiveRuleArgs].
 */
@PulumiTagMarker
public class AnalyzerArchiveRuleArgsBuilder internal constructor() {
    private var filter: Output>? = null

    private var ruleName: Output? = null

    /**
     * @param value The criteria for the rule.
     */
    @JvmName("hjxikggbvyudwsgm")
    public suspend fun filter(`value`: Output>) {
        this.filter = value
    }

    @JvmName("vitulnmsygnublap")
    public suspend fun filter(vararg values: Output) {
        this.filter = Output.all(values.asList())
    }

    /**
     * @param values The criteria for the rule.
     */
    @JvmName("yvhelernakxhdmuk")
    public suspend fun filter(values: List>) {
        this.filter = Output.all(values)
    }

    /**
     * @param value The archive rule name
     */
    @JvmName("glqavrywovhhcnyl")
    public suspend fun ruleName(`value`: Output) {
        this.ruleName = value
    }

    /**
     * @param value The criteria for the rule.
     */
    @JvmName("yotmsqivxaqwkfhs")
    public suspend fun filter(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param argument The criteria for the rule.
     */
    @JvmName("npmnahultouslhgh")
    public suspend fun filter(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalyzerFilterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param argument The criteria for the rule.
     */
    @JvmName("cqiibwihimaptyfb")
    public suspend fun filter(vararg argument: suspend AnalyzerFilterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalyzerFilterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param argument The criteria for the rule.
     */
    @JvmName("lblxwpgjyifncypt")
    public suspend fun filter(argument: suspend AnalyzerFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AnalyzerFilterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param values The criteria for the rule.
     */
    @JvmName("optlyhniwlaxnovx")
    public suspend fun filter(vararg values: AnalyzerFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param value The archive rule name
     */
    @JvmName("miqlbsryeaqmctud")
    public suspend fun ruleName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleName = mapped
    }

    internal fun build(): AnalyzerArchiveRuleArgs = AnalyzerArchiveRuleArgs(
        filter = filter ?: throw PulumiNullFieldException("filter"),
        ruleName = ruleName ?: throw PulumiNullFieldException("ruleName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy