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

com.pulumi.awsnative.securityhub.kotlin.ConfigurationPolicyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.securityhub.kotlin

import com.pulumi.awsnative.securityhub.ConfigurationPolicyArgs.builder
import com.pulumi.awsnative.securityhub.kotlin.inputs.ConfigurationPolicyPolicyArgs
import com.pulumi.awsnative.securityhub.kotlin.inputs.ConfigurationPolicyPolicyArgsBuilder
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

/**
 * The AWS::SecurityHub::ConfigurationPolicy resource represents the Central Configuration Policy in your account.
 * @property configurationPolicy An object that defines how AWS Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
 * @property description The description of the configuration policy.
 * @property name The name of the configuration policy.
 * @property tags User-defined tags associated with a configuration policy. For more information, see [Tagging AWS Security Hub resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in the *Security Hub user guide* .
 */
public data class ConfigurationPolicyArgs(
    public val configurationPolicy: Output? = null,
    public val description: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.securityhub.ConfigurationPolicyArgs =
        com.pulumi.awsnative.securityhub.ConfigurationPolicyArgs.builder()
            .configurationPolicy(
                configurationPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ConfigurationPolicyArgs].
 */
@PulumiTagMarker
public class ConfigurationPolicyArgsBuilder internal constructor() {
    private var configurationPolicy: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value An object that defines how AWS Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
     */
    @JvmName("aseqpkyffawgisgy")
    public suspend fun configurationPolicy(`value`: Output) {
        this.configurationPolicy = value
    }

    /**
     * @param value The description of the configuration policy.
     */
    @JvmName("trwylhiudxddycoa")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the configuration policy.
     */
    @JvmName("tbtuayjhmqsrfgbs")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value User-defined tags associated with a configuration policy. For more information, see [Tagging AWS Security Hub resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in the *Security Hub user guide* .
     */
    @JvmName("cohifluavrymudwu")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value An object that defines how AWS Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
     */
    @JvmName("xntxucmlkbvaqvbe")
    public suspend fun configurationPolicy(`value`: ConfigurationPolicyPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configurationPolicy = mapped
    }

    /**
     * @param argument An object that defines how AWS Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
     */
    @JvmName("gwkdkfkfskqfjfcc")
    public suspend fun configurationPolicy(argument: suspend ConfigurationPolicyPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = ConfigurationPolicyPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.configurationPolicy = mapped
    }

    /**
     * @param value The description of the configuration policy.
     */
    @JvmName("bvrdwwrckxhvitwn")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the configuration policy.
     */
    @JvmName("dxoswxhlrtonjeot")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value User-defined tags associated with a configuration policy. For more information, see [Tagging AWS Security Hub resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in the *Security Hub user guide* .
     */
    @JvmName("jpxwrtphauvsdwuj")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values User-defined tags associated with a configuration policy. For more information, see [Tagging AWS Security Hub resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in the *Security Hub user guide* .
     */
    @JvmName("ghdcowjlmglrljnn")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ConfigurationPolicyArgs = ConfigurationPolicyArgs(
        configurationPolicy = configurationPolicy,
        description = description,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy