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

com.pulumi.azurenative.monitor.kotlin.inputs.SchemaMapArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.monitor.kotlin.inputs

import com.pulumi.azurenative.monitor.inputs.SchemaMapArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Schema map for azure monitor for logs.
 * @property recordMap Record Map.
 * @property resourceMap Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
 * @property scopeMap A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
 */
public data class SchemaMapArgs(
    public val recordMap: Output>,
    public val resourceMap: Output>? = null,
    public val scopeMap: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.monitor.inputs.SchemaMapArgs =
        com.pulumi.azurenative.monitor.inputs.SchemaMapArgs.builder()
            .recordMap(
                recordMap.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .resourceMap(
                resourceMap?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .scopeMap(
                scopeMap?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var resourceMap: Output>? = null

    private var scopeMap: Output>? = null

    /**
     * @param value Record Map.
     */
    @JvmName("kjpstshomircxqnb")
    public suspend fun recordMap(`value`: Output>) {
        this.recordMap = value
    }

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

    /**
     * @param values Record Map.
     */
    @JvmName("fuakkfjmxmjhrols")
    public suspend fun recordMap(values: List>) {
        this.recordMap = Output.all(values)
    }

    /**
     * @param value Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
     */
    @JvmName("urpjpgoscgugppvm")
    public suspend fun resourceMap(`value`: Output>) {
        this.resourceMap = value
    }

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

    /**
     * @param values Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
     */
    @JvmName("chkmkavfjueobkbr")
    public suspend fun resourceMap(values: List>) {
        this.resourceMap = Output.all(values)
    }

    /**
     * @param value A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
     */
    @JvmName("ekoflmwxnmtjnleg")
    public suspend fun scopeMap(`value`: Output>) {
        this.scopeMap = value
    }

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

    /**
     * @param values A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
     */
    @JvmName("tbgkgbisglilwtig")
    public suspend fun scopeMap(values: List>) {
        this.scopeMap = Output.all(values)
    }

    /**
     * @param value Record Map.
     */
    @JvmName("phyoqhjsruiyyngd")
    public suspend fun recordMap(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recordMap = mapped
    }

    /**
     * @param argument Record Map.
     */
    @JvmName("pujsgyvjcxlkoiir")
    public suspend fun recordMap(argument: List Unit>) {
        val toBeMapped = argument.toList().map { RecordMapArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.recordMap = mapped
    }

    /**
     * @param argument Record Map.
     */
    @JvmName("alfswlosivspdepe")
    public suspend fun recordMap(vararg argument: suspend RecordMapArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { RecordMapArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.recordMap = mapped
    }

    /**
     * @param argument Record Map.
     */
    @JvmName("yowtquhthrpmqtli")
    public suspend fun recordMap(argument: suspend RecordMapArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RecordMapArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.recordMap = mapped
    }

    /**
     * @param values Record Map.
     */
    @JvmName("dvtsctruoibosaix")
    public suspend fun recordMap(vararg values: RecordMapArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recordMap = mapped
    }

    /**
     * @param value Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
     */
    @JvmName("ksijdxrthgpmmgpw")
    public suspend fun resourceMap(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceMap = mapped
    }

    /**
     * @param argument Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
     */
    @JvmName("lemksfwnaiisdnyj")
    public suspend fun resourceMap(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ResourceMapArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.resourceMap = mapped
    }

    /**
     * @param argument Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
     */
    @JvmName("fegtwlplioieejce")
    public suspend fun resourceMap(vararg argument: suspend ResourceMapArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ResourceMapArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.resourceMap = mapped
    }

    /**
     * @param argument Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
     */
    @JvmName("iwljbisinpwsfefg")
    public suspend fun resourceMap(argument: suspend ResourceMapArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResourceMapArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.resourceMap = mapped
    }

    /**
     * @param values Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
     */
    @JvmName("cwngxdtvqbrtnfso")
    public suspend fun resourceMap(vararg values: ResourceMapArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceMap = mapped
    }

    /**
     * @param value A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
     */
    @JvmName("uvenjcuaiejtudbt")
    public suspend fun scopeMap(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopeMap = mapped
    }

    /**
     * @param argument A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
     */
    @JvmName("lwkeeaoogwxvrlhf")
    public suspend fun scopeMap(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ScopeMapArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.scopeMap = mapped
    }

    /**
     * @param argument A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
     */
    @JvmName("jacsqdjyjckcdkfl")
    public suspend fun scopeMap(vararg argument: suspend ScopeMapArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ScopeMapArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.scopeMap = mapped
    }

    /**
     * @param argument A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
     */
    @JvmName("miklgunvoyfdsmoh")
    public suspend fun scopeMap(argument: suspend ScopeMapArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ScopeMapArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.scopeMap = mapped
    }

    /**
     * @param values A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
     */
    @JvmName("jybkviicaysktdpk")
    public suspend fun scopeMap(vararg values: ScopeMapArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopeMap = mapped
    }

    internal fun build(): SchemaMapArgs = SchemaMapArgs(
        recordMap = recordMap ?: throw PulumiNullFieldException("recordMap"),
        resourceMap = resourceMap,
        scopeMap = scopeMap,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy