com.pulumi.aws.appsync.kotlin.inputs.GraphQLApiEnhancedMetricsConfigArgs.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.appsync.kotlin.inputs
import com.pulumi.aws.appsync.inputs.GraphQLApiEnhancedMetricsConfigArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property dataSourceLevelMetricsBehavior How data source metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_DATA_SOURCE_METRICS`, `PER_DATA_SOURCE_METRICS`
* @property operationLevelMetricsConfig How operation metrics will be emitted to CloudWatch. Valid values: `ENABLED`, `DISABLED`
* @property resolverLevelMetricsBehavior How resolver metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_RESOLVER_METRICS`, `PER_RESOLVER_METRICS`
*/
public data class GraphQLApiEnhancedMetricsConfigArgs(
public val dataSourceLevelMetricsBehavior: Output,
public val operationLevelMetricsConfig: Output,
public val resolverLevelMetricsBehavior: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.appsync.inputs.GraphQLApiEnhancedMetricsConfigArgs =
com.pulumi.aws.appsync.inputs.GraphQLApiEnhancedMetricsConfigArgs.builder()
.dataSourceLevelMetricsBehavior(dataSourceLevelMetricsBehavior.applyValue({ args0 -> args0 }))
.operationLevelMetricsConfig(operationLevelMetricsConfig.applyValue({ args0 -> args0 }))
.resolverLevelMetricsBehavior(resolverLevelMetricsBehavior.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GraphQLApiEnhancedMetricsConfigArgs].
*/
@PulumiTagMarker
public class GraphQLApiEnhancedMetricsConfigArgsBuilder internal constructor() {
private var dataSourceLevelMetricsBehavior: Output? = null
private var operationLevelMetricsConfig: Output? = null
private var resolverLevelMetricsBehavior: Output? = null
/**
* @param value How data source metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_DATA_SOURCE_METRICS`, `PER_DATA_SOURCE_METRICS`
*/
@JvmName("rasnldublycvevot")
public suspend fun dataSourceLevelMetricsBehavior(`value`: Output) {
this.dataSourceLevelMetricsBehavior = value
}
/**
* @param value How operation metrics will be emitted to CloudWatch. Valid values: `ENABLED`, `DISABLED`
*/
@JvmName("omsparcjmcponxtu")
public suspend fun operationLevelMetricsConfig(`value`: Output) {
this.operationLevelMetricsConfig = value
}
/**
* @param value How resolver metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_RESOLVER_METRICS`, `PER_RESOLVER_METRICS`
*/
@JvmName("rqgltctxyeyfsbwp")
public suspend fun resolverLevelMetricsBehavior(`value`: Output) {
this.resolverLevelMetricsBehavior = value
}
/**
* @param value How data source metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_DATA_SOURCE_METRICS`, `PER_DATA_SOURCE_METRICS`
*/
@JvmName("kgmducfcnowdjeij")
public suspend fun dataSourceLevelMetricsBehavior(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dataSourceLevelMetricsBehavior = mapped
}
/**
* @param value How operation metrics will be emitted to CloudWatch. Valid values: `ENABLED`, `DISABLED`
*/
@JvmName("caeecheodovopfmf")
public suspend fun operationLevelMetricsConfig(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.operationLevelMetricsConfig = mapped
}
/**
* @param value How resolver metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_RESOLVER_METRICS`, `PER_RESOLVER_METRICS`
*/
@JvmName("bjdthqvcsnunkitf")
public suspend fun resolverLevelMetricsBehavior(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resolverLevelMetricsBehavior = mapped
}
internal fun build(): GraphQLApiEnhancedMetricsConfigArgs = GraphQLApiEnhancedMetricsConfigArgs(
dataSourceLevelMetricsBehavior = dataSourceLevelMetricsBehavior ?: throw
PulumiNullFieldException("dataSourceLevelMetricsBehavior"),
operationLevelMetricsConfig = operationLevelMetricsConfig ?: throw
PulumiNullFieldException("operationLevelMetricsConfig"),
resolverLevelMetricsBehavior = resolverLevelMetricsBehavior ?: throw
PulumiNullFieldException("resolverLevelMetricsBehavior"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy