com.pulumi.awsnative.kotlin.AwsNativeFunctions.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.kotlin
import com.pulumi.awsnative.AwsnativeFunctions.cidrPlain
import com.pulumi.awsnative.AwsnativeFunctions.getAccountIdPlain
import com.pulumi.awsnative.AwsnativeFunctions.getAzsPlain
import com.pulumi.awsnative.AwsnativeFunctions.getPartitionPlain
import com.pulumi.awsnative.AwsnativeFunctions.getRegionPlain
import com.pulumi.awsnative.AwsnativeFunctions.getSsmParameterListPlain
import com.pulumi.awsnative.AwsnativeFunctions.getSsmParameterStringPlain
import com.pulumi.awsnative.AwsnativeFunctions.getUrlSuffixPlain
import com.pulumi.awsnative.AwsnativeFunctions.importValuePlain
import com.pulumi.awsnative.kotlin.inputs.CidrPlainArgs
import com.pulumi.awsnative.kotlin.inputs.CidrPlainArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.GetAzsPlainArgs
import com.pulumi.awsnative.kotlin.inputs.GetAzsPlainArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.GetSsmParameterListPlainArgs
import com.pulumi.awsnative.kotlin.inputs.GetSsmParameterListPlainArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.GetSsmParameterStringPlainArgs
import com.pulumi.awsnative.kotlin.inputs.GetSsmParameterStringPlainArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.ImportValuePlainArgs
import com.pulumi.awsnative.kotlin.inputs.ImportValuePlainArgsBuilder
import com.pulumi.awsnative.kotlin.outputs.CidrResult
import com.pulumi.awsnative.kotlin.outputs.GetAccountIdResult
import com.pulumi.awsnative.kotlin.outputs.GetAzsResult
import com.pulumi.awsnative.kotlin.outputs.GetPartitionResult
import com.pulumi.awsnative.kotlin.outputs.GetRegionResult
import com.pulumi.awsnative.kotlin.outputs.GetSsmParameterListResult
import com.pulumi.awsnative.kotlin.outputs.GetSsmParameterStringResult
import com.pulumi.awsnative.kotlin.outputs.GetUrlSuffixResult
import com.pulumi.awsnative.kotlin.outputs.ImportValueResult
import kotlinx.coroutines.future.await
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.kotlin.outputs.CidrResult.Companion.toKotlin as cidrResultToKotlin
import com.pulumi.awsnative.kotlin.outputs.GetAccountIdResult.Companion.toKotlin as getAccountIdResultToKotlin
import com.pulumi.awsnative.kotlin.outputs.GetAzsResult.Companion.toKotlin as getAzsResultToKotlin
import com.pulumi.awsnative.kotlin.outputs.GetPartitionResult.Companion.toKotlin as getPartitionResultToKotlin
import com.pulumi.awsnative.kotlin.outputs.GetRegionResult.Companion.toKotlin as getRegionResultToKotlin
import com.pulumi.awsnative.kotlin.outputs.GetSsmParameterListResult.Companion.toKotlin as getSsmParameterListResultToKotlin
import com.pulumi.awsnative.kotlin.outputs.GetSsmParameterStringResult.Companion.toKotlin as getSsmParameterStringResultToKotlin
import com.pulumi.awsnative.kotlin.outputs.GetUrlSuffixResult.Companion.toKotlin as getUrlSuffixResultToKotlin
import com.pulumi.awsnative.kotlin.outputs.ImportValueResult.Companion.toKotlin as importValueResultToKotlin
public object AwsNativeFunctions {
/**
*
* @param argument null
* @return null
*/
public suspend fun cidr(argument: CidrPlainArgs): CidrResult =
cidrResultToKotlin(cidrPlain(argument.toJava()).await())
/**
* @see [cidr].
* @param cidrBits
* @param count
* @param ipBlock
* @return null
*/
public suspend fun cidr(
cidrBits: Int,
count: Int,
ipBlock: String,
): CidrResult {
val argument = CidrPlainArgs(
cidrBits = cidrBits,
count = count,
ipBlock = ipBlock,
)
return cidrResultToKotlin(cidrPlain(argument.toJava()).await())
}
/**
* @see [cidr].
* @param argument Builder for [com.pulumi.awsnative.kotlin.inputs.CidrPlainArgs].
* @return null
*/
public suspend fun cidr(argument: suspend CidrPlainArgsBuilder.() -> Unit): CidrResult {
val builder = CidrPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return cidrResultToKotlin(cidrPlain(builtArgument.toJava()).await())
}
/**
*
* @param argument null
* @return null
*/
public suspend fun getAccountId(): GetAccountIdResult =
getAccountIdResultToKotlin(getAccountIdPlain().await())
/**
*
* @param argument null
* @return null
*/
public suspend fun getAzs(argument: GetAzsPlainArgs): GetAzsResult =
getAzsResultToKotlin(getAzsPlain(argument.toJava()).await())
/**
* @see [getAzs].
* @param region
* @return null
*/
public suspend fun getAzs(region: String? = null): GetAzsResult {
val argument = GetAzsPlainArgs(
region = region,
)
return getAzsResultToKotlin(getAzsPlain(argument.toJava()).await())
}
/**
* @see [getAzs].
* @param argument Builder for [com.pulumi.awsnative.kotlin.inputs.GetAzsPlainArgs].
* @return null
*/
public suspend fun getAzs(argument: suspend GetAzsPlainArgsBuilder.() -> Unit): GetAzsResult {
val builder = GetAzsPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAzsResultToKotlin(getAzsPlain(builtArgument.toJava()).await())
}
/**
*
* @param argument null
* @return null
*/
public suspend fun getPartition(): GetPartitionResult =
getPartitionResultToKotlin(getPartitionPlain().await())
/**
*
* @param argument null
* @return null
*/
public suspend fun getRegion(): GetRegionResult =
getRegionResultToKotlin(getRegionPlain().await())
/**
*
* @param argument null
* @return null
*/
public suspend fun getSsmParameterList(argument: GetSsmParameterListPlainArgs): GetSsmParameterListResult =
getSsmParameterListResultToKotlin(getSsmParameterListPlain(argument.toJava()).await())
/**
* @see [getSsmParameterList].
* @param name
* @return null
*/
public suspend fun getSsmParameterList(name: String): GetSsmParameterListResult {
val argument = GetSsmParameterListPlainArgs(
name = name,
)
return getSsmParameterListResultToKotlin(getSsmParameterListPlain(argument.toJava()).await())
}
/**
* @see [getSsmParameterList].
* @param argument Builder for [com.pulumi.awsnative.kotlin.inputs.GetSsmParameterListPlainArgs].
* @return null
*/
public suspend fun getSsmParameterList(argument: suspend GetSsmParameterListPlainArgsBuilder.() -> Unit): GetSsmParameterListResult {
val builder = GetSsmParameterListPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getSsmParameterListResultToKotlin(getSsmParameterListPlain(builtArgument.toJava()).await())
}
/**
*
* @param argument null
* @return null
*/
public suspend fun getSsmParameterString(argument: GetSsmParameterStringPlainArgs): GetSsmParameterStringResult =
getSsmParameterStringResultToKotlin(getSsmParameterStringPlain(argument.toJava()).await())
/**
* @see [getSsmParameterString].
* @param name
* @return null
*/
public suspend fun getSsmParameterString(name: String): GetSsmParameterStringResult {
val argument = GetSsmParameterStringPlainArgs(
name = name,
)
return getSsmParameterStringResultToKotlin(getSsmParameterStringPlain(argument.toJava()).await())
}
/**
* @see [getSsmParameterString].
* @param argument Builder for [com.pulumi.awsnative.kotlin.inputs.GetSsmParameterStringPlainArgs].
* @return null
*/
public suspend fun getSsmParameterString(argument: suspend GetSsmParameterStringPlainArgsBuilder.() -> Unit): GetSsmParameterStringResult {
val builder = GetSsmParameterStringPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getSsmParameterStringResultToKotlin(getSsmParameterStringPlain(builtArgument.toJava()).await())
}
/**
*
* @param argument null
* @return null
*/
public suspend fun getUrlSuffix(): GetUrlSuffixResult =
getUrlSuffixResultToKotlin(getUrlSuffixPlain().await())
/**
*
* @param argument null
* @return null
*/
public suspend fun importValue(argument: ImportValuePlainArgs): ImportValueResult =
importValueResultToKotlin(importValuePlain(argument.toJava()).await())
/**
* @see [importValue].
* @param name
* @return null
*/
public suspend fun importValue(name: String): ImportValueResult {
val argument = ImportValuePlainArgs(
name = name,
)
return importValueResultToKotlin(importValuePlain(argument.toJava()).await())
}
/**
* @see [importValue].
* @param argument Builder for [com.pulumi.awsnative.kotlin.inputs.ImportValuePlainArgs].
* @return null
*/
public suspend fun importValue(argument: suspend ImportValuePlainArgsBuilder.() -> Unit): ImportValueResult {
val builder = ImportValuePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return importValueResultToKotlin(importValuePlain(builtArgument.toJava()).await())
}
}