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

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

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

package com.pulumi.awsnative.guardduty.kotlin

import com.pulumi.awsnative.guardduty.IpSetArgs.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::IPSet
 * @property activate Indicates whether or not GuardDuty uses the `IPSet` .
 * @property detectorId The unique ID of the detector of the GuardDuty account for which you want to create an IPSet.
 * To find the `detectorId` in the current Region, see the
 * Settings page in the GuardDuty console, or run the [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) API.
 * @property format The format of the file that contains the IPSet.
 * @property location The URI of the file that contains the IPSet.
 * @property name The user-friendly name to identify the IPSet.
 * Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).
 * @property tags The tags to be added to a new IP set 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 IpSetArgs(
    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.IpSetArgs =
        com.pulumi.awsnative.guardduty.IpSetArgs.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 [IpSetArgs].
 */
@PulumiTagMarker
public class IpSetArgsBuilder 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 Indicates whether or not GuardDuty uses the `IPSet` .
     */
    @JvmName("wonvkivksillfdag")
    public suspend fun activate(`value`: Output) {
        this.activate = value
    }

    /**
     * @param value The unique ID of the detector of the GuardDuty account for which you want to create an IPSet.
     * To find the `detectorId` in the current Region, see the
     * Settings page in the GuardDuty console, or run the [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) API.
     */
    @JvmName("bgxrdamnksqbptnx")
    public suspend fun detectorId(`value`: Output) {
        this.detectorId = value
    }

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

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

    /**
     * @param value The user-friendly name to identify the IPSet.
     * Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).
     */
    @JvmName("sogfivsgqrxxepuc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The tags to be added to a new IP set 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("sejgycrxsxtgfims")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to be added to a new IP set 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("ymejpwmlajcibpeh")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Indicates whether or not GuardDuty uses the `IPSet` .
     */
    @JvmName("qvwdqodqoqaukucg")
    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 for which you want to create an IPSet.
     * To find the `detectorId` in the current Region, see the
     * Settings page in the GuardDuty console, or run the [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) API.
     */
    @JvmName("kbmvjbbijiomrssb")
    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 IPSet.
     */
    @JvmName("xpurtlhofrhpwxrn")
    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 IPSet.
     */
    @JvmName("tgtbeoshlhjsnnkl")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The user-friendly name to identify the IPSet.
     * Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).
     */
    @JvmName("fcmbiulgmytdutvg")
    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 IP set 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("psetkqfkbmhavmsb")
    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 IP set 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("unussfpqkdwicoly")
    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 IP set 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("xfbrwtlwkrwojnbw")
    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 IP set 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("qwpuxqadynpbyxjx")
    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 IP set 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("oclucalhvbamektd")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy