com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheKeysetValidationSharedKeyArgs.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.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.EdgeCacheKeysetValidationSharedKeyArgs.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 secretVersion The name of the secret version in Secret Manager.
* The resource name of the secret version must be in the format `projects/*/secrets/*/versions/*` where the `*` values are replaced by the secrets themselves.
* The secrets must be at least 16 bytes large. The recommended secret size depends on the signature algorithm you are using.
* * If you are using HMAC-SHA1, we suggest 20-byte secrets.
* * If you are using HMAC-SHA256, we suggest 32-byte secrets.
* See RFC 2104, Section 3 for more details on these recommendations.
* */*/*/
*/
public data class EdgeCacheKeysetValidationSharedKeyArgs(
public val secretVersion: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheKeysetValidationSharedKeyArgs =
com.pulumi.gcp.networkservices.inputs.EdgeCacheKeysetValidationSharedKeyArgs.builder()
.secretVersion(secretVersion.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EdgeCacheKeysetValidationSharedKeyArgs].
*/
@PulumiTagMarker
public class EdgeCacheKeysetValidationSharedKeyArgsBuilder internal constructor() {
private var secretVersion: Output? = null
/**
* @param value The name of the secret version in Secret Manager.
* The resource name of the secret version must be in the format `projects/*/secrets/*/versions/*` where the `*` values are replaced by the secrets themselves.
* The secrets must be at least 16 bytes large. The recommended secret size depends on the signature algorithm you are using.
* * If you are using HMAC-SHA1, we suggest 20-byte secrets.
* * If you are using HMAC-SHA256, we suggest 32-byte secrets.
* See RFC 2104, Section 3 for more details on these recommendations.
* */*/*/
*/
@JvmName("csamtjdtmqkibbvi")
public suspend fun secretVersion(`value`: Output) {
this.secretVersion = value
}
/**
* @param value The name of the secret version in Secret Manager.
* The resource name of the secret version must be in the format `projects/*/secrets/*/versions/*` where the `*` values are replaced by the secrets themselves.
* The secrets must be at least 16 bytes large. The recommended secret size depends on the signature algorithm you are using.
* * If you are using HMAC-SHA1, we suggest 20-byte secrets.
* * If you are using HMAC-SHA256, we suggest 32-byte secrets.
* See RFC 2104, Section 3 for more details on these recommendations.
* */*/*/
*/
@JvmName("rkptvauamofxmoub")
public suspend fun secretVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.secretVersion = mapped
}
internal fun build(): EdgeCacheKeysetValidationSharedKeyArgs =
EdgeCacheKeysetValidationSharedKeyArgs(
secretVersion = secretVersion ?: throw PulumiNullFieldException("secretVersion"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy