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

com.pulumi.awsnative.applicationinsights.kotlin.inputs.ApplicationConfigurationDetailsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.applicationinsights.kotlin.inputs

import com.pulumi.awsnative.applicationinsights.inputs.ApplicationConfigurationDetailsArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * The configuration settings.
 * @property alarmMetrics A list of metrics to monitor for the component.
 * @property alarms A list of alarms to monitor for the component.
 * @property haClusterPrometheusExporter The HA cluster Prometheus Exporter settings.
 * @property hanaPrometheusExporter The HANA DB Prometheus Exporter settings.
 * @property jmxPrometheusExporter The JMX Prometheus Exporter settings.
 * @property logs A list of logs to monitor for the component.
 * @property netWeaverPrometheusExporter The NetWeaver Prometheus Exporter settings.
 * @property processes A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.
 * @property sqlServerPrometheusExporter The SQL Prometheus Exporter settings.
 * @property windowsEvents A list of Windows Events to log.
 */
public data class ApplicationConfigurationDetailsArgs(
    public val alarmMetrics: Output>? = null,
    public val alarms: Output>? = null,
    public val haClusterPrometheusExporter: Output? =
        null,
    public val hanaPrometheusExporter: Output? = null,
    public val jmxPrometheusExporter: Output? = null,
    public val logs: Output>? = null,
    public val netWeaverPrometheusExporter: Output? =
        null,
    public val processes: Output>? = null,
    public val sqlServerPrometheusExporter: Output? =
        null,
    public val windowsEvents: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.applicationinsights.inputs.ApplicationConfigurationDetailsArgs =
        com.pulumi.awsnative.applicationinsights.inputs.ApplicationConfigurationDetailsArgs.builder()
            .alarmMetrics(
                alarmMetrics?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .alarms(alarms?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .haClusterPrometheusExporter(
                haClusterPrometheusExporter?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .hanaPrometheusExporter(
                hanaPrometheusExporter?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .jmxPrometheusExporter(
                jmxPrometheusExporter?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .logs(logs?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .netWeaverPrometheusExporter(
                netWeaverPrometheusExporter?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .processes(
                processes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sqlServerPrometheusExporter(
                sqlServerPrometheusExporter?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .windowsEvents(
                windowsEvents?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var alarms: Output>? = null

    private var haClusterPrometheusExporter: Output? =
        null

    private var hanaPrometheusExporter: Output? = null

    private var jmxPrometheusExporter: Output? = null

    private var logs: Output>? = null

    private var netWeaverPrometheusExporter: Output? =
        null

    private var processes: Output>? = null

    private var sqlServerPrometheusExporter: Output? =
        null

    private var windowsEvents: Output>? = null

    /**
     * @param value A list of metrics to monitor for the component.
     */
    @JvmName("okceokdfdykrysat")
    public suspend fun alarmMetrics(`value`: Output>) {
        this.alarmMetrics = value
    }

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

    /**
     * @param values A list of metrics to monitor for the component.
     */
    @JvmName("jwgqxmtkpawbolxs")
    public suspend fun alarmMetrics(values: List>) {
        this.alarmMetrics = Output.all(values)
    }

    /**
     * @param value A list of alarms to monitor for the component.
     */
    @JvmName("dhothxfalqxyxnyr")
    public suspend fun alarms(`value`: Output>) {
        this.alarms = value
    }

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

    /**
     * @param values A list of alarms to monitor for the component.
     */
    @JvmName("uijkywaieovshmid")
    public suspend fun alarms(values: List>) {
        this.alarms = Output.all(values)
    }

    /**
     * @param value The HA cluster Prometheus Exporter settings.
     */
    @JvmName("gsntsjptknowjdrn")
    public suspend fun haClusterPrometheusExporter(`value`: Output) {
        this.haClusterPrometheusExporter = value
    }

    /**
     * @param value The HANA DB Prometheus Exporter settings.
     */
    @JvmName("ytbhedjecyivjgte")
    public suspend fun hanaPrometheusExporter(`value`: Output) {
        this.hanaPrometheusExporter = value
    }

    /**
     * @param value The JMX Prometheus Exporter settings.
     */
    @JvmName("jxrxrsisrhljjeam")
    public suspend fun jmxPrometheusExporter(`value`: Output) {
        this.jmxPrometheusExporter = value
    }

    /**
     * @param value A list of logs to monitor for the component.
     */
    @JvmName("kqqjqlrisgfumrci")
    public suspend fun logs(`value`: Output>) {
        this.logs = value
    }

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

    /**
     * @param values A list of logs to monitor for the component.
     */
    @JvmName("krnvxnesvdlbpcbu")
    public suspend fun logs(values: List>) {
        this.logs = Output.all(values)
    }

    /**
     * @param value The NetWeaver Prometheus Exporter settings.
     */
    @JvmName("wnydketdjbsokdke")
    public suspend fun netWeaverPrometheusExporter(`value`: Output) {
        this.netWeaverPrometheusExporter = value
    }

    /**
     * @param value A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.
     */
    @JvmName("yrtpeuwlolndhpaf")
    public suspend fun processes(`value`: Output>) {
        this.processes = value
    }

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

    /**
     * @param values A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.
     */
    @JvmName("iweoxwkigjwfxpyl")
    public suspend fun processes(values: List>) {
        this.processes = Output.all(values)
    }

    /**
     * @param value The SQL Prometheus Exporter settings.
     */
    @JvmName("ckxrnywtrwrilrfy")
    public suspend fun sqlServerPrometheusExporter(`value`: Output) {
        this.sqlServerPrometheusExporter = value
    }

    /**
     * @param value A list of Windows Events to log.
     */
    @JvmName("sdbniixquuexqexp")
    public suspend fun windowsEvents(`value`: Output>) {
        this.windowsEvents = value
    }

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

    /**
     * @param values A list of Windows Events to log.
     */
    @JvmName("rqiunsuynbwvgvcq")
    public suspend fun windowsEvents(values: List>) {
        this.windowsEvents = Output.all(values)
    }

    /**
     * @param value A list of metrics to monitor for the component.
     */
    @JvmName("rygkandfoosqgstc")
    public suspend fun alarmMetrics(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alarmMetrics = mapped
    }

    /**
     * @param argument A list of metrics to monitor for the component.
     */
    @JvmName("nbnxnahbwhprmmsn")
    public suspend fun alarmMetrics(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationAlarmMetricArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.alarmMetrics = mapped
    }

    /**
     * @param argument A list of metrics to monitor for the component.
     */
    @JvmName("xfquxxoiemuijipu")
    public suspend fun alarmMetrics(vararg argument: suspend ApplicationAlarmMetricArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationAlarmMetricArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.alarmMetrics = mapped
    }

    /**
     * @param argument A list of metrics to monitor for the component.
     */
    @JvmName("fqvffkyhsvtxegbh")
    public suspend fun alarmMetrics(argument: suspend ApplicationAlarmMetricArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ApplicationAlarmMetricArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.alarmMetrics = mapped
    }

    /**
     * @param values A list of metrics to monitor for the component.
     */
    @JvmName("jtctsvsemgovhhig")
    public suspend fun alarmMetrics(vararg values: ApplicationAlarmMetricArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alarmMetrics = mapped
    }

    /**
     * @param value A list of alarms to monitor for the component.
     */
    @JvmName("cpltfpvsbjcpetog")
    public suspend fun alarms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alarms = mapped
    }

    /**
     * @param argument A list of alarms to monitor for the component.
     */
    @JvmName("rndqlitqfhnfbnnx")
    public suspend fun alarms(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationAlarmArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.alarms = mapped
    }

    /**
     * @param argument A list of alarms to monitor for the component.
     */
    @JvmName("xqebfkroitemxtys")
    public suspend fun alarms(vararg argument: suspend ApplicationAlarmArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationAlarmArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.alarms = mapped
    }

    /**
     * @param argument A list of alarms to monitor for the component.
     */
    @JvmName("fdusiofeqbyqvaes")
    public suspend fun alarms(argument: suspend ApplicationAlarmArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ApplicationAlarmArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.alarms = mapped
    }

    /**
     * @param values A list of alarms to monitor for the component.
     */
    @JvmName("nmwbarxpikcqxyra")
    public suspend fun alarms(vararg values: ApplicationAlarmArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alarms = mapped
    }

    /**
     * @param value The HA cluster Prometheus Exporter settings.
     */
    @JvmName("knajbknunqdfodkk")
    public suspend fun haClusterPrometheusExporter(`value`: ApplicationHaClusterPrometheusExporterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.haClusterPrometheusExporter = mapped
    }

    /**
     * @param argument The HA cluster Prometheus Exporter settings.
     */
    @JvmName("yerjswbmeoasstip")
    public suspend fun haClusterPrometheusExporter(argument: suspend ApplicationHaClusterPrometheusExporterArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationHaClusterPrometheusExporterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.haClusterPrometheusExporter = mapped
    }

    /**
     * @param value The HANA DB Prometheus Exporter settings.
     */
    @JvmName("bsnamtmhpjgxbbfu")
    public suspend fun hanaPrometheusExporter(`value`: ApplicationHanaPrometheusExporterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hanaPrometheusExporter = mapped
    }

    /**
     * @param argument The HANA DB Prometheus Exporter settings.
     */
    @JvmName("hxrucakmkqjgdsys")
    public suspend fun hanaPrometheusExporter(argument: suspend ApplicationHanaPrometheusExporterArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationHanaPrometheusExporterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.hanaPrometheusExporter = mapped
    }

    /**
     * @param value The JMX Prometheus Exporter settings.
     */
    @JvmName("vnfplsbvclcplepd")
    public suspend fun jmxPrometheusExporter(`value`: ApplicationJmxPrometheusExporterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jmxPrometheusExporter = mapped
    }

    /**
     * @param argument The JMX Prometheus Exporter settings.
     */
    @JvmName("qswcgavtlbfivaoa")
    public suspend fun jmxPrometheusExporter(argument: suspend ApplicationJmxPrometheusExporterArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationJmxPrometheusExporterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.jmxPrometheusExporter = mapped
    }

    /**
     * @param value A list of logs to monitor for the component.
     */
    @JvmName("yajxtyybfwrgbytp")
    public suspend fun logs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logs = mapped
    }

    /**
     * @param argument A list of logs to monitor for the component.
     */
    @JvmName("lxghmeqmygmekqah")
    public suspend fun logs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationLogArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.logs = mapped
    }

    /**
     * @param argument A list of logs to monitor for the component.
     */
    @JvmName("fqdslxhafgjusgtq")
    public suspend fun logs(vararg argument: suspend ApplicationLogArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationLogArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.logs = mapped
    }

    /**
     * @param argument A list of logs to monitor for the component.
     */
    @JvmName("eposokylujidinld")
    public suspend fun logs(argument: suspend ApplicationLogArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ApplicationLogArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.logs = mapped
    }

    /**
     * @param values A list of logs to monitor for the component.
     */
    @JvmName("eiqqbymmegmqdpru")
    public suspend fun logs(vararg values: ApplicationLogArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logs = mapped
    }

    /**
     * @param value The NetWeaver Prometheus Exporter settings.
     */
    @JvmName("ckrtluehyfwpqhtb")
    public suspend fun netWeaverPrometheusExporter(`value`: ApplicationNetWeaverPrometheusExporterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.netWeaverPrometheusExporter = mapped
    }

    /**
     * @param argument The NetWeaver Prometheus Exporter settings.
     */
    @JvmName("ntgeyhvgdcrhucxk")
    public suspend fun netWeaverPrometheusExporter(argument: suspend ApplicationNetWeaverPrometheusExporterArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationNetWeaverPrometheusExporterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.netWeaverPrometheusExporter = mapped
    }

    /**
     * @param value A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.
     */
    @JvmName("ttjjkbrdehtghstg")
    public suspend fun processes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.processes = mapped
    }

    /**
     * @param argument A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.
     */
    @JvmName("rwykwlvgewgjgbti")
    public suspend fun processes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationProcessArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.processes = mapped
    }

    /**
     * @param argument A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.
     */
    @JvmName("hbyphngfwywlvseo")
    public suspend fun processes(vararg argument: suspend ApplicationProcessArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationProcessArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.processes = mapped
    }

    /**
     * @param argument A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.
     */
    @JvmName("iiwnpuajunfxdfnk")
    public suspend fun processes(argument: suspend ApplicationProcessArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ApplicationProcessArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.processes = mapped
    }

    /**
     * @param values A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.
     */
    @JvmName("koebaeqqmjgakdor")
    public suspend fun processes(vararg values: ApplicationProcessArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.processes = mapped
    }

    /**
     * @param value The SQL Prometheus Exporter settings.
     */
    @JvmName("yqrvhqfkqpsgmlff")
    public suspend fun sqlServerPrometheusExporter(`value`: ApplicationSqlServerPrometheusExporterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlServerPrometheusExporter = mapped
    }

    /**
     * @param argument The SQL Prometheus Exporter settings.
     */
    @JvmName("tngakvvddblknycv")
    public suspend fun sqlServerPrometheusExporter(argument: suspend ApplicationSqlServerPrometheusExporterArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationSqlServerPrometheusExporterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sqlServerPrometheusExporter = mapped
    }

    /**
     * @param value A list of Windows Events to log.
     */
    @JvmName("btclasxffekkthgr")
    public suspend fun windowsEvents(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.windowsEvents = mapped
    }

    /**
     * @param argument A list of Windows Events to log.
     */
    @JvmName("cfvaqyxvnietctwm")
    public suspend fun windowsEvents(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationWindowsEventArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.windowsEvents = mapped
    }

    /**
     * @param argument A list of Windows Events to log.
     */
    @JvmName("yrndsgahytaiuden")
    public suspend fun windowsEvents(vararg argument: suspend ApplicationWindowsEventArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationWindowsEventArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.windowsEvents = mapped
    }

    /**
     * @param argument A list of Windows Events to log.
     */
    @JvmName("fqorbetqhoainvcx")
    public suspend fun windowsEvents(argument: suspend ApplicationWindowsEventArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ApplicationWindowsEventArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.windowsEvents = mapped
    }

    /**
     * @param values A list of Windows Events to log.
     */
    @JvmName("ocwqgutyaifjteis")
    public suspend fun windowsEvents(vararg values: ApplicationWindowsEventArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.windowsEvents = mapped
    }

    internal fun build(): ApplicationConfigurationDetailsArgs = ApplicationConfigurationDetailsArgs(
        alarmMetrics = alarmMetrics,
        alarms = alarms,
        haClusterPrometheusExporter = haClusterPrometheusExporter,
        hanaPrometheusExporter = hanaPrometheusExporter,
        jmxPrometheusExporter = jmxPrometheusExporter,
        logs = logs,
        netWeaverPrometheusExporter = netWeaverPrometheusExporter,
        processes = processes,
        sqlServerPrometheusExporter = sqlServerPrometheusExporter,
        windowsEvents = windowsEvents,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy