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

com.pulumi.awsnative.medialive.kotlin.EventBridgeRuleTemplateArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.medialive.kotlin

import com.pulumi.awsnative.medialive.EventBridgeRuleTemplateArgs.builder
import com.pulumi.awsnative.medialive.kotlin.enums.EventBridgeRuleTemplateEventType
import com.pulumi.awsnative.medialive.kotlin.inputs.EventBridgeRuleTemplateTargetArgs
import com.pulumi.awsnative.medialive.kotlin.inputs.EventBridgeRuleTemplateTargetArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Definition of AWS::MediaLive::EventBridgeRuleTemplate Resource Type
 * @property description A resource's optional description.
 * @property eventTargets Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
 * @property eventType
 * @property groupIdentifier An eventbridge rule template group's identifier. Can be either be its id or current name.
 * @property name A resource's name. Names must be unique within the scope of a resource type in a specific region.
 * @property tags
 */
public data class EventBridgeRuleTemplateArgs(
    public val description: Output? = null,
    public val eventTargets: Output>? = null,
    public val eventType: Output? = null,
    public val groupIdentifier: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.medialive.EventBridgeRuleTemplateArgs =
        com.pulumi.awsnative.medialive.EventBridgeRuleTemplateArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .eventTargets(
                eventTargets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .eventType(eventType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .groupIdentifier(groupIdentifier?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [EventBridgeRuleTemplateArgs].
 */
@PulumiTagMarker
public class EventBridgeRuleTemplateArgsBuilder internal constructor() {
    private var description: Output? = null

    private var eventTargets: Output>? = null

    private var eventType: Output? = null

    private var groupIdentifier: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A resource's optional description.
     */
    @JvmName("lrglentlsquonuyg")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
     */
    @JvmName("vhcodswecldsdkht")
    public suspend fun eventTargets(`value`: Output>) {
        this.eventTargets = value
    }

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

    /**
     * @param values Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
     */
    @JvmName("eucqbnksgyppvcjw")
    public suspend fun eventTargets(values: List>) {
        this.eventTargets = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("pxrlafvavdcvmhvu")
    public suspend fun eventType(`value`: Output) {
        this.eventType = value
    }

    /**
     * @param value An eventbridge rule template group's identifier. Can be either be its id or current name.
     */
    @JvmName("calrbvjhpmibjher")
    public suspend fun groupIdentifier(`value`: Output) {
        this.groupIdentifier = value
    }

    /**
     * @param value A resource's name. Names must be unique within the scope of a resource type in a specific region.
     */
    @JvmName("wecedrvebowgjiuc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("qdmhhrocpprgeudf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A resource's optional description.
     */
    @JvmName("hahnuaponxkapibu")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
     */
    @JvmName("ucbrslnsnyioxgnw")
    public suspend fun eventTargets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventTargets = mapped
    }

    /**
     * @param argument Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
     */
    @JvmName("ccxouuacukvdmrbu")
    public suspend fun eventTargets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EventBridgeRuleTemplateTargetArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.eventTargets = mapped
    }

    /**
     * @param argument Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
     */
    @JvmName("gyquehhurthsuxno")
    public suspend fun eventTargets(vararg argument: suspend EventBridgeRuleTemplateTargetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EventBridgeRuleTemplateTargetArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.eventTargets = mapped
    }

    /**
     * @param argument Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
     */
    @JvmName("ueimhedyvfnjrlxk")
    public suspend fun eventTargets(argument: suspend EventBridgeRuleTemplateTargetArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EventBridgeRuleTemplateTargetArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.eventTargets = mapped
    }

    /**
     * @param values Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
     */
    @JvmName("tmuqgwihxkmyuslb")
    public suspend fun eventTargets(vararg values: EventBridgeRuleTemplateTargetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.eventTargets = mapped
    }

    /**
     * @param value
     */
    @JvmName("xfwbmmnyydbsswei")
    public suspend fun eventType(`value`: EventBridgeRuleTemplateEventType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventType = mapped
    }

    /**
     * @param value An eventbridge rule template group's identifier. Can be either be its id or current name.
     */
    @JvmName("pvqqkpaevgrdxedk")
    public suspend fun groupIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupIdentifier = mapped
    }

    /**
     * @param value A resource's name. Names must be unique within the scope of a resource type in a specific region.
     */
    @JvmName("pidvffoqjjfrqtff")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value
     */
    @JvmName("qumhydvnlcrqsxon")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values
     */
    @JvmName("spfqnxeboplcmney")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): EventBridgeRuleTemplateArgs = EventBridgeRuleTemplateArgs(
        description = description,
        eventTargets = eventTargets,
        eventType = eventType,
        groupIdentifier = groupIdentifier,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy