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

com.pulumi.awsnative.guardduty.kotlin.IpSetArgs.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: 1.11.0.0
Show newest version
@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 that you want to create an IPSet for.
 * @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("lcyrhrsidbuurwuk")
    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 an IPSet for.
     */
    @JvmName("hyadcqamhtljayvy")
    public suspend fun detectorId(`value`: Output) {
        this.detectorId = value
    }

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

    /**
     * @param value The URI of the file that contains the IPSet.
     */
    @JvmName("dypqopygisyijddq")
    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("gaegylvplbfmrfgl")
    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("yrkghkitoffntoac")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("ideqpkxdidwnrmdx")
    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("xtqoqxhiyjchcbot")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Indicates whether or not GuardDuty uses the `IPSet` .
     */
    @JvmName("knfqaqpnbshehxch")
    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 an IPSet for.
     */
    @JvmName("yabfiaswhbivkhfp")
    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("ywmkcefxqloacqfh")
    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("rsshvuwnfkwehaab")
    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("muhqnpiqncawkpkr")
    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("wdufvrvufanlrtie")
    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("ooahashfvkjkkvuj")
    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("ouwdtgjhdtynlakt")
    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("nvgvjjdgvnxmtomb")
    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("jiioiiepptaxnxer")
    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 - 2024 Weber Informatics LLC | Privacy Policy