com.pulumi.gcp.container.kotlin.inputs.ClusterNodeConfigWorkloadMetadataConfigArgs.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.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterNodeConfigWorkloadMetadataConfigArgs.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 mode How to expose the node metadata to the workload running on the node.
* Accepted values are:
* * UNSPECIFIED: Not Set
* * GCE_METADATA: Expose all Compute Engine metadata to pods.
* * GKE_METADATA: Run the GKE Metadata Server on this node. The GKE Metadata Server exposes a metadata API to workloads that is compatible with the V1 Compute Metadata APIs exposed by the Compute Engine and App Engine Metadata Servers. This feature can only be enabled if [workload identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity) is enabled at the cluster level.
*/
public data class ClusterNodeConfigWorkloadMetadataConfigArgs(
public val mode: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodeConfigWorkloadMetadataConfigArgs = com.pulumi.gcp.container.inputs.ClusterNodeConfigWorkloadMetadataConfigArgs.builder()
.mode(mode.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterNodeConfigWorkloadMetadataConfigArgs].
*/
@PulumiTagMarker
public class ClusterNodeConfigWorkloadMetadataConfigArgsBuilder internal constructor() {
private var mode: Output? = null
/**
* @param value How to expose the node metadata to the workload running on the node.
* Accepted values are:
* * UNSPECIFIED: Not Set
* * GCE_METADATA: Expose all Compute Engine metadata to pods.
* * GKE_METADATA: Run the GKE Metadata Server on this node. The GKE Metadata Server exposes a metadata API to workloads that is compatible with the V1 Compute Metadata APIs exposed by the Compute Engine and App Engine Metadata Servers. This feature can only be enabled if [workload identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity) is enabled at the cluster level.
*/
@JvmName("ludqoisqgyempmik")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value How to expose the node metadata to the workload running on the node.
* Accepted values are:
* * UNSPECIFIED: Not Set
* * GCE_METADATA: Expose all Compute Engine metadata to pods.
* * GKE_METADATA: Run the GKE Metadata Server on this node. The GKE Metadata Server exposes a metadata API to workloads that is compatible with the V1 Compute Metadata APIs exposed by the Compute Engine and App Engine Metadata Servers. This feature can only be enabled if [workload identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity) is enabled at the cluster level.
*/
@JvmName("dhvwmvbrqrfmeuji")
public suspend fun mode(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mode = mapped
}
internal fun build(): ClusterNodeConfigWorkloadMetadataConfigArgs =
ClusterNodeConfigWorkloadMetadataConfigArgs(
mode = mode ?: throw PulumiNullFieldException("mode"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy