com.pulumi.awsnative.timestream.kotlin.TimestreamFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.timestream.kotlin
import com.pulumi.awsnative.timestream.TimestreamFunctions.getDatabasePlain
import com.pulumi.awsnative.timestream.TimestreamFunctions.getInfluxDbInstancePlain
import com.pulumi.awsnative.timestream.TimestreamFunctions.getScheduledQueryPlain
import com.pulumi.awsnative.timestream.TimestreamFunctions.getTablePlain
import com.pulumi.awsnative.timestream.kotlin.inputs.GetDatabasePlainArgs
import com.pulumi.awsnative.timestream.kotlin.inputs.GetDatabasePlainArgsBuilder
import com.pulumi.awsnative.timestream.kotlin.inputs.GetInfluxDbInstancePlainArgs
import com.pulumi.awsnative.timestream.kotlin.inputs.GetInfluxDbInstancePlainArgsBuilder
import com.pulumi.awsnative.timestream.kotlin.inputs.GetScheduledQueryPlainArgs
import com.pulumi.awsnative.timestream.kotlin.inputs.GetScheduledQueryPlainArgsBuilder
import com.pulumi.awsnative.timestream.kotlin.inputs.GetTablePlainArgs
import com.pulumi.awsnative.timestream.kotlin.inputs.GetTablePlainArgsBuilder
import com.pulumi.awsnative.timestream.kotlin.outputs.GetDatabaseResult
import com.pulumi.awsnative.timestream.kotlin.outputs.GetInfluxDbInstanceResult
import com.pulumi.awsnative.timestream.kotlin.outputs.GetScheduledQueryResult
import com.pulumi.awsnative.timestream.kotlin.outputs.GetTableResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.timestream.kotlin.outputs.GetDatabaseResult.Companion.toKotlin as getDatabaseResultToKotlin
import com.pulumi.awsnative.timestream.kotlin.outputs.GetInfluxDbInstanceResult.Companion.toKotlin as getInfluxDbInstanceResultToKotlin
import com.pulumi.awsnative.timestream.kotlin.outputs.GetScheduledQueryResult.Companion.toKotlin as getScheduledQueryResultToKotlin
import com.pulumi.awsnative.timestream.kotlin.outputs.GetTableResult.Companion.toKotlin as getTableResultToKotlin
public object TimestreamFunctions {
/**
* The AWS::Timestream::Database resource creates a Timestream database.
* @param argument null
* @return null
*/
public suspend fun getDatabase(argument: GetDatabasePlainArgs): GetDatabaseResult =
getDatabaseResultToKotlin(getDatabasePlain(argument.toJava()).await())
/**
* @see [getDatabase].
* @param databaseName The name for the database. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the database name.
* @return null
*/
public suspend fun getDatabase(databaseName: String): GetDatabaseResult {
val argument = GetDatabasePlainArgs(
databaseName = databaseName,
)
return getDatabaseResultToKotlin(getDatabasePlain(argument.toJava()).await())
}
/**
* @see [getDatabase].
* @param argument Builder for [com.pulumi.awsnative.timestream.kotlin.inputs.GetDatabasePlainArgs].
* @return null
*/
public suspend fun getDatabase(argument: suspend GetDatabasePlainArgsBuilder.() -> Unit): GetDatabaseResult {
val builder = GetDatabasePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getDatabaseResultToKotlin(getDatabasePlain(builtArgument.toJava()).await())
}
/**
* The AWS::Timestream::InfluxDBInstance resource creates an InfluxDB instance.
* @param argument null
* @return null
*/
public suspend fun getInfluxDbInstance(argument: GetInfluxDbInstancePlainArgs): GetInfluxDbInstanceResult =
getInfluxDbInstanceResultToKotlin(getInfluxDbInstancePlain(argument.toJava()).await())
/**
* @see [getInfluxDbInstance].
* @param id The service generated unique identifier for InfluxDB instance.
* @return null
*/
public suspend fun getInfluxDbInstance(id: String): GetInfluxDbInstanceResult {
val argument = GetInfluxDbInstancePlainArgs(
id = id,
)
return getInfluxDbInstanceResultToKotlin(getInfluxDbInstancePlain(argument.toJava()).await())
}
/**
* @see [getInfluxDbInstance].
* @param argument Builder for [com.pulumi.awsnative.timestream.kotlin.inputs.GetInfluxDbInstancePlainArgs].
* @return null
*/
public suspend fun getInfluxDbInstance(argument: suspend GetInfluxDbInstancePlainArgsBuilder.() -> Unit): GetInfluxDbInstanceResult {
val builder = GetInfluxDbInstancePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getInfluxDbInstanceResultToKotlin(getInfluxDbInstancePlain(builtArgument.toJava()).await())
}
/**
* The AWS::Timestream::ScheduledQuery resource creates a Timestream Scheduled Query.
* @param argument null
* @return null
*/
public suspend fun getScheduledQuery(argument: GetScheduledQueryPlainArgs): GetScheduledQueryResult =
getScheduledQueryResultToKotlin(getScheduledQueryPlain(argument.toJava()).await())
/**
* @see [getScheduledQuery].
* @param arn The `ARN` of the scheduled query.
* @return null
*/
public suspend fun getScheduledQuery(arn: String): GetScheduledQueryResult {
val argument = GetScheduledQueryPlainArgs(
arn = arn,
)
return getScheduledQueryResultToKotlin(getScheduledQueryPlain(argument.toJava()).await())
}
/**
* @see [getScheduledQuery].
* @param argument Builder for [com.pulumi.awsnative.timestream.kotlin.inputs.GetScheduledQueryPlainArgs].
* @return null
*/
public suspend fun getScheduledQuery(argument: suspend GetScheduledQueryPlainArgsBuilder.() -> Unit): GetScheduledQueryResult {
val builder = GetScheduledQueryPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getScheduledQueryResultToKotlin(getScheduledQueryPlain(builtArgument.toJava()).await())
}
/**
* The AWS::Timestream::Table resource creates a Timestream Table.
* @param argument null
* @return null
*/
public suspend fun getTable(argument: GetTablePlainArgs): GetTableResult =
getTableResultToKotlin(getTablePlain(argument.toJava()).await())
/**
* @see [getTable].
* @param databaseName The name for the database which the table to be created belongs to.
* @param tableName The name for the table. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name.
* @return null
*/
public suspend fun getTable(databaseName: String, tableName: String): GetTableResult {
val argument = GetTablePlainArgs(
databaseName = databaseName,
tableName = tableName,
)
return getTableResultToKotlin(getTablePlain(argument.toJava()).await())
}
/**
* @see [getTable].
* @param argument Builder for [com.pulumi.awsnative.timestream.kotlin.inputs.GetTablePlainArgs].
* @return null
*/
public suspend fun getTable(argument: suspend GetTablePlainArgsBuilder.() -> Unit): GetTableResult {
val builder = GetTablePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getTableResultToKotlin(getTablePlain(builtArgument.toJava()).await())
}
}