All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.awsnative.xray.kotlin.inputs.SamplingRuleUpdateArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.xray.kotlin.inputs
import com.pulumi.awsnative.xray.inputs.SamplingRuleUpdateArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
*
* @property attributes Matches attributes derived from the request.
* @property fixedRate The percentage of matching requests to instrument, after the reservoir is exhausted.
* @property host Matches the hostname from a request URL.
* @property httpMethod Matches the HTTP method from a request URL.
* @property priority The priority of the sampling rule.
* @property reservoirSize A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
* @property resourceArn Matches the ARN of the AWS resource on which the service runs.
* @property ruleArn
* @property ruleName
* @property serviceName Matches the name that the service uses to identify itself in segments.
* @property serviceType Matches the origin that the service uses to identify its type in segments.
* @property urlPath Matches the path from a request URL.
*/
public data class SamplingRuleUpdateArgs(
public val attributes: Output>? = null,
public val fixedRate: Output? = null,
public val host: Output? = null,
public val httpMethod: Output? = null,
public val priority: Output? = null,
public val reservoirSize: Output? = null,
public val resourceArn: Output? = null,
public val ruleArn: Output? = null,
public val ruleName: Output? = null,
public val serviceName: Output? = null,
public val serviceType: Output? = null,
public val urlPath: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.xray.inputs.SamplingRuleUpdateArgs =
com.pulumi.awsnative.xray.inputs.SamplingRuleUpdateArgs.builder()
.attributes(
attributes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.fixedRate(fixedRate?.applyValue({ args0 -> args0 }))
.host(host?.applyValue({ args0 -> args0 }))
.httpMethod(httpMethod?.applyValue({ args0 -> args0 }))
.priority(priority?.applyValue({ args0 -> args0 }))
.reservoirSize(reservoirSize?.applyValue({ args0 -> args0 }))
.resourceArn(resourceArn?.applyValue({ args0 -> args0 }))
.ruleArn(ruleArn?.applyValue({ args0 -> args0 }))
.ruleName(ruleName?.applyValue({ args0 -> args0 }))
.serviceName(serviceName?.applyValue({ args0 -> args0 }))
.serviceType(serviceType?.applyValue({ args0 -> args0 }))
.urlPath(urlPath?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SamplingRuleUpdateArgs].
*/
@PulumiTagMarker
public class SamplingRuleUpdateArgsBuilder internal constructor() {
private var attributes: Output>? = null
private var fixedRate: Output? = null
private var host: Output? = null
private var httpMethod: Output? = null
private var priority: Output? = null
private var reservoirSize: Output? = null
private var resourceArn: Output? = null
private var ruleArn: Output? = null
private var ruleName: Output? = null
private var serviceName: Output? = null
private var serviceType: Output? = null
private var urlPath: Output? = null
/**
* @param value Matches attributes derived from the request.
*/
@JvmName("mwkarbjpjvqnyqtk")
public suspend fun attributes(`value`: Output>) {
this.attributes = value
}
/**
* @param value The percentage of matching requests to instrument, after the reservoir is exhausted.
*/
@JvmName("yrneltbclhgjgwva")
public suspend fun fixedRate(`value`: Output) {
this.fixedRate = value
}
/**
* @param value Matches the hostname from a request URL.
*/
@JvmName("irvyhrnkhwhqfrxi")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value Matches the HTTP method from a request URL.
*/
@JvmName("ygtbrgfrncfgwehc")
public suspend fun httpMethod(`value`: Output) {
this.httpMethod = value
}
/**
* @param value The priority of the sampling rule.
*/
@JvmName("rhxgabtryvxdfouo")
public suspend fun priority(`value`: Output) {
this.priority = value
}
/**
* @param value A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
*/
@JvmName("vtfdebymnoaeclct")
public suspend fun reservoirSize(`value`: Output) {
this.reservoirSize = value
}
/**
* @param value Matches the ARN of the AWS resource on which the service runs.
*/
@JvmName("kfwflirjoafrcule")
public suspend fun resourceArn(`value`: Output) {
this.resourceArn = value
}
/**
* @param value
*/
@JvmName("bjvgbkafkdkgdiiv")
public suspend fun ruleArn(`value`: Output) {
this.ruleArn = value
}
/**
* @param value
*/
@JvmName("flickrviebuwhwue")
public suspend fun ruleName(`value`: Output) {
this.ruleName = value
}
/**
* @param value Matches the name that the service uses to identify itself in segments.
*/
@JvmName("keefvxtuumetxuuu")
public suspend fun serviceName(`value`: Output) {
this.serviceName = value
}
/**
* @param value Matches the origin that the service uses to identify its type in segments.
*/
@JvmName("nwjhjwjejpwvjfaw")
public suspend fun serviceType(`value`: Output) {
this.serviceType = value
}
/**
* @param value Matches the path from a request URL.
*/
@JvmName("mmubfxjxkywdgumm")
public suspend fun urlPath(`value`: Output) {
this.urlPath = value
}
/**
* @param value Matches attributes derived from the request.
*/
@JvmName("srexvjmyneujoalk")
public suspend fun attributes(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.attributes = mapped
}
/**
* @param values Matches attributes derived from the request.
*/
@JvmName("xmunanmcvwwtajcv")
public fun attributes(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.attributes = mapped
}
/**
* @param value The percentage of matching requests to instrument, after the reservoir is exhausted.
*/
@JvmName("ugevtfptwlgqeqvd")
public suspend fun fixedRate(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fixedRate = mapped
}
/**
* @param value Matches the hostname from a request URL.
*/
@JvmName("hhnsptohjiuuleco")
public suspend fun host(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value Matches the HTTP method from a request URL.
*/
@JvmName("gcorimllelrcylpn")
public suspend fun httpMethod(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpMethod = mapped
}
/**
* @param value The priority of the sampling rule.
*/
@JvmName("ltogigeuedplygph")
public suspend fun priority(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.priority = mapped
}
/**
* @param value A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
*/
@JvmName("bnbjjarbabpsqfly")
public suspend fun reservoirSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.reservoirSize = mapped
}
/**
* @param value Matches the ARN of the AWS resource on which the service runs.
*/
@JvmName("brvjslpuucvklewn")
public suspend fun resourceArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceArn = mapped
}
/**
* @param value
*/
@JvmName("farcthdbvdamsvxu")
public suspend fun ruleArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ruleArn = mapped
}
/**
* @param value
*/
@JvmName("vhsekxrpygegvhhq")
public suspend fun ruleName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ruleName = mapped
}
/**
* @param value Matches the name that the service uses to identify itself in segments.
*/
@JvmName("vgviwiklxykfsncl")
public suspend fun serviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceName = mapped
}
/**
* @param value Matches the origin that the service uses to identify its type in segments.
*/
@JvmName("bejcntworxjeqyyc")
public suspend fun serviceType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceType = mapped
}
/**
* @param value Matches the path from a request URL.
*/
@JvmName("uqgeypugvhxlofnr")
public suspend fun urlPath(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.urlPath = mapped
}
internal fun build(): SamplingRuleUpdateArgs = SamplingRuleUpdateArgs(
attributes = attributes,
fixedRate = fixedRate,
host = host,
httpMethod = httpMethod,
priority = priority,
reservoirSize = reservoirSize,
resourceArn = resourceArn,
ruleArn = ruleArn,
ruleName = ruleName,
serviceName = serviceName,
serviceType = serviceType,
urlPath = urlPath,
)
}