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

com.pulumi.awsnative.macie.kotlin.CustomDataIdentifierArgs.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.macie.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.macie.CustomDataIdentifierArgs.builder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Macie CustomDataIdentifier resource schema
 * @property description Description of custom data identifier.
 * @property ignoreWords Words to be ignored.
 * @property keywords Keywords to be matched against.
 * @property maximumMatchDistance Maximum match distance.
 * @property name Name of custom data identifier.
 * @property regex Regular expression for custom data identifier.
 * @property tags A collection of tags associated with a resource
 */
public data class CustomDataIdentifierArgs(
    public val description: Output? = null,
    public val ignoreWords: Output>? = null,
    public val keywords: Output>? = null,
    public val maximumMatchDistance: Output? = null,
    public val name: Output? = null,
    public val regex: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.macie.CustomDataIdentifierArgs =
        com.pulumi.awsnative.macie.CustomDataIdentifierArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .ignoreWords(ignoreWords?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .keywords(keywords?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .maximumMatchDistance(maximumMatchDistance?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .regex(regex?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [CustomDataIdentifierArgs].
 */
@PulumiTagMarker
public class CustomDataIdentifierArgsBuilder internal constructor() {
    private var description: Output? = null

    private var ignoreWords: Output>? = null

    private var keywords: Output>? = null

    private var maximumMatchDistance: Output? = null

    private var name: Output? = null

    private var regex: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Description of custom data identifier.
     */
    @JvmName("wgmnwniollyrvxwu")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Words to be ignored.
     */
    @JvmName("mhbvailmsrbjybeq")
    public suspend fun ignoreWords(`value`: Output>) {
        this.ignoreWords = value
    }

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

    /**
     * @param values Words to be ignored.
     */
    @JvmName("drpokgxounquohlq")
    public suspend fun ignoreWords(values: List>) {
        this.ignoreWords = Output.all(values)
    }

    /**
     * @param value Keywords to be matched against.
     */
    @JvmName("ccuypnmeaagvmney")
    public suspend fun keywords(`value`: Output>) {
        this.keywords = value
    }

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

    /**
     * @param values Keywords to be matched against.
     */
    @JvmName("imqdcelemcvhpxey")
    public suspend fun keywords(values: List>) {
        this.keywords = Output.all(values)
    }

    /**
     * @param value Maximum match distance.
     */
    @JvmName("rswdmxbumsteratp")
    public suspend fun maximumMatchDistance(`value`: Output) {
        this.maximumMatchDistance = value
    }

    /**
     * @param value Name of custom data identifier.
     */
    @JvmName("pbuhbnxxxpojudhy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Regular expression for custom data identifier.
     */
    @JvmName("llukdrvqtwjnlwnn")
    public suspend fun regex(`value`: Output) {
        this.regex = value
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("yqflelnobyemnacg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("sdwnnqvvsxkqnltl")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Description of custom data identifier.
     */
    @JvmName("ovcdhjufujgrxtcc")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Words to be ignored.
     */
    @JvmName("wuxsppjsijkxeupn")
    public suspend fun ignoreWords(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ignoreWords = mapped
    }

    /**
     * @param values Words to be ignored.
     */
    @JvmName("yuqmhvaiqefehmtq")
    public suspend fun ignoreWords(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ignoreWords = mapped
    }

    /**
     * @param value Keywords to be matched against.
     */
    @JvmName("kcibitntbfwmggay")
    public suspend fun keywords(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keywords = mapped
    }

    /**
     * @param values Keywords to be matched against.
     */
    @JvmName("innqujgnkxyihynl")
    public suspend fun keywords(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keywords = mapped
    }

    /**
     * @param value Maximum match distance.
     */
    @JvmName("phttdrdyuhvndlai")
    public suspend fun maximumMatchDistance(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximumMatchDistance = mapped
    }

    /**
     * @param value Name of custom data identifier.
     */
    @JvmName("olajrvwutnmrjssd")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Regular expression for custom data identifier.
     */
    @JvmName("aoygipualqdoshpl")
    public suspend fun regex(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regex = mapped
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("ycjfjouvgdevhuak")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("sogexbtxehcnpehc")
    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 A collection of tags associated with a resource
     */
    @JvmName("kmopfibteilccixl")
    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 A collection of tags associated with a resource
     */
    @JvmName("tjkfrvirempqfgvv")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("dnwbmtoktelprfmw")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): CustomDataIdentifierArgs = CustomDataIdentifierArgs(
        description = description,
        ignoreWords = ignoreWords,
        keywords = keywords,
        maximumMatchDistance = maximumMatchDistance,
        name = name,
        regex = regex,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy