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.azure.containerapp.kotlin.inputs.AppTemplateCustomScaleRuleArgs.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.azure.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.AppTemplateCustomScaleRuleArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
*
* @property authentications Zero or more `authentication` blocks as defined below.
* @property customRuleType The Custom rule type. Possible values include: `activemq`, `artemis-queue`, `kafka`, `pulsar`, `aws-cloudwatch`, `aws-dynamodb`, `aws-dynamodb-streams`, `aws-kinesis-stream`, `aws-sqs-queue`, `azure-app-insights`, `azure-blob`, `azure-data-explorer`, `azure-eventhub`, `azure-log-analytics`, `azure-monitor`, `azure-pipelines`, `azure-servicebus`, `azure-queue`, `cassandra`, `cpu`, `cron`, `datadog`, `elasticsearch`, `external`, `external-push`, `gcp-stackdriver`, `gcp-storage`, `gcp-pubsub`, `graphite`, `http`, `huawei-cloudeye`, `ibmmq`, `influxdb`, `kubernetes-workload`, `liiklus`, `memory`, `metrics-api`, `mongodb`, `mssql`, `mysql`, `nats-jetstream`, `stan`, `tcp`, `new-relic`, `openstack-metric`, `openstack-swift`, `postgresql`, `predictkube`, `prometheus`, `rabbitmq`, `redis`, `redis-cluster`, `redis-sentinel`, `redis-streams`, `redis-cluster-streams`, `redis-sentinel-streams`, `selenium-grid`,`solace-event-queue`, and `github-runner`.
* @property metadata A map of string key-value pairs to configure the Custom Scale Rule.
* @property name The name of the Scaling Rule
*/
public data class AppTemplateCustomScaleRuleArgs(
public val authentications: Output>? = null,
public val customRuleType: Output,
public val metadata: Output>,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.AppTemplateCustomScaleRuleArgs =
com.pulumi.azure.containerapp.inputs.AppTemplateCustomScaleRuleArgs.builder()
.authentications(
authentications?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.customRuleType(customRuleType.applyValue({ args0 -> args0 }))
.metadata(metadata.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppTemplateCustomScaleRuleArgs].
*/
@PulumiTagMarker
public class AppTemplateCustomScaleRuleArgsBuilder internal constructor() {
private var authentications: Output>? = null
private var customRuleType: Output? = null
private var metadata: Output>? = null
private var name: Output? = null
/**
* @param value Zero or more `authentication` blocks as defined below.
*/
@JvmName("wrmdshllinnnseby")
public suspend
fun authentications(`value`: Output>) {
this.authentications = value
}
@JvmName("dgfcooqdiwbdutjr")
public suspend fun authentications(
vararg
values: Output,
) {
this.authentications = Output.all(values.asList())
}
/**
* @param values Zero or more `authentication` blocks as defined below.
*/
@JvmName("yhocqfedkulofxua")
public suspend
fun authentications(values: List>) {
this.authentications = Output.all(values)
}
/**
* @param value The Custom rule type. Possible values include: `activemq`, `artemis-queue`, `kafka`, `pulsar`, `aws-cloudwatch`, `aws-dynamodb`, `aws-dynamodb-streams`, `aws-kinesis-stream`, `aws-sqs-queue`, `azure-app-insights`, `azure-blob`, `azure-data-explorer`, `azure-eventhub`, `azure-log-analytics`, `azure-monitor`, `azure-pipelines`, `azure-servicebus`, `azure-queue`, `cassandra`, `cpu`, `cron`, `datadog`, `elasticsearch`, `external`, `external-push`, `gcp-stackdriver`, `gcp-storage`, `gcp-pubsub`, `graphite`, `http`, `huawei-cloudeye`, `ibmmq`, `influxdb`, `kubernetes-workload`, `liiklus`, `memory`, `metrics-api`, `mongodb`, `mssql`, `mysql`, `nats-jetstream`, `stan`, `tcp`, `new-relic`, `openstack-metric`, `openstack-swift`, `postgresql`, `predictkube`, `prometheus`, `rabbitmq`, `redis`, `redis-cluster`, `redis-sentinel`, `redis-streams`, `redis-cluster-streams`, `redis-sentinel-streams`, `selenium-grid`,`solace-event-queue`, and `github-runner`.
*/
@JvmName("sgmlllocrvtoysxd")
public suspend fun customRuleType(`value`: Output) {
this.customRuleType = value
}
/**
* @param value A map of string key-value pairs to configure the Custom Scale Rule.
*/
@JvmName("alvkatbwrobiiupa")
public suspend fun metadata(`value`: Output>) {
this.metadata = value
}
/**
* @param value The name of the Scaling Rule
*/
@JvmName("abchinycrrkoogxn")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Zero or more `authentication` blocks as defined below.
*/
@JvmName("ywreywejnyvckmei")
public suspend fun authentications(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authentications = mapped
}
/**
* @param argument Zero or more `authentication` blocks as defined below.
*/
@JvmName("cgglprifdilesomk")
public suspend
fun authentications(argument: List Unit>) {
val toBeMapped = argument.toList().map {
AppTemplateCustomScaleRuleAuthenticationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.authentications = mapped
}
/**
* @param argument Zero or more `authentication` blocks as defined below.
*/
@JvmName("httgpipowwfjfgfj")
public suspend fun authentications(
vararg
argument: suspend AppTemplateCustomScaleRuleAuthenticationArgsBuilder.() -> Unit,
) {
val toBeMapped = argument.toList().map {
AppTemplateCustomScaleRuleAuthenticationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.authentications = mapped
}
/**
* @param argument Zero or more `authentication` blocks as defined below.
*/
@JvmName("efkguacknmgckica")
public suspend
fun authentications(argument: suspend AppTemplateCustomScaleRuleAuthenticationArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
AppTemplateCustomScaleRuleAuthenticationArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.authentications = mapped
}
/**
* @param values Zero or more `authentication` blocks as defined below.
*/
@JvmName("hacnbjkkdgceosby")
public suspend fun authentications(vararg values: AppTemplateCustomScaleRuleAuthenticationArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.authentications = mapped
}
/**
* @param value The Custom rule type. Possible values include: `activemq`, `artemis-queue`, `kafka`, `pulsar`, `aws-cloudwatch`, `aws-dynamodb`, `aws-dynamodb-streams`, `aws-kinesis-stream`, `aws-sqs-queue`, `azure-app-insights`, `azure-blob`, `azure-data-explorer`, `azure-eventhub`, `azure-log-analytics`, `azure-monitor`, `azure-pipelines`, `azure-servicebus`, `azure-queue`, `cassandra`, `cpu`, `cron`, `datadog`, `elasticsearch`, `external`, `external-push`, `gcp-stackdriver`, `gcp-storage`, `gcp-pubsub`, `graphite`, `http`, `huawei-cloudeye`, `ibmmq`, `influxdb`, `kubernetes-workload`, `liiklus`, `memory`, `metrics-api`, `mongodb`, `mssql`, `mysql`, `nats-jetstream`, `stan`, `tcp`, `new-relic`, `openstack-metric`, `openstack-swift`, `postgresql`, `predictkube`, `prometheus`, `rabbitmq`, `redis`, `redis-cluster`, `redis-sentinel`, `redis-streams`, `redis-cluster-streams`, `redis-sentinel-streams`, `selenium-grid`,`solace-event-queue`, and `github-runner`.
*/
@JvmName("hjdicpqwbrgrxqjf")
public suspend fun customRuleType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.customRuleType = mapped
}
/**
* @param value A map of string key-value pairs to configure the Custom Scale Rule.
*/
@JvmName("ueexwseooxyhwxmn")
public suspend fun metadata(`value`: Map) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param values A map of string key-value pairs to configure the Custom Scale Rule.
*/
@JvmName("xstawlkffomkkhbw")
public fun metadata(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param value The name of the Scaling Rule
*/
@JvmName("hijsyggldlbapkqh")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): AppTemplateCustomScaleRuleArgs = AppTemplateCustomScaleRuleArgs(
authentications = authentications,
customRuleType = customRuleType ?: throw PulumiNullFieldException("customRuleType"),
metadata = metadata ?: throw PulumiNullFieldException("metadata"),
name = name ?: throw PulumiNullFieldException("name"),
)
}