All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.msk.kotlin.MskFunctions.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.msk.kotlin

import com.pulumi.awsnative.msk.MskFunctions.getBatchScramSecretPlain
import com.pulumi.awsnative.msk.MskFunctions.getClusterPlain
import com.pulumi.awsnative.msk.MskFunctions.getClusterPolicyPlain
import com.pulumi.awsnative.msk.MskFunctions.getConfigurationPlain
import com.pulumi.awsnative.msk.MskFunctions.getReplicatorPlain
import com.pulumi.awsnative.msk.MskFunctions.getServerlessClusterPlain
import com.pulumi.awsnative.msk.MskFunctions.getVpcConnectionPlain
import com.pulumi.awsnative.msk.kotlin.inputs.GetBatchScramSecretPlainArgs
import com.pulumi.awsnative.msk.kotlin.inputs.GetBatchScramSecretPlainArgsBuilder
import com.pulumi.awsnative.msk.kotlin.inputs.GetClusterPlainArgs
import com.pulumi.awsnative.msk.kotlin.inputs.GetClusterPlainArgsBuilder
import com.pulumi.awsnative.msk.kotlin.inputs.GetClusterPolicyPlainArgs
import com.pulumi.awsnative.msk.kotlin.inputs.GetClusterPolicyPlainArgsBuilder
import com.pulumi.awsnative.msk.kotlin.inputs.GetConfigurationPlainArgs
import com.pulumi.awsnative.msk.kotlin.inputs.GetConfigurationPlainArgsBuilder
import com.pulumi.awsnative.msk.kotlin.inputs.GetReplicatorPlainArgs
import com.pulumi.awsnative.msk.kotlin.inputs.GetReplicatorPlainArgsBuilder
import com.pulumi.awsnative.msk.kotlin.inputs.GetServerlessClusterPlainArgs
import com.pulumi.awsnative.msk.kotlin.inputs.GetServerlessClusterPlainArgsBuilder
import com.pulumi.awsnative.msk.kotlin.inputs.GetVpcConnectionPlainArgs
import com.pulumi.awsnative.msk.kotlin.inputs.GetVpcConnectionPlainArgsBuilder
import com.pulumi.awsnative.msk.kotlin.outputs.GetBatchScramSecretResult
import com.pulumi.awsnative.msk.kotlin.outputs.GetClusterPolicyResult
import com.pulumi.awsnative.msk.kotlin.outputs.GetClusterResult
import com.pulumi.awsnative.msk.kotlin.outputs.GetConfigurationResult
import com.pulumi.awsnative.msk.kotlin.outputs.GetReplicatorResult
import com.pulumi.awsnative.msk.kotlin.outputs.GetServerlessClusterResult
import com.pulumi.awsnative.msk.kotlin.outputs.GetVpcConnectionResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.msk.kotlin.outputs.GetBatchScramSecretResult.Companion.toKotlin as getBatchScramSecretResultToKotlin
import com.pulumi.awsnative.msk.kotlin.outputs.GetClusterPolicyResult.Companion.toKotlin as getClusterPolicyResultToKotlin
import com.pulumi.awsnative.msk.kotlin.outputs.GetClusterResult.Companion.toKotlin as getClusterResultToKotlin
import com.pulumi.awsnative.msk.kotlin.outputs.GetConfigurationResult.Companion.toKotlin as getConfigurationResultToKotlin
import com.pulumi.awsnative.msk.kotlin.outputs.GetReplicatorResult.Companion.toKotlin as getReplicatorResultToKotlin
import com.pulumi.awsnative.msk.kotlin.outputs.GetServerlessClusterResult.Companion.toKotlin as getServerlessClusterResultToKotlin
import com.pulumi.awsnative.msk.kotlin.outputs.GetVpcConnectionResult.Companion.toKotlin as getVpcConnectionResultToKotlin

public object MskFunctions {
    /**
     * Resource Type definition for AWS::MSK::BatchScramSecret
     * @param argument null
     * @return null
     */
    public suspend fun getBatchScramSecret(argument: GetBatchScramSecretPlainArgs): GetBatchScramSecretResult =
        getBatchScramSecretResultToKotlin(getBatchScramSecretPlain(argument.toJava()).await())

    /**
     * @see [getBatchScramSecret].
     * @param clusterArn
     * @return null
     */
    public suspend fun getBatchScramSecret(clusterArn: String): GetBatchScramSecretResult {
        val argument = GetBatchScramSecretPlainArgs(
            clusterArn = clusterArn,
        )
        return getBatchScramSecretResultToKotlin(getBatchScramSecretPlain(argument.toJava()).await())
    }

    /**
     * @see [getBatchScramSecret].
     * @param argument Builder for [com.pulumi.awsnative.msk.kotlin.inputs.GetBatchScramSecretPlainArgs].
     * @return null
     */
    public suspend fun getBatchScramSecret(argument: suspend GetBatchScramSecretPlainArgsBuilder.() -> Unit): GetBatchScramSecretResult {
        val builder = GetBatchScramSecretPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getBatchScramSecretResultToKotlin(getBatchScramSecretPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::MSK::Cluster
     * @param argument null
     * @return null
     */
    public suspend fun getCluster(argument: GetClusterPlainArgs): GetClusterResult =
        getClusterResultToKotlin(getClusterPlain(argument.toJava()).await())

    /**
     * @see [getCluster].
     * @param arn
     * @return null
     */
    public suspend fun getCluster(arn: String): GetClusterResult {
        val argument = GetClusterPlainArgs(
            arn = arn,
        )
        return getClusterResultToKotlin(getClusterPlain(argument.toJava()).await())
    }

    /**
     * @see [getCluster].
     * @param argument Builder for [com.pulumi.awsnative.msk.kotlin.inputs.GetClusterPlainArgs].
     * @return null
     */
    public suspend fun getCluster(argument: suspend GetClusterPlainArgsBuilder.() -> Unit): GetClusterResult {
        val builder = GetClusterPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getClusterResultToKotlin(getClusterPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::MSK::ClusterPolicy
     * @param argument null
     * @return null
     */
    public suspend fun getClusterPolicy(argument: GetClusterPolicyPlainArgs): GetClusterPolicyResult =
        getClusterPolicyResultToKotlin(getClusterPolicyPlain(argument.toJava()).await())

    /**
     * @see [getClusterPolicy].
     * @param clusterArn The arn of the cluster for the resource policy.
     * @return null
     */
    public suspend fun getClusterPolicy(clusterArn: String): GetClusterPolicyResult {
        val argument = GetClusterPolicyPlainArgs(
            clusterArn = clusterArn,
        )
        return getClusterPolicyResultToKotlin(getClusterPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getClusterPolicy].
     * @param argument Builder for [com.pulumi.awsnative.msk.kotlin.inputs.GetClusterPolicyPlainArgs].
     * @return null
     */
    public suspend fun getClusterPolicy(argument: suspend GetClusterPolicyPlainArgsBuilder.() -> Unit): GetClusterPolicyResult {
        val builder = GetClusterPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getClusterPolicyResultToKotlin(getClusterPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::MSK::Configuration
     * @param argument null
     * @return null
     */
    public suspend fun getConfiguration(argument: GetConfigurationPlainArgs): GetConfigurationResult =
        getConfigurationResultToKotlin(getConfigurationPlain(argument.toJava()).await())

    /**
     * @see [getConfiguration].
     * @param arn
     * @return null
     */
    public suspend fun getConfiguration(arn: String): GetConfigurationResult {
        val argument = GetConfigurationPlainArgs(
            arn = arn,
        )
        return getConfigurationResultToKotlin(getConfigurationPlain(argument.toJava()).await())
    }

    /**
     * @see [getConfiguration].
     * @param argument Builder for [com.pulumi.awsnative.msk.kotlin.inputs.GetConfigurationPlainArgs].
     * @return null
     */
    public suspend fun getConfiguration(argument: suspend GetConfigurationPlainArgsBuilder.() -> Unit): GetConfigurationResult {
        val builder = GetConfigurationPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getConfigurationResultToKotlin(getConfigurationPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::MSK::Replicator
     * @param argument null
     * @return null
     */
    public suspend fun getReplicator(argument: GetReplicatorPlainArgs): GetReplicatorResult =
        getReplicatorResultToKotlin(getReplicatorPlain(argument.toJava()).await())

    /**
     * @see [getReplicator].
     * @param replicatorArn Amazon Resource Name for the created replicator.
     * @return null
     */
    public suspend fun getReplicator(replicatorArn: String): GetReplicatorResult {
        val argument = GetReplicatorPlainArgs(
            replicatorArn = replicatorArn,
        )
        return getReplicatorResultToKotlin(getReplicatorPlain(argument.toJava()).await())
    }

    /**
     * @see [getReplicator].
     * @param argument Builder for [com.pulumi.awsnative.msk.kotlin.inputs.GetReplicatorPlainArgs].
     * @return null
     */
    public suspend fun getReplicator(argument: suspend GetReplicatorPlainArgsBuilder.() -> Unit): GetReplicatorResult {
        val builder = GetReplicatorPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getReplicatorResultToKotlin(getReplicatorPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::MSK::ServerlessCluster
     * @param argument null
     * @return null
     */
    public suspend fun getServerlessCluster(argument: GetServerlessClusterPlainArgs): GetServerlessClusterResult =
        getServerlessClusterResultToKotlin(getServerlessClusterPlain(argument.toJava()).await())

    /**
     * @see [getServerlessCluster].
     * @param arn
     * @return null
     */
    public suspend fun getServerlessCluster(arn: String): GetServerlessClusterResult {
        val argument = GetServerlessClusterPlainArgs(
            arn = arn,
        )
        return getServerlessClusterResultToKotlin(getServerlessClusterPlain(argument.toJava()).await())
    }

    /**
     * @see [getServerlessCluster].
     * @param argument Builder for [com.pulumi.awsnative.msk.kotlin.inputs.GetServerlessClusterPlainArgs].
     * @return null
     */
    public suspend fun getServerlessCluster(argument: suspend GetServerlessClusterPlainArgsBuilder.() -> Unit): GetServerlessClusterResult {
        val builder = GetServerlessClusterPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getServerlessClusterResultToKotlin(getServerlessClusterPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::MSK::VpcConnection
     * @param argument null
     * @return null
     */
    public suspend fun getVpcConnection(argument: GetVpcConnectionPlainArgs): GetVpcConnectionResult =
        getVpcConnectionResultToKotlin(getVpcConnectionPlain(argument.toJava()).await())

    /**
     * @see [getVpcConnection].
     * @param arn The ARN of the VPC connection.
     * @return null
     */
    public suspend fun getVpcConnection(arn: String): GetVpcConnectionResult {
        val argument = GetVpcConnectionPlainArgs(
            arn = arn,
        )
        return getVpcConnectionResultToKotlin(getVpcConnectionPlain(argument.toJava()).await())
    }

    /**
     * @see [getVpcConnection].
     * @param argument Builder for [com.pulumi.awsnative.msk.kotlin.inputs.GetVpcConnectionPlainArgs].
     * @return null
     */
    public suspend fun getVpcConnection(argument: suspend GetVpcConnectionPlainArgsBuilder.() -> Unit): GetVpcConnectionResult {
        val builder = GetVpcConnectionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getVpcConnectionResultToKotlin(getVpcConnectionPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy