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

com.pulumi.awsnative.securityhub.kotlin.FindingAggregatorArgs.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

import com.pulumi.awsnative.securityhub.FindingAggregatorArgs.builder
import com.pulumi.awsnative.securityhub.kotlin.enums.FindingAggregatorRegionLinkingMode
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::SecurityHub::FindingAggregator resource represents the AWS Security Hub Finding Aggregator in your account. One finding aggregator resource is created for each account in non opt-in region in which you configure region linking mode.
 * @property regionLinkingMode Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions
 * @property regions The list of excluded Regions or included Regions
 */
public data class FindingAggregatorArgs(
    public val regionLinkingMode: Output? = null,
    public val regions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.securityhub.FindingAggregatorArgs =
        com.pulumi.awsnative.securityhub.FindingAggregatorArgs.builder()
            .regionLinkingMode(regionLinkingMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .regions(regions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FindingAggregatorArgs].
 */
@PulumiTagMarker
public class FindingAggregatorArgsBuilder internal constructor() {
    private var regionLinkingMode: Output? = null

    private var regions: Output>? = null

    /**
     * @param value Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions
     */
    @JvmName("uyeymdtrwswqqhwb")
    public suspend fun regionLinkingMode(`value`: Output) {
        this.regionLinkingMode = value
    }

    /**
     * @param value The list of excluded Regions or included Regions
     */
    @JvmName("pjhvwjpecwjowoeo")
    public suspend fun regions(`value`: Output>) {
        this.regions = value
    }

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

    /**
     * @param values The list of excluded Regions or included Regions
     */
    @JvmName("twapvaagvyspmvvo")
    public suspend fun regions(values: List>) {
        this.regions = Output.all(values)
    }

    /**
     * @param value Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions
     */
    @JvmName("gpdolcnshrqyflfm")
    public suspend fun regionLinkingMode(`value`: FindingAggregatorRegionLinkingMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regionLinkingMode = mapped
    }

    /**
     * @param value The list of excluded Regions or included Regions
     */
    @JvmName("yrjcemjfpqpubpmb")
    public suspend fun regions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    /**
     * @param values The list of excluded Regions or included Regions
     */
    @JvmName("urnowamprtmglauv")
    public suspend fun regions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    internal fun build(): FindingAggregatorArgs = FindingAggregatorArgs(
        regionLinkingMode = regionLinkingMode,
        regions = regions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy