com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecVolumeSecret.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.cloudrun.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property defaultMode Mode bits to use on created files by default. Must be a value between 0000
* and 0777. Defaults to 0644. Directories within the path are not affected by
* this setting. This might be in conflict with other options that affect the
* file mode, like fsGroup, and the result can be other mode bits set.
* @property items If unspecified, the volume will expose a file whose name is the
* secret_name.
* If specified, the key will be used as the version to fetch from Cloud
* Secret Manager and the path will be the name of the file exposed in the
* volume. When items are defined, they must specify a key and a path.
* @property secretName The name of the secret in Cloud Secret Manager. By default, the secret
* is assumed to be in the same project.
* If the secret is in another project, you must define an alias.
* An alias definition has the form:
* {alias}:projects/{project-id|project-number}/secrets/{secret-name}.
* If multiple alias definitions are needed, they must be separated by
* commas.
* The alias definitions must be set on the run.googleapis.com/secrets
* annotation.
*/
public data class GetServiceTemplateSpecVolumeSecret(
public val defaultMode: Int,
public val items: List,
public val secretName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceTemplateSpecVolumeSecret): GetServiceTemplateSpecVolumeSecret = GetServiceTemplateSpecVolumeSecret(
defaultMode = javaType.defaultMode(),
items = javaType.items().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecVolumeSecretItem.Companion.toKotlin(args0)
})
}),
secretName = javaType.secretName(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy