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

com.pulumi.awsnative.resourceexplorer2.kotlin.outputs.GetIndexResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.resourceexplorer2.kotlin.outputs

import com.pulumi.awsnative.resourceexplorer2.kotlin.enums.IndexState
import com.pulumi.awsnative.resourceexplorer2.kotlin.enums.IndexType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property arn The ARN of the new index for the AWS Region . For example:
 * `arn:aws:resource-explorer-2:us-east-1:123456789012:index/EXAMPLE8-90ab-cdef-fedc-EXAMPLE22222`
 * @property indexState Indicates the current state of the index. For example:
 * `CREATING`
 * @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 GetIndexResult(
    public val arn: String? = null,
    public val indexState: IndexState? = null,
    public val tags: Map? = null,
    public val type: IndexType? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.resourceexplorer2.outputs.GetIndexResult): GetIndexResult = GetIndexResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            indexState = javaType.indexState().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.resourceexplorer2.kotlin.enums.IndexState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            type = javaType.type().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.resourceexplorer2.kotlin.enums.IndexType.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy