com.pulumi.awsnative.events.kotlin.EventsFunctions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.events.kotlin
import com.pulumi.awsnative.events.EventsFunctions.getApiDestinationPlain
import com.pulumi.awsnative.events.EventsFunctions.getArchivePlain
import com.pulumi.awsnative.events.EventsFunctions.getConnectionPlain
import com.pulumi.awsnative.events.EventsFunctions.getEndpointPlain
import com.pulumi.awsnative.events.EventsFunctions.getEventBusPlain
import com.pulumi.awsnative.events.EventsFunctions.getRulePlain
import com.pulumi.awsnative.events.kotlin.inputs.GetApiDestinationPlainArgs
import com.pulumi.awsnative.events.kotlin.inputs.GetApiDestinationPlainArgsBuilder
import com.pulumi.awsnative.events.kotlin.inputs.GetArchivePlainArgs
import com.pulumi.awsnative.events.kotlin.inputs.GetArchivePlainArgsBuilder
import com.pulumi.awsnative.events.kotlin.inputs.GetConnectionPlainArgs
import com.pulumi.awsnative.events.kotlin.inputs.GetConnectionPlainArgsBuilder
import com.pulumi.awsnative.events.kotlin.inputs.GetEndpointPlainArgs
import com.pulumi.awsnative.events.kotlin.inputs.GetEndpointPlainArgsBuilder
import com.pulumi.awsnative.events.kotlin.inputs.GetEventBusPlainArgs
import com.pulumi.awsnative.events.kotlin.inputs.GetEventBusPlainArgsBuilder
import com.pulumi.awsnative.events.kotlin.inputs.GetRulePlainArgs
import com.pulumi.awsnative.events.kotlin.inputs.GetRulePlainArgsBuilder
import com.pulumi.awsnative.events.kotlin.outputs.GetApiDestinationResult
import com.pulumi.awsnative.events.kotlin.outputs.GetArchiveResult
import com.pulumi.awsnative.events.kotlin.outputs.GetConnectionResult
import com.pulumi.awsnative.events.kotlin.outputs.GetEndpointResult
import com.pulumi.awsnative.events.kotlin.outputs.GetEventBusResult
import com.pulumi.awsnative.events.kotlin.outputs.GetRuleResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.events.kotlin.outputs.GetApiDestinationResult.Companion.toKotlin as getApiDestinationResultToKotlin
import com.pulumi.awsnative.events.kotlin.outputs.GetArchiveResult.Companion.toKotlin as getArchiveResultToKotlin
import com.pulumi.awsnative.events.kotlin.outputs.GetConnectionResult.Companion.toKotlin as getConnectionResultToKotlin
import com.pulumi.awsnative.events.kotlin.outputs.GetEndpointResult.Companion.toKotlin as getEndpointResultToKotlin
import com.pulumi.awsnative.events.kotlin.outputs.GetEventBusResult.Companion.toKotlin as getEventBusResultToKotlin
import com.pulumi.awsnative.events.kotlin.outputs.GetRuleResult.Companion.toKotlin as getRuleResultToKotlin
public object EventsFunctions {
/**
* Resource Type definition for AWS::Events::ApiDestination.
* @param argument null
* @return null
*/
public suspend fun getApiDestination(argument: GetApiDestinationPlainArgs): GetApiDestinationResult =
getApiDestinationResultToKotlin(getApiDestinationPlain(argument.toJava()).await())
/**
* @see [getApiDestination].
* @param name Name of the apiDestination.
* @return null
*/
public suspend fun getApiDestination(name: String): GetApiDestinationResult {
val argument = GetApiDestinationPlainArgs(
name = name,
)
return getApiDestinationResultToKotlin(getApiDestinationPlain(argument.toJava()).await())
}
/**
* @see [getApiDestination].
* @param argument Builder for [com.pulumi.awsnative.events.kotlin.inputs.GetApiDestinationPlainArgs].
* @return null
*/
public suspend fun getApiDestination(argument: suspend GetApiDestinationPlainArgsBuilder.() -> Unit): GetApiDestinationResult {
val builder = GetApiDestinationPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getApiDestinationResultToKotlin(getApiDestinationPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::Events::Archive
* @param argument null
* @return null
*/
public suspend fun getArchive(argument: GetArchivePlainArgs): GetArchiveResult =
getArchiveResultToKotlin(getArchivePlain(argument.toJava()).await())
/**
* @see [getArchive].
* @param archiveName The name for the archive to create.
* @return null
*/
public suspend fun getArchive(archiveName: String): GetArchiveResult {
val argument = GetArchivePlainArgs(
archiveName = archiveName,
)
return getArchiveResultToKotlin(getArchivePlain(argument.toJava()).await())
}
/**
* @see [getArchive].
* @param argument Builder for [com.pulumi.awsnative.events.kotlin.inputs.GetArchivePlainArgs].
* @return null
*/
public suspend fun getArchive(argument: suspend GetArchivePlainArgsBuilder.() -> Unit): GetArchiveResult {
val builder = GetArchivePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getArchiveResultToKotlin(getArchivePlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::Events::Connection.
* @param argument null
* @return null
*/
public suspend fun getConnection(argument: GetConnectionPlainArgs): GetConnectionResult =
getConnectionResultToKotlin(getConnectionPlain(argument.toJava()).await())
/**
* @see [getConnection].
* @param name Name of the connection.
* @return null
*/
public suspend fun getConnection(name: String): GetConnectionResult {
val argument = GetConnectionPlainArgs(
name = name,
)
return getConnectionResultToKotlin(getConnectionPlain(argument.toJava()).await())
}
/**
* @see [getConnection].
* @param argument Builder for [com.pulumi.awsnative.events.kotlin.inputs.GetConnectionPlainArgs].
* @return null
*/
public suspend fun getConnection(argument: suspend GetConnectionPlainArgsBuilder.() -> Unit): GetConnectionResult {
val builder = GetConnectionPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getConnectionResultToKotlin(getConnectionPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::Events::Endpoint.
* @param argument null
* @return null
*/
public suspend fun getEndpoint(argument: GetEndpointPlainArgs): GetEndpointResult =
getEndpointResultToKotlin(getEndpointPlain(argument.toJava()).await())
/**
* @see [getEndpoint].
* @param name The name of the endpoint.
* @return null
*/
public suspend fun getEndpoint(name: String): GetEndpointResult {
val argument = GetEndpointPlainArgs(
name = name,
)
return getEndpointResultToKotlin(getEndpointPlain(argument.toJava()).await())
}
/**
* @see [getEndpoint].
* @param argument Builder for [com.pulumi.awsnative.events.kotlin.inputs.GetEndpointPlainArgs].
* @return null
*/
public suspend fun getEndpoint(argument: suspend GetEndpointPlainArgsBuilder.() -> Unit): GetEndpointResult {
val builder = GetEndpointPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getEndpointResultToKotlin(getEndpointPlain(builtArgument.toJava()).await())
}
/**
* Resource type definition for AWS::Events::EventBus
* @param argument null
* @return null
*/
public suspend fun getEventBus(argument: GetEventBusPlainArgs): GetEventBusResult =
getEventBusResultToKotlin(getEventBusPlain(argument.toJava()).await())
/**
* @see [getEventBus].
* @param name The name of the event bus.
* @return null
*/
public suspend fun getEventBus(name: String): GetEventBusResult {
val argument = GetEventBusPlainArgs(
name = name,
)
return getEventBusResultToKotlin(getEventBusPlain(argument.toJava()).await())
}
/**
* @see [getEventBus].
* @param argument Builder for [com.pulumi.awsnative.events.kotlin.inputs.GetEventBusPlainArgs].
* @return null
*/
public suspend fun getEventBus(argument: suspend GetEventBusPlainArgsBuilder.() -> Unit): GetEventBusResult {
val builder = GetEventBusPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getEventBusResultToKotlin(getEventBusPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::Events::Rule
* @param argument null
* @return null
*/
public suspend fun getRule(argument: GetRulePlainArgs): GetRuleResult =
getRuleResultToKotlin(getRulePlain(argument.toJava()).await())
/**
* @see [getRule].
* @param arn The ARN of the rule, such as arn:aws:events:us-east-2:123456789012:rule/example.
* @return null
*/
public suspend fun getRule(arn: String): GetRuleResult {
val argument = GetRulePlainArgs(
arn = arn,
)
return getRuleResultToKotlin(getRulePlain(argument.toJava()).await())
}
/**
* @see [getRule].
* @param argument Builder for [com.pulumi.awsnative.events.kotlin.inputs.GetRulePlainArgs].
* @return null
*/
public suspend fun getRule(argument: suspend GetRulePlainArgsBuilder.() -> Unit): GetRuleResult {
val builder = GetRulePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getRuleResultToKotlin(getRulePlain(builtArgument.toJava()).await())
}
}