com.pulumi.awsnative.deadline.kotlin.DeadlineFunctions.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.deadline.kotlin
import com.pulumi.awsnative.deadline.DeadlineFunctions.getFarmPlain
import com.pulumi.awsnative.deadline.DeadlineFunctions.getFleetPlain
import com.pulumi.awsnative.deadline.DeadlineFunctions.getLicenseEndpointPlain
import com.pulumi.awsnative.deadline.DeadlineFunctions.getMeteredProductPlain
import com.pulumi.awsnative.deadline.DeadlineFunctions.getMonitorPlain
import com.pulumi.awsnative.deadline.DeadlineFunctions.getQueueEnvironmentPlain
import com.pulumi.awsnative.deadline.DeadlineFunctions.getQueuePlain
import com.pulumi.awsnative.deadline.DeadlineFunctions.getStorageProfilePlain
import com.pulumi.awsnative.deadline.kotlin.inputs.GetFarmPlainArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.GetFarmPlainArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.inputs.GetFleetPlainArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.GetFleetPlainArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.inputs.GetLicenseEndpointPlainArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.GetLicenseEndpointPlainArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.inputs.GetMeteredProductPlainArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.GetMeteredProductPlainArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.inputs.GetMonitorPlainArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.GetMonitorPlainArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.inputs.GetQueueEnvironmentPlainArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.GetQueueEnvironmentPlainArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.inputs.GetQueuePlainArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.GetQueuePlainArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.inputs.GetStorageProfilePlainArgs
import com.pulumi.awsnative.deadline.kotlin.inputs.GetStorageProfilePlainArgsBuilder
import com.pulumi.awsnative.deadline.kotlin.outputs.GetFarmResult
import com.pulumi.awsnative.deadline.kotlin.outputs.GetFleetResult
import com.pulumi.awsnative.deadline.kotlin.outputs.GetLicenseEndpointResult
import com.pulumi.awsnative.deadline.kotlin.outputs.GetMeteredProductResult
import com.pulumi.awsnative.deadline.kotlin.outputs.GetMonitorResult
import com.pulumi.awsnative.deadline.kotlin.outputs.GetQueueEnvironmentResult
import com.pulumi.awsnative.deadline.kotlin.outputs.GetQueueResult
import com.pulumi.awsnative.deadline.kotlin.outputs.GetStorageProfileResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.deadline.kotlin.outputs.GetFarmResult.Companion.toKotlin as getFarmResultToKotlin
import com.pulumi.awsnative.deadline.kotlin.outputs.GetFleetResult.Companion.toKotlin as getFleetResultToKotlin
import com.pulumi.awsnative.deadline.kotlin.outputs.GetLicenseEndpointResult.Companion.toKotlin as getLicenseEndpointResultToKotlin
import com.pulumi.awsnative.deadline.kotlin.outputs.GetMeteredProductResult.Companion.toKotlin as getMeteredProductResultToKotlin
import com.pulumi.awsnative.deadline.kotlin.outputs.GetMonitorResult.Companion.toKotlin as getMonitorResultToKotlin
import com.pulumi.awsnative.deadline.kotlin.outputs.GetQueueEnvironmentResult.Companion.toKotlin as getQueueEnvironmentResultToKotlin
import com.pulumi.awsnative.deadline.kotlin.outputs.GetQueueResult.Companion.toKotlin as getQueueResultToKotlin
import com.pulumi.awsnative.deadline.kotlin.outputs.GetStorageProfileResult.Companion.toKotlin as getStorageProfileResultToKotlin
public object DeadlineFunctions {
/**
* Definition of AWS::Deadline::Farm Resource Type
* @param argument null
* @return null
*/
public suspend fun getFarm(argument: GetFarmPlainArgs): GetFarmResult =
getFarmResultToKotlin(getFarmPlain(argument.toJava()).await())
/**
* @see [getFarm].
* @param arn The Amazon Resource Name (ARN) assigned to the farm.
* @return null
*/
public suspend fun getFarm(arn: String): GetFarmResult {
val argument = GetFarmPlainArgs(
arn = arn,
)
return getFarmResultToKotlin(getFarmPlain(argument.toJava()).await())
}
/**
* @see [getFarm].
* @param argument Builder for [com.pulumi.awsnative.deadline.kotlin.inputs.GetFarmPlainArgs].
* @return null
*/
public suspend fun getFarm(argument: suspend GetFarmPlainArgsBuilder.() -> Unit): GetFarmResult {
val builder = GetFarmPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getFarmResultToKotlin(getFarmPlain(builtArgument.toJava()).await())
}
/**
* Definition of AWS::Deadline::Fleet Resource Type
* @param argument null
* @return null
*/
public suspend fun getFleet(argument: GetFleetPlainArgs): GetFleetResult =
getFleetResultToKotlin(getFleetPlain(argument.toJava()).await())
/**
* @see [getFleet].
* @param arn The Amazon Resource Name (ARN) assigned to the fleet.
* @return null
*/
public suspend fun getFleet(arn: String): GetFleetResult {
val argument = GetFleetPlainArgs(
arn = arn,
)
return getFleetResultToKotlin(getFleetPlain(argument.toJava()).await())
}
/**
* @see [getFleet].
* @param argument Builder for [com.pulumi.awsnative.deadline.kotlin.inputs.GetFleetPlainArgs].
* @return null
*/
public suspend fun getFleet(argument: suspend GetFleetPlainArgsBuilder.() -> Unit): GetFleetResult {
val builder = GetFleetPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getFleetResultToKotlin(getFleetPlain(builtArgument.toJava()).await())
}
/**
* Definition of AWS::Deadline::LicenseEndpoint Resource Type
* @param argument null
* @return null
*/
public suspend fun getLicenseEndpoint(argument: GetLicenseEndpointPlainArgs): GetLicenseEndpointResult =
getLicenseEndpointResultToKotlin(getLicenseEndpointPlain(argument.toJava()).await())
/**
* @see [getLicenseEndpoint].
* @param arn The Amazon Resource Name (ARN) of the license endpoint.
* @return null
*/
public suspend fun getLicenseEndpoint(arn: String): GetLicenseEndpointResult {
val argument = GetLicenseEndpointPlainArgs(
arn = arn,
)
return getLicenseEndpointResultToKotlin(getLicenseEndpointPlain(argument.toJava()).await())
}
/**
* @see [getLicenseEndpoint].
* @param argument Builder for [com.pulumi.awsnative.deadline.kotlin.inputs.GetLicenseEndpointPlainArgs].
* @return null
*/
public suspend fun getLicenseEndpoint(argument: suspend GetLicenseEndpointPlainArgsBuilder.() -> Unit): GetLicenseEndpointResult {
val builder = GetLicenseEndpointPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getLicenseEndpointResultToKotlin(getLicenseEndpointPlain(builtArgument.toJava()).await())
}
/**
* Definition of AWS::Deadline::MeteredProduct Resource Type
* @param argument null
* @return null
*/
public suspend fun getMeteredProduct(argument: GetMeteredProductPlainArgs): GetMeteredProductResult =
getMeteredProductResultToKotlin(getMeteredProductPlain(argument.toJava()).await())
/**
* @see [getMeteredProduct].
* @param arn The Amazon Resource Name (ARN) of the metered product.
* @return null
*/
public suspend fun getMeteredProduct(arn: String): GetMeteredProductResult {
val argument = GetMeteredProductPlainArgs(
arn = arn,
)
return getMeteredProductResultToKotlin(getMeteredProductPlain(argument.toJava()).await())
}
/**
* @see [getMeteredProduct].
* @param argument Builder for [com.pulumi.awsnative.deadline.kotlin.inputs.GetMeteredProductPlainArgs].
* @return null
*/
public suspend fun getMeteredProduct(argument: suspend GetMeteredProductPlainArgsBuilder.() -> Unit): GetMeteredProductResult {
val builder = GetMeteredProductPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getMeteredProductResultToKotlin(getMeteredProductPlain(builtArgument.toJava()).await())
}
/**
* Definition of AWS::Deadline::Monitor Resource Type
* @param argument null
* @return null
*/
public suspend fun getMonitor(argument: GetMonitorPlainArgs): GetMonitorResult =
getMonitorResultToKotlin(getMonitorPlain(argument.toJava()).await())
/**
* @see [getMonitor].
* @param arn The Amazon Resource Name (ARN) of the monitor.
* @return null
*/
public suspend fun getMonitor(arn: String): GetMonitorResult {
val argument = GetMonitorPlainArgs(
arn = arn,
)
return getMonitorResultToKotlin(getMonitorPlain(argument.toJava()).await())
}
/**
* @see [getMonitor].
* @param argument Builder for [com.pulumi.awsnative.deadline.kotlin.inputs.GetMonitorPlainArgs].
* @return null
*/
public suspend fun getMonitor(argument: suspend GetMonitorPlainArgsBuilder.() -> Unit): GetMonitorResult {
val builder = GetMonitorPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getMonitorResultToKotlin(getMonitorPlain(builtArgument.toJava()).await())
}
/**
* Definition of AWS::Deadline::Queue Resource Type
* @param argument null
* @return null
*/
public suspend fun getQueue(argument: GetQueuePlainArgs): GetQueueResult =
getQueueResultToKotlin(getQueuePlain(argument.toJava()).await())
/**
* @see [getQueue].
* @param arn The Amazon Resource Name (ARN) of the queue.
* @return null
*/
public suspend fun getQueue(arn: String): GetQueueResult {
val argument = GetQueuePlainArgs(
arn = arn,
)
return getQueueResultToKotlin(getQueuePlain(argument.toJava()).await())
}
/**
* @see [getQueue].
* @param argument Builder for [com.pulumi.awsnative.deadline.kotlin.inputs.GetQueuePlainArgs].
* @return null
*/
public suspend fun getQueue(argument: suspend GetQueuePlainArgsBuilder.() -> Unit): GetQueueResult {
val builder = GetQueuePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getQueueResultToKotlin(getQueuePlain(builtArgument.toJava()).await())
}
/**
* Definition of AWS::Deadline::QueueEnvironment Resource Type
* @param argument null
* @return null
*/
public suspend fun getQueueEnvironment(argument: GetQueueEnvironmentPlainArgs): GetQueueEnvironmentResult =
getQueueEnvironmentResultToKotlin(getQueueEnvironmentPlain(argument.toJava()).await())
/**
* @see [getQueueEnvironment].
* @param farmId The identifier assigned to the farm that contains the queue.
* @param queueEnvironmentId The queue environment ID.
* @param queueId The unique identifier of the queue that contains the environment.
* @return null
*/
public suspend fun getQueueEnvironment(
farmId: String,
queueEnvironmentId: String,
queueId: String,
): GetQueueEnvironmentResult {
val argument = GetQueueEnvironmentPlainArgs(
farmId = farmId,
queueEnvironmentId = queueEnvironmentId,
queueId = queueId,
)
return getQueueEnvironmentResultToKotlin(getQueueEnvironmentPlain(argument.toJava()).await())
}
/**
* @see [getQueueEnvironment].
* @param argument Builder for [com.pulumi.awsnative.deadline.kotlin.inputs.GetQueueEnvironmentPlainArgs].
* @return null
*/
public suspend fun getQueueEnvironment(argument: suspend GetQueueEnvironmentPlainArgsBuilder.() -> Unit): GetQueueEnvironmentResult {
val builder = GetQueueEnvironmentPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getQueueEnvironmentResultToKotlin(getQueueEnvironmentPlain(builtArgument.toJava()).await())
}
/**
* Definition of AWS::Deadline::StorageProfile Resource Type
* @param argument null
* @return null
*/
public suspend fun getStorageProfile(argument: GetStorageProfilePlainArgs): GetStorageProfileResult =
getStorageProfileResultToKotlin(getStorageProfilePlain(argument.toJava()).await())
/**
* @see [getStorageProfile].
* @param farmId The unique identifier of the farm that contains the storage profile.
* @param storageProfileId The storage profile ID.
* @return null
*/
public suspend fun getStorageProfile(farmId: String, storageProfileId: String): GetStorageProfileResult {
val argument = GetStorageProfilePlainArgs(
farmId = farmId,
storageProfileId = storageProfileId,
)
return getStorageProfileResultToKotlin(getStorageProfilePlain(argument.toJava()).await())
}
/**
* @see [getStorageProfile].
* @param argument Builder for [com.pulumi.awsnative.deadline.kotlin.inputs.GetStorageProfilePlainArgs].
* @return null
*/
public suspend fun getStorageProfile(argument: suspend GetStorageProfilePlainArgsBuilder.() -> Unit): GetStorageProfileResult {
val builder = GetStorageProfilePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getStorageProfileResultToKotlin(getStorageProfilePlain(builtArgument.toJava()).await())
}
}