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

com.pulumi.awsnative.guardduty.kotlin.DetectorArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.guardduty.kotlin

import com.pulumi.awsnative.guardduty.DetectorArgs.builder
import com.pulumi.awsnative.guardduty.kotlin.inputs.DetectorCfnDataSourceConfigurationsArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.DetectorCfnDataSourceConfigurationsArgsBuilder
import com.pulumi.awsnative.guardduty.kotlin.inputs.DetectorCfnFeatureConfigurationArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.DetectorCfnFeatureConfigurationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * Resource Type definition for AWS::GuardDuty::Detector
 * @property dataSources Describes which data sources will be enabled for the detector.
 * @property enable Specifies whether the detector is to be enabled on creation.
 * @property features A list of features that will be configured for the detector.
 * @property findingPublishingFrequency Specifies how frequently updated findings are exported.
 * @property tags Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.
 * Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class DetectorArgs(
    public val dataSources: Output? = null,
    public val enable: Output? = null,
    public val features: Output>? = null,
    public val findingPublishingFrequency: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.guardduty.DetectorArgs =
        com.pulumi.awsnative.guardduty.DetectorArgs.builder()
            .dataSources(dataSources?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enable(enable?.applyValue({ args0 -> args0 }))
            .features(
                features?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .findingPublishingFrequency(findingPublishingFrequency?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DetectorArgs].
 */
@PulumiTagMarker
public class DetectorArgsBuilder internal constructor() {
    private var dataSources: Output? = null

    private var enable: Output? = null

    private var features: Output>? = null

    private var findingPublishingFrequency: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Describes which data sources will be enabled for the detector.
     */
    @JvmName("kgfyjorcpyyjnbtq")
    public suspend fun dataSources(`value`: Output) {
        this.dataSources = value
    }

    /**
     * @param value Specifies whether the detector is to be enabled on creation.
     */
    @JvmName("fikyutxenighakus")
    public suspend fun enable(`value`: Output) {
        this.enable = value
    }

    /**
     * @param value A list of features that will be configured for the detector.
     */
    @JvmName("jmmafegooiqmigtt")
    public suspend fun features(`value`: Output>) {
        this.features = value
    }

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

    /**
     * @param values A list of features that will be configured for the detector.
     */
    @JvmName("pehwnefunpjgxfql")
    public suspend fun features(values: List>) {
        this.features = Output.all(values)
    }

    /**
     * @param value Specifies how frequently updated findings are exported.
     */
    @JvmName("rucratjdfqwdrvye")
    public suspend fun findingPublishingFrequency(`value`: Output) {
        this.findingPublishingFrequency = value
    }

    /**
     * @param value Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.
     * Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("eccelxprskblmyyp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.
     * Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("dohvidinuagidvrs")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Describes which data sources will be enabled for the detector.
     */
    @JvmName("xhgygeqvxxgnfbgy")
    public suspend fun dataSources(`value`: DetectorCfnDataSourceConfigurationsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataSources = mapped
    }

    /**
     * @param argument Describes which data sources will be enabled for the detector.
     */
    @JvmName("totfvaxneduackpx")
    public suspend fun dataSources(argument: suspend DetectorCfnDataSourceConfigurationsArgsBuilder.() -> Unit) {
        val toBeMapped = DetectorCfnDataSourceConfigurationsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dataSources = mapped
    }

    /**
     * @param value Specifies whether the detector is to be enabled on creation.
     */
    @JvmName("skbamallbdnqjbvy")
    public suspend fun enable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enable = mapped
    }

    /**
     * @param value A list of features that will be configured for the detector.
     */
    @JvmName("ydfitjcvuvhhlunm")
    public suspend fun features(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.features = mapped
    }

    /**
     * @param argument A list of features that will be configured for the detector.
     */
    @JvmName("jhhbkrwrbvtpbmje")
    public suspend fun features(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DetectorCfnFeatureConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.features = mapped
    }

    /**
     * @param argument A list of features that will be configured for the detector.
     */
    @JvmName("wceridqpedpomtkp")
    public suspend fun features(vararg argument: suspend DetectorCfnFeatureConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DetectorCfnFeatureConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.features = mapped
    }

    /**
     * @param argument A list of features that will be configured for the detector.
     */
    @JvmName("nipjqwnlxaxhbrkx")
    public suspend fun features(argument: suspend DetectorCfnFeatureConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DetectorCfnFeatureConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.features = mapped
    }

    /**
     * @param values A list of features that will be configured for the detector.
     */
    @JvmName("fkmfeyvglyqieprr")
    public suspend fun features(vararg values: DetectorCfnFeatureConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.features = mapped
    }

    /**
     * @param value Specifies how frequently updated findings are exported.
     */
    @JvmName("lcxveuyjfpypnvvi")
    public suspend fun findingPublishingFrequency(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.findingPublishingFrequency = mapped
    }

    /**
     * @param value Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.
     * Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("cwrrlxfhnytmkfbf")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.
     * Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("viltswgmbafusuqw")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.
     * Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("rhakxnuqkyvpbqfr")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.
     * Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("siqldrehciromlqb")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.
     * Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("bbglskohhvexlypb")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DetectorArgs = DetectorArgs(
        dataSources = dataSources,
        enable = enable,
        features = features,
        findingPublishingFrequency = findingPublishingFrequency,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy