
com.pulumi.gcp.gkehub.kotlin.outputs.FeatureMembershipConfigmanagementConfigSync.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.gkehub.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property enabled Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
* @property git (Optional) Structure is documented below.
* @property metricsGcpServiceAccountEmail Deprecated: If Workload Identity Federation for GKE is enabled, Google Cloud Service Account is no longer needed for exporting Config Sync metrics: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/monitor-config-sync-cloud-monitoring#custom-monitoring.
* @property oci (Optional) Supported from Config Sync versions 1.12.0 onwards. Structure is documented below.
* Use either `git` or `oci` config option.
* @property preventDrift Supported from Config Sync versions 1.10.0 onwards. Set to `true` to enable the Config Sync admission webhook to prevent drifts. If set to `false`, disables the Config Sync admission webhook and does not prevent drifts.
* @property sourceFormat Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
* @property stopSyncing Set to `true` to stop syncing configurations for a single cluster. This field is only available on clusters using Config Sync [auto-upgrades](http://cloud/kubernetes-engine/enterprise/config-sync/docs/how-to/upgrade-config-sync#auto-upgrade-config) or on Config Sync version 1.20.0 or later. Defaults: `false`.
*/
public data class FeatureMembershipConfigmanagementConfigSync(
public val enabled: Boolean? = null,
public val git: FeatureMembershipConfigmanagementConfigSyncGit? = null,
public val metricsGcpServiceAccountEmail: String? = null,
public val oci: FeatureMembershipConfigmanagementConfigSyncOci? = null,
public val preventDrift: Boolean? = null,
public val sourceFormat: String? = null,
public val stopSyncing: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.gkehub.outputs.FeatureMembershipConfigmanagementConfigSync): FeatureMembershipConfigmanagementConfigSync = FeatureMembershipConfigmanagementConfigSync(
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
git = javaType.git().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.gkehub.kotlin.outputs.FeatureMembershipConfigmanagementConfigSyncGit.Companion.toKotlin(args0)
})
}).orElse(null),
metricsGcpServiceAccountEmail = javaType.metricsGcpServiceAccountEmail().map({ args0 ->
args0
}).orElse(null),
oci = javaType.oci().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.gkehub.kotlin.outputs.FeatureMembershipConfigmanagementConfigSyncOci.Companion.toKotlin(args0)
})
}).orElse(null),
preventDrift = javaType.preventDrift().map({ args0 -> args0 }).orElse(null),
sourceFormat = javaType.sourceFormat().map({ args0 -> args0 }).orElse(null),
stopSyncing = javaType.stopSyncing().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy