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

com.pulumi.awsnative.stepfunctions.kotlin.inputs.StateMachineLoggingConfigurationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.stepfunctions.kotlin.inputs

import com.pulumi.awsnative.stepfunctions.inputs.StateMachineLoggingConfigurationArgs.builder
import com.pulumi.awsnative.stepfunctions.kotlin.enums.StateMachineLoggingConfigurationLevel
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property destinations An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to `OFF` .
 * @property includeExecutionData Determines whether execution data is included in your log. When set to `false` , data is excluded.
 * @property level Defines which category of execution history events are logged.
 */
public data class StateMachineLoggingConfigurationArgs(
    public val destinations: Output>? = null,
    public val includeExecutionData: Output? = null,
    public val level: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.stepfunctions.inputs.StateMachineLoggingConfigurationArgs =
        com.pulumi.awsnative.stepfunctions.inputs.StateMachineLoggingConfigurationArgs.builder()
            .destinations(
                destinations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .includeExecutionData(includeExecutionData?.applyValue({ args0 -> args0 }))
            .level(level?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [StateMachineLoggingConfigurationArgs].
 */
@PulumiTagMarker
public class StateMachineLoggingConfigurationArgsBuilder internal constructor() {
    private var destinations: Output>? = null

    private var includeExecutionData: Output? = null

    private var level: Output? = null

    /**
     * @param value An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to `OFF` .
     */
    @JvmName("hjnyqxstkuvtftuy")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

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

    /**
     * @param values An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to `OFF` .
     */
    @JvmName("mdfrxdowtckmfpbj")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value Determines whether execution data is included in your log. When set to `false` , data is excluded.
     */
    @JvmName("gwgfxsowbwoecfpb")
    public suspend fun includeExecutionData(`value`: Output) {
        this.includeExecutionData = value
    }

    /**
     * @param value Defines which category of execution history events are logged.
     */
    @JvmName("oktcebltuetkumgo")
    public suspend fun level(`value`: Output) {
        this.level = value
    }

    /**
     * @param value An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to `OFF` .
     */
    @JvmName("uumgbdlrvhtjboii")
    public suspend fun destinations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param argument An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to `OFF` .
     */
    @JvmName("nwqmxrcscqcplunt")
    public suspend fun destinations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StateMachineLogDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to `OFF` .
     */
    @JvmName("mgggsymwbnmwkqmm")
    public suspend fun destinations(vararg argument: suspend StateMachineLogDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StateMachineLogDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to `OFF` .
     */
    @JvmName("dxdpbvlbuaeqmxil")
    public suspend fun destinations(argument: suspend StateMachineLogDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            StateMachineLogDestinationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param values An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to `OFF` .
     */
    @JvmName("ktapahaqyvmmahry")
    public suspend fun destinations(vararg values: StateMachineLogDestinationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value Determines whether execution data is included in your log. When set to `false` , data is excluded.
     */
    @JvmName("hedsknsbdrwlwejy")
    public suspend fun includeExecutionData(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeExecutionData = mapped
    }

    /**
     * @param value Defines which category of execution history events are logged.
     */
    @JvmName("kewxuxbwkocxjuug")
    public suspend fun level(`value`: StateMachineLoggingConfigurationLevel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.level = mapped
    }

    internal fun build(): StateMachineLoggingConfigurationArgs = StateMachineLoggingConfigurationArgs(
        destinations = destinations,
        includeExecutionData = includeExecutionData,
        level = level,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy