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

com.pulumi.awsnative.paymentcryptography.kotlin.PaymentcryptographyFunctions.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.paymentcryptography.kotlin

import com.pulumi.awsnative.paymentcryptography.PaymentcryptographyFunctions.getAliasPlain
import com.pulumi.awsnative.paymentcryptography.PaymentcryptographyFunctions.getKeyPlain
import com.pulumi.awsnative.paymentcryptography.kotlin.inputs.GetAliasPlainArgs
import com.pulumi.awsnative.paymentcryptography.kotlin.inputs.GetAliasPlainArgsBuilder
import com.pulumi.awsnative.paymentcryptography.kotlin.inputs.GetKeyPlainArgs
import com.pulumi.awsnative.paymentcryptography.kotlin.inputs.GetKeyPlainArgsBuilder
import com.pulumi.awsnative.paymentcryptography.kotlin.outputs.GetAliasResult
import com.pulumi.awsnative.paymentcryptography.kotlin.outputs.GetKeyResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.paymentcryptography.kotlin.outputs.GetAliasResult.Companion.toKotlin as getAliasResultToKotlin
import com.pulumi.awsnative.paymentcryptography.kotlin.outputs.GetKeyResult.Companion.toKotlin as getKeyResultToKotlin

public object PaymentcryptographyFunctions {
    /**
     * Definition of AWS::PaymentCryptography::Alias Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getAlias(argument: GetAliasPlainArgs): GetAliasResult =
        getAliasResultToKotlin(getAliasPlain(argument.toJava()).await())

    /**
     * @see [getAlias].
     * @param aliasName A friendly name that you can use to refer to a key. The value must begin with `alias/` .
     * > Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in AWS CloudTrail logs and other output.
     * @return null
     */
    public suspend fun getAlias(aliasName: String): GetAliasResult {
        val argument = GetAliasPlainArgs(
            aliasName = aliasName,
        )
        return getAliasResultToKotlin(getAliasPlain(argument.toJava()).await())
    }

    /**
     * @see [getAlias].
     * @param argument Builder for [com.pulumi.awsnative.paymentcryptography.kotlin.inputs.GetAliasPlainArgs].
     * @return null
     */
    public suspend fun getAlias(argument: suspend GetAliasPlainArgsBuilder.() -> Unit): GetAliasResult {
        val builder = GetAliasPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAliasResultToKotlin(getAliasPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::PaymentCryptography::Key Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getKey(argument: GetKeyPlainArgs): GetKeyResult =
        getKeyResultToKotlin(getKeyPlain(argument.toJava()).await())

    /**
     * @see [getKey].
     * @param keyIdentifier
     * @return null
     */
    public suspend fun getKey(keyIdentifier: String): GetKeyResult {
        val argument = GetKeyPlainArgs(
            keyIdentifier = keyIdentifier,
        )
        return getKeyResultToKotlin(getKeyPlain(argument.toJava()).await())
    }

    /**
     * @see [getKey].
     * @param argument Builder for [com.pulumi.awsnative.paymentcryptography.kotlin.inputs.GetKeyPlainArgs].
     * @return null
     */
    public suspend fun getKey(argument: suspend GetKeyPlainArgsBuilder.() -> Unit): GetKeyResult {
        val builder = GetKeyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getKeyResultToKotlin(getKeyPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy