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

com.pulumi.aws.securityhub.kotlin.inputs.ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationArgs.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.securityhub.kotlin.inputs

import com.pulumi.aws.securityhub.inputs.ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property disabledControlIdentifiers A list of security controls that are disabled in the configuration policy Security Hub enables all other controls (including newly released controls) other than the listed controls. Conflicts with `enabled_control_identifiers`.
 * @property enabledControlIdentifiers A list of security controls that are enabled in the configuration policy. Security Hub disables all other controls (including newly released controls) other than the listed controls. Conflicts with `disabled_control_identifiers`.
 * @property securityControlCustomParameters A list of control parameter customizations that are included in a configuration policy. Include multiple blocks to define multiple control custom parameters. See below.
 */
public data class ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationArgs(
    public val disabledControlIdentifiers: Output>? = null,
    public val enabledControlIdentifiers: Output>? = null,
    public val securityControlCustomParameters: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.securityhub.inputs.ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationArgs =
        com.pulumi.aws.securityhub.inputs.ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationArgs.builder()
            .disabledControlIdentifiers(
                disabledControlIdentifiers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .enabledControlIdentifiers(
                enabledControlIdentifiers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .securityControlCustomParameters(
                securityControlCustomParameters?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            ).build()
}

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

    private var enabledControlIdentifiers: Output>? = null

    private var securityControlCustomParameters:
        Output>? =
        null

    /**
     * @param value A list of security controls that are disabled in the configuration policy Security Hub enables all other controls (including newly released controls) other than the listed controls. Conflicts with `enabled_control_identifiers`.
     */
    @JvmName("qtvfoxybqaypipba")
    public suspend fun disabledControlIdentifiers(`value`: Output>) {
        this.disabledControlIdentifiers = value
    }

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

    /**
     * @param values A list of security controls that are disabled in the configuration policy Security Hub enables all other controls (including newly released controls) other than the listed controls. Conflicts with `enabled_control_identifiers`.
     */
    @JvmName("iqpoatobsbuqbljk")
    public suspend fun disabledControlIdentifiers(values: List>) {
        this.disabledControlIdentifiers = Output.all(values)
    }

    /**
     * @param value A list of security controls that are enabled in the configuration policy. Security Hub disables all other controls (including newly released controls) other than the listed controls. Conflicts with `disabled_control_identifiers`.
     */
    @JvmName("tlkvihddwcihifdq")
    public suspend fun enabledControlIdentifiers(`value`: Output>) {
        this.enabledControlIdentifiers = value
    }

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

    /**
     * @param values A list of security controls that are enabled in the configuration policy. Security Hub disables all other controls (including newly released controls) other than the listed controls. Conflicts with `disabled_control_identifiers`.
     */
    @JvmName("hiycqvunkfrnehtu")
    public suspend fun enabledControlIdentifiers(values: List>) {
        this.enabledControlIdentifiers = Output.all(values)
    }

    /**
     * @param value A list of control parameter customizations that are included in a configuration policy. Include multiple blocks to define multiple control custom parameters. See below.
     */
    @JvmName("momcewnthihyqqjx")
    public suspend fun securityControlCustomParameters(`value`: Output>) {
        this.securityControlCustomParameters = value
    }

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

    /**
     * @param values A list of control parameter customizations that are included in a configuration policy. Include multiple blocks to define multiple control custom parameters. See below.
     */
    @JvmName("yrdnqilgymmgtrey")
    public suspend fun securityControlCustomParameters(values: List>) {
        this.securityControlCustomParameters = Output.all(values)
    }

    /**
     * @param value A list of security controls that are disabled in the configuration policy Security Hub enables all other controls (including newly released controls) other than the listed controls. Conflicts with `enabled_control_identifiers`.
     */
    @JvmName("syqsipidpxqganlg")
    public suspend fun disabledControlIdentifiers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disabledControlIdentifiers = mapped
    }

    /**
     * @param values A list of security controls that are disabled in the configuration policy Security Hub enables all other controls (including newly released controls) other than the listed controls. Conflicts with `enabled_control_identifiers`.
     */
    @JvmName("uuvhxkdgfhrcbvbv")
    public suspend fun disabledControlIdentifiers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.disabledControlIdentifiers = mapped
    }

    /**
     * @param value A list of security controls that are enabled in the configuration policy. Security Hub disables all other controls (including newly released controls) other than the listed controls. Conflicts with `disabled_control_identifiers`.
     */
    @JvmName("kpyqmotjymmsciqa")
    public suspend fun enabledControlIdentifiers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabledControlIdentifiers = mapped
    }

    /**
     * @param values A list of security controls that are enabled in the configuration policy. Security Hub disables all other controls (including newly released controls) other than the listed controls. Conflicts with `disabled_control_identifiers`.
     */
    @JvmName("eexqcgguhxqqclxs")
    public suspend fun enabledControlIdentifiers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabledControlIdentifiers = mapped
    }

    /**
     * @param value A list of control parameter customizations that are included in a configuration policy. Include multiple blocks to define multiple control custom parameters. See below.
     */
    @JvmName("txlolcihdwayattv")
    public suspend fun securityControlCustomParameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityControlCustomParameters = mapped
    }

    /**
     * @param argument A list of control parameter customizations that are included in a configuration policy. Include multiple blocks to define multiple control custom parameters. See below.
     */
    @JvmName("eewxaryclkucklxa")
    public suspend fun securityControlCustomParameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationSecurityControlCustomParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.securityControlCustomParameters = mapped
    }

    /**
     * @param argument A list of control parameter customizations that are included in a configuration policy. Include multiple blocks to define multiple control custom parameters. See below.
     */
    @JvmName("nasfesaraunyvuxu")
    public suspend fun securityControlCustomParameters(vararg argument: suspend ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationSecurityControlCustomParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationSecurityControlCustomParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.securityControlCustomParameters = mapped
    }

    /**
     * @param argument A list of control parameter customizations that are included in a configuration policy. Include multiple blocks to define multiple control custom parameters. See below.
     */
    @JvmName("ufafrjmixtqwcfsr")
    public suspend fun securityControlCustomParameters(argument: suspend ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationSecurityControlCustomParameterArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationSecurityControlCustomParameterArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.securityControlCustomParameters = mapped
    }

    /**
     * @param values A list of control parameter customizations that are included in a configuration policy. Include multiple blocks to define multiple control custom parameters. See below.
     */
    @JvmName("mgyvywfchfwcrupq")
    public suspend fun securityControlCustomParameters(vararg values: ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationSecurityControlCustomParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityControlCustomParameters = mapped
    }

    internal fun build(): ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationArgs =
        ConfigurationPolicyConfigurationPolicySecurityControlsConfigurationArgs(
            disabledControlIdentifiers = disabledControlIdentifiers,
            enabledControlIdentifiers = enabledControlIdentifiers,
            securityControlCustomParameters = securityControlCustomParameters,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy