com.pulumi.awsnative.codepipeline.kotlin.CodepipelineFunctions.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.codepipeline.kotlin
import com.pulumi.awsnative.codepipeline.CodepipelineFunctions.getCustomActionTypePlain
import com.pulumi.awsnative.codepipeline.CodepipelineFunctions.getPipelinePlain
import com.pulumi.awsnative.codepipeline.kotlin.inputs.GetCustomActionTypePlainArgs
import com.pulumi.awsnative.codepipeline.kotlin.inputs.GetCustomActionTypePlainArgsBuilder
import com.pulumi.awsnative.codepipeline.kotlin.inputs.GetPipelinePlainArgs
import com.pulumi.awsnative.codepipeline.kotlin.inputs.GetPipelinePlainArgsBuilder
import com.pulumi.awsnative.codepipeline.kotlin.outputs.GetCustomActionTypeResult
import com.pulumi.awsnative.codepipeline.kotlin.outputs.GetPipelineResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.codepipeline.kotlin.outputs.GetCustomActionTypeResult.Companion.toKotlin as getCustomActionTypeResultToKotlin
import com.pulumi.awsnative.codepipeline.kotlin.outputs.GetPipelineResult.Companion.toKotlin as getPipelineResultToKotlin
public object CodepipelineFunctions {
/**
* The AWS::CodePipeline::CustomActionType resource creates a custom action for activities that aren't included in the CodePipeline default actions, such as running an internally developed build process or a test suite. You can use these custom actions in the stage of a pipeline.
* @param argument null
* @return null
*/
public suspend fun getCustomActionType(argument: GetCustomActionTypePlainArgs): GetCustomActionTypeResult =
getCustomActionTypeResultToKotlin(getCustomActionTypePlain(argument.toJava()).await())
/**
* @see [getCustomActionType].
* @param category The category of the custom action, such as a build action or a test action.
* @param provider The provider of the service used in the custom action, such as AWS CodeDeploy.
* @param version The version identifier of the custom action.
* @return null
*/
public suspend fun getCustomActionType(
category: String,
provider: String,
version: String,
): GetCustomActionTypeResult {
val argument = GetCustomActionTypePlainArgs(
category = category,
provider = provider,
version = version,
)
return getCustomActionTypeResultToKotlin(getCustomActionTypePlain(argument.toJava()).await())
}
/**
* @see [getCustomActionType].
* @param argument Builder for [com.pulumi.awsnative.codepipeline.kotlin.inputs.GetCustomActionTypePlainArgs].
* @return null
*/
public suspend fun getCustomActionType(argument: suspend GetCustomActionTypePlainArgsBuilder.() -> Unit): GetCustomActionTypeResult {
val builder = GetCustomActionTypePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getCustomActionTypeResultToKotlin(getCustomActionTypePlain(builtArgument.toJava()).await())
}
/**
* The AWS::CodePipeline::Pipeline resource creates a CodePipeline pipeline that describes how software changes go through a release process.
* @param argument null
* @return null
*/
public suspend fun getPipeline(argument: GetPipelinePlainArgs): GetPipelineResult =
getPipelineResultToKotlin(getPipelinePlain(argument.toJava()).await())
/**
* @see [getPipeline].
* @param name The name of the pipeline.
* @return null
*/
public suspend fun getPipeline(name: String): GetPipelineResult {
val argument = GetPipelinePlainArgs(
name = name,
)
return getPipelineResultToKotlin(getPipelinePlain(argument.toJava()).await())
}
/**
* @see [getPipeline].
* @param argument Builder for [com.pulumi.awsnative.codepipeline.kotlin.inputs.GetPipelinePlainArgs].
* @return null
*/
public suspend fun getPipeline(argument: suspend GetPipelinePlainArgsBuilder.() -> Unit): GetPipelineResult {
val builder = GetPipelinePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getPipelineResultToKotlin(getPipelinePlain(builtArgument.toJava()).await())
}
}