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

com.pulumi.awsnative.signer.kotlin.SignerFunctions.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.signer.kotlin

import com.pulumi.awsnative.signer.SignerFunctions.getSigningProfilePlain
import com.pulumi.awsnative.signer.kotlin.inputs.GetSigningProfilePlainArgs
import com.pulumi.awsnative.signer.kotlin.inputs.GetSigningProfilePlainArgsBuilder
import com.pulumi.awsnative.signer.kotlin.outputs.GetSigningProfileResult
import com.pulumi.awsnative.signer.kotlin.outputs.GetSigningProfileResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object SignerFunctions {
    /**
     * A signing profile is a signing template that can be used to carry out a pre-defined signing job.
     * @param argument null
     * @return null
     */
    public suspend fun getSigningProfile(argument: GetSigningProfilePlainArgs): GetSigningProfileResult = toKotlin(getSigningProfilePlain(argument.toJava()).await())

    /**
     * @see [getSigningProfile].
     * @param arn The Amazon Resource Name (ARN) of the specified signing profile.
     * @return null
     */
    public suspend fun getSigningProfile(arn: String): GetSigningProfileResult {
        val argument = GetSigningProfilePlainArgs(
            arn = arn,
        )
        return toKotlin(getSigningProfilePlain(argument.toJava()).await())
    }

    /**
     * @see [getSigningProfile].
     * @param argument Builder for [com.pulumi.awsnative.signer.kotlin.inputs.GetSigningProfilePlainArgs].
     * @return null
     */
    public suspend fun getSigningProfile(argument: suspend GetSigningProfilePlainArgsBuilder.() -> Unit): GetSigningProfileResult {
        val builder = GetSigningProfilePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getSigningProfilePlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy