com.pulumi.aws.amp.kotlin.inputs.ScraperDestinationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.amp.kotlin.inputs
import com.pulumi.aws.amp.inputs.ScraperDestinationArgs.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 amp Configuration block for an Amazon Managed Prometheus workspace destination. See `amp`.
*/
public data class ScraperDestinationArgs(
public val amp: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.amp.inputs.ScraperDestinationArgs =
com.pulumi.aws.amp.inputs.ScraperDestinationArgs.builder()
.amp(amp?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ScraperDestinationArgs].
*/
@PulumiTagMarker
public class ScraperDestinationArgsBuilder internal constructor() {
private var amp: Output? = null
/**
* @param value Configuration block for an Amazon Managed Prometheus workspace destination. See `amp`.
*/
@JvmName("chirpkkiivsimpus")
public suspend fun amp(`value`: Output) {
this.amp = value
}
/**
* @param value Configuration block for an Amazon Managed Prometheus workspace destination. See `amp`.
*/
@JvmName("wpatrtsopetgxfme")
public suspend fun amp(`value`: ScraperDestinationAmpArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.amp = mapped
}
/**
* @param argument Configuration block for an Amazon Managed Prometheus workspace destination. See `amp`.
*/
@JvmName("fayfdfhvninjakex")
public suspend fun amp(argument: suspend ScraperDestinationAmpArgsBuilder.() -> Unit) {
val toBeMapped = ScraperDestinationAmpArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.amp = mapped
}
internal fun build(): ScraperDestinationArgs = ScraperDestinationArgs(
amp = amp,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy