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

com.pulumi.awsnative.securityhub.kotlin.InsightArgs.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.InsightArgs.builder
import com.pulumi.awsnative.securityhub.kotlin.inputs.InsightAwsSecurityFindingFiltersArgs
import com.pulumi.awsnative.securityhub.kotlin.inputs.InsightAwsSecurityFindingFiltersArgsBuilder
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.jvm.JvmName

/**
 * The AWS::SecurityHub::Insight resource represents the AWS Security Hub Insight in your account. An AWS Security Hub insight is a collection of related findings.
 * @property filters One or more attributes used to filter the findings included in the insight
 * @property groupByAttribute The grouping attribute for the insight's findings
 * @property name The name of a Security Hub insight
 */
public data class InsightArgs(
    public val filters: Output? = null,
    public val groupByAttribute: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.securityhub.InsightArgs =
        com.pulumi.awsnative.securityhub.InsightArgs.builder()
            .filters(filters?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .groupByAttribute(groupByAttribute?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InsightArgs].
 */
@PulumiTagMarker
public class InsightArgsBuilder internal constructor() {
    private var filters: Output? = null

    private var groupByAttribute: Output? = null

    private var name: Output? = null

    /**
     * @param value One or more attributes used to filter the findings included in the insight
     */
    @JvmName("ntymbkcgdipvawkc")
    public suspend fun filters(`value`: Output) {
        this.filters = value
    }

    /**
     * @param value The grouping attribute for the insight's findings
     */
    @JvmName("icmpvkdjfixoolwe")
    public suspend fun groupByAttribute(`value`: Output) {
        this.groupByAttribute = value
    }

    /**
     * @param value The name of a Security Hub insight
     */
    @JvmName("cdjxwyliwnioqdxe")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value One or more attributes used to filter the findings included in the insight
     */
    @JvmName("pdelossovaqfrtvm")
    public suspend fun filters(`value`: InsightAwsSecurityFindingFiltersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param argument One or more attributes used to filter the findings included in the insight
     */
    @JvmName("tmykubkypyxhjokw")
    public suspend fun filters(argument: suspend InsightAwsSecurityFindingFiltersArgsBuilder.() -> Unit) {
        val toBeMapped = InsightAwsSecurityFindingFiltersArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.filters = mapped
    }

    /**
     * @param value The grouping attribute for the insight's findings
     */
    @JvmName("gaaihedesxpwsjuw")
    public suspend fun groupByAttribute(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupByAttribute = mapped
    }

    /**
     * @param value The name of a Security Hub insight
     */
    @JvmName("qthpephvweknatxy")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): InsightArgs = InsightArgs(
        filters = filters,
        groupByAttribute = groupByAttribute,
        name = name,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy