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

com.pulumi.awsnative.scheduler.kotlin.inputs.ScheduleEventBridgeParametersArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.scheduler.kotlin.inputs

import com.pulumi.awsnative.scheduler.inputs.ScheduleEventBridgeParametersArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * EventBridge PutEvent predefined target type.
 * @property detailType Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
 * @property source The source of the event.
 */
public data class ScheduleEventBridgeParametersArgs(
    public val detailType: Output,
    public val source: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.scheduler.inputs.ScheduleEventBridgeParametersArgs =
        com.pulumi.awsnative.scheduler.inputs.ScheduleEventBridgeParametersArgs.builder()
            .detailType(detailType.applyValue({ args0 -> args0 }))
            .source(source.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScheduleEventBridgeParametersArgs].
 */
@PulumiTagMarker
public class ScheduleEventBridgeParametersArgsBuilder internal constructor() {
    private var detailType: Output? = null

    private var source: Output? = null

    /**
     * @param value Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
     */
    @JvmName("bafilfbyvhaasovs")
    public suspend fun detailType(`value`: Output) {
        this.detailType = value
    }

    /**
     * @param value The source of the event.
     */
    @JvmName("rvvdaswmpxyhywop")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
     */
    @JvmName("odvgulhgowkvyjqi")
    public suspend fun detailType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.detailType = mapped
    }

    /**
     * @param value The source of the event.
     */
    @JvmName("oobnydqrhewuoetb")
    public suspend fun source(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.source = mapped
    }

    internal fun build(): ScheduleEventBridgeParametersArgs = ScheduleEventBridgeParametersArgs(
        detailType = detailType ?: throw PulumiNullFieldException("detailType"),
        source = source ?: throw PulumiNullFieldException("source"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy