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

com.pulumi.awsnative.events.kotlin.outputs.GetEndpointResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.events.kotlin.outputs

import com.pulumi.awsnative.events.kotlin.enums.EndpointState
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn The ARN of the endpoint.
 * @property description A description for the endpoint.
 * @property endpointId The ID of the endpoint.
 * @property endpointUrl The URL of the endpoint.
 * @property eventBuses The event buses being used by the endpoint.
 * *Exactly* : `2`
 * @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.
 * @property state The main Region of the endpoint.
 * @property stateReason The reason the endpoint is in its current state.
 */
public data class GetEndpointResult(
    public val arn: String? = null,
    public val description: String? = null,
    public val endpointId: String? = null,
    public val endpointUrl: String? = null,
    public val eventBuses: List? = null,
    public val replicationConfig: EndpointReplicationConfig? = null,
    public val roleArn: String? = null,
    public val routingConfig: EndpointRoutingConfig? = null,
    public val state: EndpointState? = null,
    public val stateReason: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.events.outputs.GetEndpointResult): GetEndpointResult = GetEndpointResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            endpointId = javaType.endpointId().map({ args0 -> args0 }).orElse(null),
            endpointUrl = javaType.endpointUrl().map({ args0 -> args0 }).orElse(null),
            eventBuses = javaType.eventBuses().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.events.kotlin.outputs.EndpointEventBus.Companion.toKotlin(args0)
                })
            }),
            replicationConfig = javaType.replicationConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.events.kotlin.outputs.EndpointReplicationConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
            routingConfig = javaType.routingConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.events.kotlin.outputs.EndpointRoutingConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            state = javaType.state().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.events.kotlin.enums.EndpointState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            stateReason = javaType.stateReason().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy