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

com.pulumi.awsnative.events.kotlin.EndpointArgs.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.events.kotlin

import com.pulumi.awsnative.events.EndpointArgs.builder
import com.pulumi.awsnative.events.kotlin.inputs.EndpointEventBusArgs
import com.pulumi.awsnative.events.kotlin.inputs.EndpointEventBusArgsBuilder
import com.pulumi.awsnative.events.kotlin.inputs.EndpointReplicationConfigArgs
import com.pulumi.awsnative.events.kotlin.inputs.EndpointReplicationConfigArgsBuilder
import com.pulumi.awsnative.events.kotlin.inputs.EndpointRoutingConfigArgs
import com.pulumi.awsnative.events.kotlin.inputs.EndpointRoutingConfigArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Events::Endpoint.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property description A description for the endpoint.
 * @property eventBuses The event buses being used by the endpoint.
 * *Exactly* : `2`
 * @property name The name of the endpoint.
 * @property replicationConfig Whether event replication was enabled or disabled for this endpoint. The default state is `ENABLED` which means you must supply a `RoleArn` . If you don't have a `RoleArn` or you don't want event replication enabled, set the state to `DISABLED` .
 * @property roleArn The ARN of the role used by event replication for the endpoint.
 * @property routingConfig The routing configuration of the endpoint.
 */
public data class EndpointArgs(
    public val description: Output? = null,
    public val eventBuses: Output>? = null,
    public val name: Output? = null,
    public val replicationConfig: Output? = null,
    public val roleArn: Output? = null,
    public val routingConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.events.EndpointArgs =
        com.pulumi.awsnative.events.EndpointArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .eventBuses(
                eventBuses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .replicationConfig(replicationConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .routingConfig(routingConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var eventBuses: Output>? = null

    private var name: Output? = null

    private var replicationConfig: Output? = null

    private var roleArn: Output? = null

    private var routingConfig: Output? = null

    /**
     * @param value A description for the endpoint.
     */
    @JvmName("jmdamumfshuwamxm")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The event buses being used by the endpoint.
     * *Exactly* : `2`
     */
    @JvmName("xbybtvyuxqspgbkq")
    public suspend fun eventBuses(`value`: Output>) {
        this.eventBuses = value
    }

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

    /**
     * @param values The event buses being used by the endpoint.
     * *Exactly* : `2`
     */
    @JvmName("gpdslvephwtttyup")
    public suspend fun eventBuses(values: List>) {
        this.eventBuses = Output.all(values)
    }

    /**
     * @param value The name of the endpoint.
     */
    @JvmName("tlqkwiotjvqlxhaw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Whether event replication was enabled or disabled for this endpoint. The default state is `ENABLED` which means you must supply a `RoleArn` . If you don't have a `RoleArn` or you don't want event replication enabled, set the state to `DISABLED` .
     */
    @JvmName("ikroydlvwgonrxgr")
    public suspend fun replicationConfig(`value`: Output) {
        this.replicationConfig = value
    }

    /**
     * @param value The ARN of the role used by event replication for the endpoint.
     */
    @JvmName("wongqxvmgbhbsnpc")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The routing configuration of the endpoint.
     */
    @JvmName("abtsyurdiggqysib")
    public suspend fun routingConfig(`value`: Output) {
        this.routingConfig = value
    }

    /**
     * @param value A description for the endpoint.
     */
    @JvmName("mrrpdnxrevtkmvef")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The event buses being used by the endpoint.
     * *Exactly* : `2`
     */
    @JvmName("fegstihonqnnxnnc")
    public suspend fun eventBuses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventBuses = mapped
    }

    /**
     * @param argument The event buses being used by the endpoint.
     * *Exactly* : `2`
     */
    @JvmName("arqdveleemrfqdoe")
    public suspend fun eventBuses(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EndpointEventBusArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.eventBuses = mapped
    }

    /**
     * @param argument The event buses being used by the endpoint.
     * *Exactly* : `2`
     */
    @JvmName("ynuijdfxveugypjp")
    public suspend fun eventBuses(vararg argument: suspend EndpointEventBusArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EndpointEventBusArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.eventBuses = mapped
    }

    /**
     * @param argument The event buses being used by the endpoint.
     * *Exactly* : `2`
     */
    @JvmName("xhqotwyfocpjdwfh")
    public suspend fun eventBuses(argument: suspend EndpointEventBusArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EndpointEventBusArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.eventBuses = mapped
    }

    /**
     * @param values The event buses being used by the endpoint.
     * *Exactly* : `2`
     */
    @JvmName("ytkybhcvcqibjwrm")
    public suspend fun eventBuses(vararg values: EndpointEventBusArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.eventBuses = mapped
    }

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

    /**
     * @param value Whether event replication was enabled or disabled for this endpoint. The default state is `ENABLED` which means you must supply a `RoleArn` . If you don't have a `RoleArn` or you don't want event replication enabled, set the state to `DISABLED` .
     */
    @JvmName("rtsrrfuqtwewsitg")
    public suspend fun replicationConfig(`value`: EndpointReplicationConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicationConfig = mapped
    }

    /**
     * @param argument Whether event replication was enabled or disabled for this endpoint. The default state is `ENABLED` which means you must supply a `RoleArn` . If you don't have a `RoleArn` or you don't want event replication enabled, set the state to `DISABLED` .
     */
    @JvmName("okyckgsduwddfcpo")
    public suspend fun replicationConfig(argument: suspend EndpointReplicationConfigArgsBuilder.() -> Unit) {
        val toBeMapped = EndpointReplicationConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.replicationConfig = mapped
    }

    /**
     * @param value The ARN of the role used by event replication for the endpoint.
     */
    @JvmName("kgdtpfiahhveymun")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The routing configuration of the endpoint.
     */
    @JvmName("panbtrbunvnjfhnp")
    public suspend fun routingConfig(`value`: EndpointRoutingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routingConfig = mapped
    }

    /**
     * @param argument The routing configuration of the endpoint.
     */
    @JvmName("cdnrdamanlpdepmn")
    public suspend fun routingConfig(argument: suspend EndpointRoutingConfigArgsBuilder.() -> Unit) {
        val toBeMapped = EndpointRoutingConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.routingConfig = mapped
    }

    internal fun build(): EndpointArgs = EndpointArgs(
        description = description,
        eventBuses = eventBuses,
        name = name,
        replicationConfig = replicationConfig,
        roleArn = roleArn,
        routingConfig = routingConfig,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy