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

com.pulumi.awsnative.resourceexplorer2.kotlin.IndexArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.resourceexplorer2.kotlin

import com.pulumi.awsnative.resourceexplorer2.IndexArgs.builder
import com.pulumi.awsnative.resourceexplorer2.kotlin.enums.IndexType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Definition of AWS::ResourceExplorer2::Index Resource Type
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property tags The specified tags are attached to only the index created in this AWS Region . The tags don't attach to any of the resources listed in the index.
 * @property type Specifies the type of the index in this Region. For information about the aggregator index and how it differs from a local index, see [Turning on cross-Region search by creating an aggregator index](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-aggregator-region.html) in the *AWS Resource Explorer User Guide.* .
 */
public data class IndexArgs(
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.resourceexplorer2.IndexArgs =
        com.pulumi.awsnative.resourceexplorer2.IndexArgs.builder()
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [IndexArgs].
 */
@PulumiTagMarker
public class IndexArgsBuilder internal constructor() {
    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value The specified tags are attached to only the index created in this AWS Region . The tags don't attach to any of the resources listed in the index.
     */
    @JvmName("nmqpmlbjjeibbssn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Specifies the type of the index in this Region. For information about the aggregator index and how it differs from a local index, see [Turning on cross-Region search by creating an aggregator index](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-aggregator-region.html) in the *AWS Resource Explorer User Guide.* .
     */
    @JvmName("hboklwmojswfmxfo")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The specified tags are attached to only the index created in this AWS Region . The tags don't attach to any of the resources listed in the index.
     */
    @JvmName("wjifqvnffostpkly")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The specified tags are attached to only the index created in this AWS Region . The tags don't attach to any of the resources listed in the index.
     */
    @JvmName("bvkrhllhmijqpvjb")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies the type of the index in this Region. For information about the aggregator index and how it differs from a local index, see [Turning on cross-Region search by creating an aggregator index](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-aggregator-region.html) in the *AWS Resource Explorer User Guide.* .
     */
    @JvmName("gynyiauvwytkhbbq")
    public suspend fun type(`value`: IndexType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): IndexArgs = IndexArgs(
        tags = tags,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy