![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.codepipeline.kotlin.inputs.PipelineEncryptionKeyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.codepipeline.kotlin.inputs
import com.pulumi.awsnative.codepipeline.inputs.PipelineEncryptionKeyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key
* @property id The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.
* @property type The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/
public data class PipelineEncryptionKeyArgs(
public val id: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.codepipeline.inputs.PipelineEncryptionKeyArgs =
com.pulumi.awsnative.codepipeline.inputs.PipelineEncryptionKeyArgs.builder()
.id(id.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PipelineEncryptionKeyArgs].
*/
@PulumiTagMarker
public class PipelineEncryptionKeyArgsBuilder internal constructor() {
private var id: Output? = null
private var type: Output? = null
/**
* @param value The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.
*/
@JvmName("hgehjcilybrapodn")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/
@JvmName("cokkshwlwagvwvyi")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.
*/
@JvmName("whgicmsgadpxnnfa")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/
@JvmName("nvgqvnlnteydpfqw")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): PipelineEncryptionKeyArgs = PipelineEncryptionKeyArgs(
id = id ?: throw PulumiNullFieldException("id"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy