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

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

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

package com.pulumi.awsnative.securityhub.kotlin

import com.pulumi.awsnative.securityhub.HubArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The AWS::SecurityHub::Hub resource represents the implementation of the AWS Security Hub service in your account. One hub resource is created for each Region in which you enable Security Hub.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property autoEnableControls Whether to automatically enable new controls when they are added to standards that are enabled
 * @property controlFindingGenerator This field, used when enabling Security Hub, specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.  If the value for this field is set to STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.
 * @property enableDefaultStandards Whether to enable the security standards that Security Hub has designated as automatically enabled.
 * @property tags An array of key-value pairs to apply to this resource.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class HubArgs(
    public val autoEnableControls: Output? = null,
    public val controlFindingGenerator: Output? = null,
    public val enableDefaultStandards: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.securityhub.HubArgs =
        com.pulumi.awsnative.securityhub.HubArgs.builder()
            .autoEnableControls(autoEnableControls?.applyValue({ args0 -> args0 }))
            .controlFindingGenerator(controlFindingGenerator?.applyValue({ args0 -> args0 }))
            .enableDefaultStandards(enableDefaultStandards?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [HubArgs].
 */
@PulumiTagMarker
public class HubArgsBuilder internal constructor() {
    private var autoEnableControls: Output? = null

    private var controlFindingGenerator: Output? = null

    private var enableDefaultStandards: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Whether to automatically enable new controls when they are added to standards that are enabled
     */
    @JvmName("qnrhssqvabkuyfaj")
    public suspend fun autoEnableControls(`value`: Output) {
        this.autoEnableControls = value
    }

    /**
     * @param value This field, used when enabling Security Hub, specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.  If the value for this field is set to STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.
     */
    @JvmName("vnwmxwbxnefucvti")
    public suspend fun controlFindingGenerator(`value`: Output) {
        this.controlFindingGenerator = value
    }

    /**
     * @param value Whether to enable the security standards that Security Hub has designated as automatically enabled.
     */
    @JvmName("joanmtxersrlnast")
    public suspend fun enableDefaultStandards(`value`: Output) {
        this.enableDefaultStandards = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("lxnxdpkqqhrshfom")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Whether to automatically enable new controls when they are added to standards that are enabled
     */
    @JvmName("uwsxifijpcocorob")
    public suspend fun autoEnableControls(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoEnableControls = mapped
    }

    /**
     * @param value This field, used when enabling Security Hub, specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.  If the value for this field is set to STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.
     */
    @JvmName("ksemxskkthuxptgr")
    public suspend fun controlFindingGenerator(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controlFindingGenerator = mapped
    }

    /**
     * @param value Whether to enable the security standards that Security Hub has designated as automatically enabled.
     */
    @JvmName("nbfchxdurxoxmyjh")
    public suspend fun enableDefaultStandards(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableDefaultStandards = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("hktpnkkuqnoadktn")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("ifiblokfmtjprwkc")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): HubArgs = HubArgs(
        autoEnableControls = autoEnableControls,
        controlFindingGenerator = controlFindingGenerator,
        enableDefaultStandards = enableDefaultStandards,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy