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

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

package com.pulumi.awsnative.securityhub.kotlin.inputs

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

/**
 * An object that defines how AWS Security Hub is configured.
 * @property enabledStandardIdentifiers A list that defines which security standards are enabled in the configuration policy.
 * @property securityControlsConfiguration An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
 * @property serviceEnabled Indicates whether Security Hub is enabled in the policy.
 */
public data class ConfigurationPolicySecurityHubPolicyArgs(
    public val enabledStandardIdentifiers: Output>? = null,
    public val securityControlsConfiguration: Output? = null,
    public val serviceEnabled: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.securityhub.inputs.ConfigurationPolicySecurityHubPolicyArgs =
        com.pulumi.awsnative.securityhub.inputs.ConfigurationPolicySecurityHubPolicyArgs.builder()
            .enabledStandardIdentifiers(
                enabledStandardIdentifiers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .securityControlsConfiguration(
                securityControlsConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .serviceEnabled(serviceEnabled?.applyValue({ args0 -> args0 })).build()
}

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

    private var securityControlsConfiguration:
        Output? = null

    private var serviceEnabled: Output? = null

    /**
     * @param value A list that defines which security standards are enabled in the configuration policy.
     */
    @JvmName("asefvhlcayivycrh")
    public suspend fun enabledStandardIdentifiers(`value`: Output>) {
        this.enabledStandardIdentifiers = value
    }

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

    /**
     * @param values A list that defines which security standards are enabled in the configuration policy.
     */
    @JvmName("yvjlfyuqvxitnjry")
    public suspend fun enabledStandardIdentifiers(values: List>) {
        this.enabledStandardIdentifiers = Output.all(values)
    }

    /**
     * @param value An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
     */
    @JvmName("enecndnrfecjkrxn")
    public suspend fun securityControlsConfiguration(`value`: Output) {
        this.securityControlsConfiguration = value
    }

    /**
     * @param value Indicates whether Security Hub is enabled in the policy.
     */
    @JvmName("uegdohpvvqopsgcu")
    public suspend fun serviceEnabled(`value`: Output) {
        this.serviceEnabled = value
    }

    /**
     * @param value A list that defines which security standards are enabled in the configuration policy.
     */
    @JvmName("txovtwvrgtkjyplr")
    public suspend fun enabledStandardIdentifiers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabledStandardIdentifiers = mapped
    }

    /**
     * @param values A list that defines which security standards are enabled in the configuration policy.
     */
    @JvmName("fswcfhlxgtwcgouc")
    public suspend fun enabledStandardIdentifiers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabledStandardIdentifiers = mapped
    }

    /**
     * @param value An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
     */
    @JvmName("yxtoajjbgtuuvcfv")
    public suspend fun securityControlsConfiguration(`value`: ConfigurationPolicySecurityControlsConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityControlsConfiguration = mapped
    }

    /**
     * @param argument An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
     */
    @JvmName("bjtyvxtttgqwqirm")
    public suspend fun securityControlsConfiguration(argument: suspend ConfigurationPolicySecurityControlsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ConfigurationPolicySecurityControlsConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.securityControlsConfiguration = mapped
    }

    /**
     * @param value Indicates whether Security Hub is enabled in the policy.
     */
    @JvmName("nwdtrxcsoseqpnme")
    public suspend fun serviceEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceEnabled = mapped
    }

    internal fun build(): ConfigurationPolicySecurityHubPolicyArgs =
        ConfigurationPolicySecurityHubPolicyArgs(
            enabledStandardIdentifiers = enabledStandardIdentifiers,
            securityControlsConfiguration = securityControlsConfiguration,
            serviceEnabled = serviceEnabled,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy