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

com.pulumi.awsnative.guardduty.kotlin.ThreatIntelSetArgs.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.guardduty.kotlin

import com.pulumi.awsnative.guardduty.ThreatIntelSetArgs.builder
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::ThreatIntelSet
 * @property activate A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
 * @property detectorId The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.
 * @property format The format of the file that contains the ThreatIntelSet.
 * @property location The URI of the file that contains the ThreatIntelSet.
 * @property name A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
 * @property tags The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class ThreatIntelSetArgs(
    public val activate: Output? = null,
    public val detectorId: Output? = null,
    public val format: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.guardduty.ThreatIntelSetArgs =
        com.pulumi.awsnative.guardduty.ThreatIntelSetArgs.builder()
            .activate(activate?.applyValue({ args0 -> args0 }))
            .detectorId(detectorId?.applyValue({ args0 -> args0 }))
            .format(format?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ThreatIntelSetArgs].
 */
@PulumiTagMarker
public class ThreatIntelSetArgsBuilder internal constructor() {
    private var activate: Output? = null

    private var detectorId: Output? = null

    private var format: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
     */
    @JvmName("oluqfkvoeayfldmk")
    public suspend fun activate(`value`: Output) {
        this.activate = value
    }

    /**
     * @param value The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.
     */
    @JvmName("tbfhepriytbjcbvf")
    public suspend fun detectorId(`value`: Output) {
        this.detectorId = value
    }

    /**
     * @param value The format of the file that contains the ThreatIntelSet.
     */
    @JvmName("colywljucaiikxhw")
    public suspend fun format(`value`: Output) {
        this.format = value
    }

    /**
     * @param value The URI of the file that contains the ThreatIntelSet.
     */
    @JvmName("rbwtfqxbmrseclqw")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
     */
    @JvmName("dhaelkagomjwoabv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("awtorxhgonphshfp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("yhbmpikwaqqbhbek")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
     */
    @JvmName("vlvleeiqjdffikql")
    public suspend fun activate(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activate = mapped
    }

    /**
     * @param value The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.
     */
    @JvmName("voxuctsoodxqvftg")
    public suspend fun detectorId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.detectorId = mapped
    }

    /**
     * @param value The format of the file that contains the ThreatIntelSet.
     */
    @JvmName("twuweukppuxfindb")
    public suspend fun format(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.format = mapped
    }

    /**
     * @param value The URI of the file that contains the ThreatIntelSet.
     */
    @JvmName("knasgpnxvpxtqmjp")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
     */
    @JvmName("kgkjmiqhiqcujooc")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("mleyntisrvcfyyxa")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("qtevfvcssdhmpxgx")
    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 The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("pnwrfolmqbcimtot")
    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 The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("kjydncvqufsiyudy")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("veyodamqydgyykqq")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ThreatIntelSetArgs = ThreatIntelSetArgs(
        activate = activate,
        detectorId = detectorId,
        format = format,
        location = location,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy