com.pulumi.awsnative.appflow.kotlin.AppflowFunctions.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.appflow.kotlin
import com.pulumi.awsnative.appflow.AppflowFunctions.getConnectorPlain
import com.pulumi.awsnative.appflow.AppflowFunctions.getConnectorProfilePlain
import com.pulumi.awsnative.appflow.AppflowFunctions.getFlowPlain
import com.pulumi.awsnative.appflow.kotlin.inputs.GetConnectorPlainArgs
import com.pulumi.awsnative.appflow.kotlin.inputs.GetConnectorPlainArgsBuilder
import com.pulumi.awsnative.appflow.kotlin.inputs.GetConnectorProfilePlainArgs
import com.pulumi.awsnative.appflow.kotlin.inputs.GetConnectorProfilePlainArgsBuilder
import com.pulumi.awsnative.appflow.kotlin.inputs.GetFlowPlainArgs
import com.pulumi.awsnative.appflow.kotlin.inputs.GetFlowPlainArgsBuilder
import com.pulumi.awsnative.appflow.kotlin.outputs.GetConnectorProfileResult
import com.pulumi.awsnative.appflow.kotlin.outputs.GetConnectorResult
import com.pulumi.awsnative.appflow.kotlin.outputs.GetFlowResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.appflow.kotlin.outputs.GetConnectorProfileResult.Companion.toKotlin as getConnectorProfileResultToKotlin
import com.pulumi.awsnative.appflow.kotlin.outputs.GetConnectorResult.Companion.toKotlin as getConnectorResultToKotlin
import com.pulumi.awsnative.appflow.kotlin.outputs.GetFlowResult.Companion.toKotlin as getFlowResultToKotlin
public object AppflowFunctions {
/**
* Resource schema for AWS::AppFlow::Connector
* @param argument null
* @return null
*/
public suspend fun getConnector(argument: GetConnectorPlainArgs): GetConnectorResult =
getConnectorResultToKotlin(getConnectorPlain(argument.toJava()).await())
/**
* @see [getConnector].
* @param connectorLabel The name of the connector. The name is unique for each ConnectorRegistration in your AWS account.
* @return null
*/
public suspend fun getConnector(connectorLabel: String): GetConnectorResult {
val argument = GetConnectorPlainArgs(
connectorLabel = connectorLabel,
)
return getConnectorResultToKotlin(getConnectorPlain(argument.toJava()).await())
}
/**
* @see [getConnector].
* @param argument Builder for [com.pulumi.awsnative.appflow.kotlin.inputs.GetConnectorPlainArgs].
* @return null
*/
public suspend fun getConnector(argument: suspend GetConnectorPlainArgsBuilder.() -> Unit): GetConnectorResult {
val builder = GetConnectorPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getConnectorResultToKotlin(getConnectorPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::AppFlow::ConnectorProfile
* @param argument null
* @return null
*/
public suspend fun getConnectorProfile(argument: GetConnectorProfilePlainArgs): GetConnectorProfileResult =
getConnectorProfileResultToKotlin(getConnectorProfilePlain(argument.toJava()).await())
/**
* @see [getConnectorProfile].
* @param connectorProfileName The maximum number of items to retrieve in a single batch.
* @return null
*/
public suspend fun getConnectorProfile(connectorProfileName: String): GetConnectorProfileResult {
val argument = GetConnectorProfilePlainArgs(
connectorProfileName = connectorProfileName,
)
return getConnectorProfileResultToKotlin(getConnectorProfilePlain(argument.toJava()).await())
}
/**
* @see [getConnectorProfile].
* @param argument Builder for [com.pulumi.awsnative.appflow.kotlin.inputs.GetConnectorProfilePlainArgs].
* @return null
*/
public suspend fun getConnectorProfile(argument: suspend GetConnectorProfilePlainArgsBuilder.() -> Unit): GetConnectorProfileResult {
val builder = GetConnectorProfilePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getConnectorProfileResultToKotlin(getConnectorProfilePlain(builtArgument.toJava()).await())
}
/**
* Resource schema for AWS::AppFlow::Flow.
* @param argument null
* @return null
*/
public suspend fun getFlow(argument: GetFlowPlainArgs): GetFlowResult =
getFlowResultToKotlin(getFlowPlain(argument.toJava()).await())
/**
* @see [getFlow].
* @param flowName Name of the flow.
* @return null
*/
public suspend fun getFlow(flowName: String): GetFlowResult {
val argument = GetFlowPlainArgs(
flowName = flowName,
)
return getFlowResultToKotlin(getFlowPlain(argument.toJava()).await())
}
/**
* @see [getFlow].
* @param argument Builder for [com.pulumi.awsnative.appflow.kotlin.inputs.GetFlowPlainArgs].
* @return null
*/
public suspend fun getFlow(argument: suspend GetFlowPlainArgsBuilder.() -> Unit): GetFlowResult {
val builder = GetFlowPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getFlowResultToKotlin(getFlowPlain(builtArgument.toJava()).await())
}
}