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

com.pulumi.awsnative.oam.kotlin.inputs.LinkConfigurationArgs.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.oam.kotlin.inputs

import com.pulumi.awsnative.oam.inputs.LinkConfigurationArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property logGroupConfiguration Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
 * @property metricConfiguration Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
 */
public data class LinkConfigurationArgs(
    public val logGroupConfiguration: Output? = null,
    public val metricConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.oam.inputs.LinkConfigurationArgs =
        com.pulumi.awsnative.oam.inputs.LinkConfigurationArgs.builder()
            .logGroupConfiguration(
                logGroupConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .metricConfiguration(
                metricConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [LinkConfigurationArgs].
 */
@PulumiTagMarker
public class LinkConfigurationArgsBuilder internal constructor() {
    private var logGroupConfiguration: Output? = null

    private var metricConfiguration: Output? = null

    /**
     * @param value Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
     */
    @JvmName("xkooqawijqracjyc")
    public suspend fun logGroupConfiguration(`value`: Output) {
        this.logGroupConfiguration = value
    }

    /**
     * @param value Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
     */
    @JvmName("mrwacihplsiawvgm")
    public suspend fun metricConfiguration(`value`: Output) {
        this.metricConfiguration = value
    }

    /**
     * @param value Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
     */
    @JvmName("ktrfldngqmlnhqtq")
    public suspend fun logGroupConfiguration(`value`: LinkFilterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logGroupConfiguration = mapped
    }

    /**
     * @param argument Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
     */
    @JvmName("rhvlyilotnuwkerw")
    public suspend fun logGroupConfiguration(argument: suspend LinkFilterArgsBuilder.() -> Unit) {
        val toBeMapped = LinkFilterArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.logGroupConfiguration = mapped
    }

    /**
     * @param value Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
     */
    @JvmName("pjmlhmpsrdlxmaoa")
    public suspend fun metricConfiguration(`value`: LinkFilterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricConfiguration = mapped
    }

    /**
     * @param argument Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
     */
    @JvmName("ikwhmutsdptltnej")
    public suspend fun metricConfiguration(argument: suspend LinkFilterArgsBuilder.() -> Unit) {
        val toBeMapped = LinkFilterArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.metricConfiguration = mapped
    }

    internal fun build(): LinkConfigurationArgs = LinkConfigurationArgs(
        logGroupConfiguration = logGroupConfiguration,
        metricConfiguration = metricConfiguration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy