com.pulumi.gcp.containeranalysis.kotlin.inputs.OccurenceAttestationSignatureArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.containeranalysis.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.containeranalysis.inputs.OccurenceAttestationSignatureArgs.builder
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
/**
*
* @property publicKeyId The identifier for the public key that verifies this
* signature. MUST be an RFC3986 conformant
* URI. * When possible, the key id should be an
* immutable reference, such as a cryptographic digest.
* Examples of valid values:
* * OpenPGP V4 public key fingerprint. See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr
* for more details on this scheme.
* * `openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA`
* * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization):
* * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU"
* - - -
* @property signature The content of the signature, an opaque bytestring.
* The payload that this signature verifies MUST be
* unambiguously provided with the Signature during
* verification. A wrapper message might provide the
* payload explicitly. Alternatively, a message might
* have a canonical serialization that can always be
* unambiguously computed to derive the payload.
*/
public data class OccurenceAttestationSignatureArgs(
public val publicKeyId: Output,
public val signature: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.containeranalysis.inputs.OccurenceAttestationSignatureArgs =
com.pulumi.gcp.containeranalysis.inputs.OccurenceAttestationSignatureArgs.builder()
.publicKeyId(publicKeyId.applyValue({ args0 -> args0 }))
.signature(signature?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OccurenceAttestationSignatureArgs].
*/
@PulumiTagMarker
public class OccurenceAttestationSignatureArgsBuilder internal constructor() {
private var publicKeyId: Output? = null
private var signature: Output? = null
/**
* @param value The identifier for the public key that verifies this
* signature. MUST be an RFC3986 conformant
* URI. * When possible, the key id should be an
* immutable reference, such as a cryptographic digest.
* Examples of valid values:
* * OpenPGP V4 public key fingerprint. See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr
* for more details on this scheme.
* * `openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA`
* * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization):
* * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU"
* - - -
*/
@JvmName("hikpmxmshmjrerix")
public suspend fun publicKeyId(`value`: Output) {
this.publicKeyId = value
}
/**
* @param value The content of the signature, an opaque bytestring.
* The payload that this signature verifies MUST be
* unambiguously provided with the Signature during
* verification. A wrapper message might provide the
* payload explicitly. Alternatively, a message might
* have a canonical serialization that can always be
* unambiguously computed to derive the payload.
*/
@JvmName("ssqcutiyrtxbnsxm")
public suspend fun signature(`value`: Output) {
this.signature = value
}
/**
* @param value The identifier for the public key that verifies this
* signature. MUST be an RFC3986 conformant
* URI. * When possible, the key id should be an
* immutable reference, such as a cryptographic digest.
* Examples of valid values:
* * OpenPGP V4 public key fingerprint. See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr
* for more details on this scheme.
* * `openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA`
* * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization):
* * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU"
* - - -
*/
@JvmName("xknmhsrmyvilptfb")
public suspend fun publicKeyId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicKeyId = mapped
}
/**
* @param value The content of the signature, an opaque bytestring.
* The payload that this signature verifies MUST be
* unambiguously provided with the Signature during
* verification. A wrapper message might provide the
* payload explicitly. Alternatively, a message might
* have a canonical serialization that can always be
* unambiguously computed to derive the payload.
*/
@JvmName("wnolsbubrdgmihiq")
public suspend fun signature(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.signature = mapped
}
internal fun build(): OccurenceAttestationSignatureArgs = OccurenceAttestationSignatureArgs(
publicKeyId = publicKeyId ?: throw PulumiNullFieldException("publicKeyId"),
signature = signature,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy