com.pulumi.aws.chimesdkmediapipelines.kotlin.inputs.MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs.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.chimesdkmediapipelines.kotlin.inputs
import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property issueDetectionConfiguration Configuration for an issue detection rule.
* @property keywordMatchConfiguration Configuration for a keyword match rule.
* @property sentimentConfiguration Configuration for a sentiment rule.
* @property type Rule type.
*/
public data class MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs(
public val issueDetectionConfiguration: Output? =
null,
public val keywordMatchConfiguration: Output? =
null,
public val sentimentConfiguration: Output? =
null,
public val type: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs =
com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs.builder()
.issueDetectionConfiguration(
issueDetectionConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.keywordMatchConfiguration(
keywordMatchConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.sentimentConfiguration(
sentimentConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs].
*/
@PulumiTagMarker
public class MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgsBuilder internal constructor() {
private var issueDetectionConfiguration:
Output? =
null
private var keywordMatchConfiguration:
Output? =
null
private var sentimentConfiguration:
Output? =
null
private var type: Output? = null
/**
* @param value Configuration for an issue detection rule.
*/
@JvmName("ayplgmucbuotlysf")
public suspend fun issueDetectionConfiguration(`value`: Output) {
this.issueDetectionConfiguration = value
}
/**
* @param value Configuration for a keyword match rule.
*/
@JvmName("qihpbhxrvrdobvjk")
public suspend fun keywordMatchConfiguration(`value`: Output) {
this.keywordMatchConfiguration = value
}
/**
* @param value Configuration for a sentiment rule.
*/
@JvmName("lsrocomukwfkclte")
public suspend fun sentimentConfiguration(`value`: Output) {
this.sentimentConfiguration = value
}
/**
* @param value Rule type.
*/
@JvmName("fuosdrmcakvltbrp")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Configuration for an issue detection rule.
*/
@JvmName("jjjscyrdcasaixum")
public suspend fun issueDetectionConfiguration(`value`: MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleIssueDetectionConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.issueDetectionConfiguration = mapped
}
/**
* @param argument Configuration for an issue detection rule.
*/
@JvmName("bwfvxnamkmdvdguw")
public suspend fun issueDetectionConfiguration(argument: suspend MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleIssueDetectionConfigurationArgsBuilder.() -> Unit) {
val toBeMapped =
MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleIssueDetectionConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.issueDetectionConfiguration = mapped
}
/**
* @param value Configuration for a keyword match rule.
*/
@JvmName("anugpiwbnsrivgkf")
public suspend fun keywordMatchConfiguration(`value`: MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keywordMatchConfiguration = mapped
}
/**
* @param argument Configuration for a keyword match rule.
*/
@JvmName("ytyhcaxwgonhbcbb")
public suspend fun keywordMatchConfiguration(argument: suspend MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgsBuilder.() -> Unit) {
val toBeMapped =
MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.keywordMatchConfiguration = mapped
}
/**
* @param value Configuration for a sentiment rule.
*/
@JvmName("qrqhcwyjogqqbgpg")
public suspend fun sentimentConfiguration(`value`: MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleSentimentConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sentimentConfiguration = mapped
}
/**
* @param argument Configuration for a sentiment rule.
*/
@JvmName("maopuhfixvtrpyoa")
public suspend fun sentimentConfiguration(argument: suspend MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleSentimentConfigurationArgsBuilder.() -> Unit) {
val toBeMapped =
MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleSentimentConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.sentimentConfiguration = mapped
}
/**
* @param value Rule type.
*/
@JvmName("dhunkdpekqlnnxyy")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs =
MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs(
issueDetectionConfiguration = issueDetectionConfiguration,
keywordMatchConfiguration = keywordMatchConfiguration,
sentimentConfiguration = sentimentConfiguration,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy