
com.pulumi.awsnative.opensearchservice.kotlin.OpensearchserviceFunctions.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.opensearchservice.kotlin
import com.pulumi.awsnative.opensearchservice.OpensearchserviceFunctions.getDomainPlain
import com.pulumi.awsnative.opensearchservice.kotlin.inputs.GetDomainPlainArgs
import com.pulumi.awsnative.opensearchservice.kotlin.inputs.GetDomainPlainArgsBuilder
import com.pulumi.awsnative.opensearchservice.kotlin.outputs.GetDomainResult
import com.pulumi.awsnative.opensearchservice.kotlin.outputs.GetDomainResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object OpensearchserviceFunctions {
/**
* An example resource schema demonstrating some basic constructs and validation rules.
* @param argument null
* @return null
*/
public suspend fun getDomain(argument: GetDomainPlainArgs): GetDomainResult =
toKotlin(getDomainPlain(argument.toJava()).await())
/**
* @see [getDomain].
* @param domainName A name for the OpenSearch Service domain. The name must have a minimum length of 3 and a maximum length of 28. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the domain name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) .
* Required when creating a new domain.
* > If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
* @return null
*/
public suspend fun getDomain(domainName: String): GetDomainResult {
val argument = GetDomainPlainArgs(
domainName = domainName,
)
return toKotlin(getDomainPlain(argument.toJava()).await())
}
/**
* @see [getDomain].
* @param argument Builder for [com.pulumi.awsnative.opensearchservice.kotlin.inputs.GetDomainPlainArgs].
* @return null
*/
public suspend fun getDomain(argument: suspend GetDomainPlainArgsBuilder.() -> Unit): GetDomainResult {
val builder = GetDomainPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getDomainPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy