All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.sagemaker.kotlin.inputs.EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgs.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.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.sagemaker.kotlin.inputs

import com.pulumi.aws.sagemaker.inputs.EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property errorTopic Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
 * @property includeInferenceResponseIns The Amazon SNS topics where you want the inference response to be included. Valid values are `SUCCESS_NOTIFICATION_TOPIC` and `ERROR_NOTIFICATION_TOPIC`.
 * @property successTopic Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
 */
public data class EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgs(
    public val errorTopic: Output? = null,
    public val includeInferenceResponseIns: Output>? = null,
    public val successTopic: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.sagemaker.inputs.EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgs =
        com.pulumi.aws.sagemaker.inputs.EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgs.builder()
            .errorTopic(errorTopic?.applyValue({ args0 -> args0 }))
            .includeInferenceResponseIns(
                includeInferenceResponseIns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .successTopic(successTopic?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgs].
 */
@PulumiTagMarker
public class EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgsBuilder
internal constructor() {
    private var errorTopic: Output? = null

    private var includeInferenceResponseIns: Output>? = null

    private var successTopic: Output? = null

    /**
     * @param value Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
     */
    @JvmName("ghdmsfpojphmynrd")
    public suspend fun errorTopic(`value`: Output) {
        this.errorTopic = value
    }

    /**
     * @param value The Amazon SNS topics where you want the inference response to be included. Valid values are `SUCCESS_NOTIFICATION_TOPIC` and `ERROR_NOTIFICATION_TOPIC`.
     */
    @JvmName("yfqdvalpfwdysamc")
    public suspend fun includeInferenceResponseIns(`value`: Output>) {
        this.includeInferenceResponseIns = value
    }

    @JvmName("nuqyqiynfjrcyvdu")
    public suspend fun includeInferenceResponseIns(vararg values: Output) {
        this.includeInferenceResponseIns = Output.all(values.asList())
    }

    /**
     * @param values The Amazon SNS topics where you want the inference response to be included. Valid values are `SUCCESS_NOTIFICATION_TOPIC` and `ERROR_NOTIFICATION_TOPIC`.
     */
    @JvmName("fepnqqxtfiwcjsno")
    public suspend fun includeInferenceResponseIns(values: List>) {
        this.includeInferenceResponseIns = Output.all(values)
    }

    /**
     * @param value Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
     */
    @JvmName("onwhlqjqwpmukulu")
    public suspend fun successTopic(`value`: Output) {
        this.successTopic = value
    }

    /**
     * @param value Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
     */
    @JvmName("hwenxyjvqfnfrntj")
    public suspend fun errorTopic(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.errorTopic = mapped
    }

    /**
     * @param value The Amazon SNS topics where you want the inference response to be included. Valid values are `SUCCESS_NOTIFICATION_TOPIC` and `ERROR_NOTIFICATION_TOPIC`.
     */
    @JvmName("idnslsebkaouktcx")
    public suspend fun includeInferenceResponseIns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeInferenceResponseIns = mapped
    }

    /**
     * @param values The Amazon SNS topics where you want the inference response to be included. Valid values are `SUCCESS_NOTIFICATION_TOPIC` and `ERROR_NOTIFICATION_TOPIC`.
     */
    @JvmName("otdxkulixfarcpdw")
    public suspend fun includeInferenceResponseIns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includeInferenceResponseIns = mapped
    }

    /**
     * @param value Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
     */
    @JvmName("mwplvprvokjnsyio")
    public suspend fun successTopic(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.successTopic = mapped
    }

    internal fun build(): EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgs = EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigArgs(
        errorTopic = errorTopic,
        includeInferenceResponseIns = includeInferenceResponseIns,
        successTopic = successTopic,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy