All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.arckubernetes.kotlin.inputs.FluxConfigurationKustomizationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.arckubernetes.kotlin.inputs

import com.pulumi.azure.arckubernetes.inputs.FluxConfigurationKustomizationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property dependsOns Specifies other kustomizations that this kustomization depends on. This kustomization will not reconcile until all dependencies have completed their reconciliation.
 * @property garbageCollectionEnabled Whether garbage collections of Kubernetes objects created by this kustomization is enabled. Defaults to `false`.
 * @property name Specifies the name of the kustomization.
 * @property path Specifies the path in the source reference to reconcile on the cluster.
 * @property recreatingEnabled Whether re-creating Kubernetes resources on the cluster is enabled when patching fails due to an immutable field change. Defaults to `false`.
 * @property retryIntervalInSeconds The interval at which to re-reconcile the kustomization on the cluster in the event of failure on reconciliation. Defaults to `600`.
 * @property syncIntervalInSeconds The interval at which to re-reconcile the kustomization on the cluster. Defaults to `600`.
 * @property timeoutInSeconds The maximum time to attempt to reconcile the kustomization on the cluster. Defaults to `600`.
 */
public data class FluxConfigurationKustomizationArgs(
    public val dependsOns: Output>? = null,
    public val garbageCollectionEnabled: Output? = null,
    public val name: Output,
    public val path: Output? = null,
    public val recreatingEnabled: Output? = null,
    public val retryIntervalInSeconds: Output? = null,
    public val syncIntervalInSeconds: Output? = null,
    public val timeoutInSeconds: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.arckubernetes.inputs.FluxConfigurationKustomizationArgs =
        com.pulumi.azure.arckubernetes.inputs.FluxConfigurationKustomizationArgs.builder()
            .dependsOns(dependsOns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .garbageCollectionEnabled(garbageCollectionEnabled?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .recreatingEnabled(recreatingEnabled?.applyValue({ args0 -> args0 }))
            .retryIntervalInSeconds(retryIntervalInSeconds?.applyValue({ args0 -> args0 }))
            .syncIntervalInSeconds(syncIntervalInSeconds?.applyValue({ args0 -> args0 }))
            .timeoutInSeconds(timeoutInSeconds?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FluxConfigurationKustomizationArgs].
 */
@PulumiTagMarker
public class FluxConfigurationKustomizationArgsBuilder internal constructor() {
    private var dependsOns: Output>? = null

    private var garbageCollectionEnabled: Output? = null

    private var name: Output? = null

    private var path: Output? = null

    private var recreatingEnabled: Output? = null

    private var retryIntervalInSeconds: Output? = null

    private var syncIntervalInSeconds: Output? = null

    private var timeoutInSeconds: Output? = null

    /**
     * @param value Specifies other kustomizations that this kustomization depends on. This kustomization will not reconcile until all dependencies have completed their reconciliation.
     */
    @JvmName("ubqwxsgfndxyombg")
    public suspend fun dependsOns(`value`: Output>) {
        this.dependsOns = value
    }

    @JvmName("earyunaheybgmnmw")
    public suspend fun dependsOns(vararg values: Output) {
        this.dependsOns = Output.all(values.asList())
    }

    /**
     * @param values Specifies other kustomizations that this kustomization depends on. This kustomization will not reconcile until all dependencies have completed their reconciliation.
     */
    @JvmName("vqutikowixirqvjt")
    public suspend fun dependsOns(values: List>) {
        this.dependsOns = Output.all(values)
    }

    /**
     * @param value Whether garbage collections of Kubernetes objects created by this kustomization is enabled. Defaults to `false`.
     */
    @JvmName("nrtdubwybxfmubqt")
    public suspend fun garbageCollectionEnabled(`value`: Output) {
        this.garbageCollectionEnabled = value
    }

    /**
     * @param value Specifies the name of the kustomization.
     */
    @JvmName("vhhkptumrgkuijaa")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the path in the source reference to reconcile on the cluster.
     */
    @JvmName("yvpscssewaqtrxok")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Whether re-creating Kubernetes resources on the cluster is enabled when patching fails due to an immutable field change. Defaults to `false`.
     */
    @JvmName("edkkgxewgeqynodi")
    public suspend fun recreatingEnabled(`value`: Output) {
        this.recreatingEnabled = value
    }

    /**
     * @param value The interval at which to re-reconcile the kustomization on the cluster in the event of failure on reconciliation. Defaults to `600`.
     */
    @JvmName("fwdhcxvgytardenm")
    public suspend fun retryIntervalInSeconds(`value`: Output) {
        this.retryIntervalInSeconds = value
    }

    /**
     * @param value The interval at which to re-reconcile the kustomization on the cluster. Defaults to `600`.
     */
    @JvmName("lmgjmrjclulyygga")
    public suspend fun syncIntervalInSeconds(`value`: Output) {
        this.syncIntervalInSeconds = value
    }

    /**
     * @param value The maximum time to attempt to reconcile the kustomization on the cluster. Defaults to `600`.
     */
    @JvmName("aolqiqdwksgmsbpw")
    public suspend fun timeoutInSeconds(`value`: Output) {
        this.timeoutInSeconds = value
    }

    /**
     * @param value Specifies other kustomizations that this kustomization depends on. This kustomization will not reconcile until all dependencies have completed their reconciliation.
     */
    @JvmName("mwbdcomisadulyok")
    public suspend fun dependsOns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dependsOns = mapped
    }

    /**
     * @param values Specifies other kustomizations that this kustomization depends on. This kustomization will not reconcile until all dependencies have completed their reconciliation.
     */
    @JvmName("gehfxsixkdhdyrtr")
    public suspend fun dependsOns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dependsOns = mapped
    }

    /**
     * @param value Whether garbage collections of Kubernetes objects created by this kustomization is enabled. Defaults to `false`.
     */
    @JvmName("ktkqnylrganxnflh")
    public suspend fun garbageCollectionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.garbageCollectionEnabled = mapped
    }

    /**
     * @param value Specifies the name of the kustomization.
     */
    @JvmName("jteavvxwjglvxqae")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the path in the source reference to reconcile on the cluster.
     */
    @JvmName("cppddvgxkvvteiuf")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value Whether re-creating Kubernetes resources on the cluster is enabled when patching fails due to an immutable field change. Defaults to `false`.
     */
    @JvmName("gyiievsrumgobona")
    public suspend fun recreatingEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recreatingEnabled = mapped
    }

    /**
     * @param value The interval at which to re-reconcile the kustomization on the cluster in the event of failure on reconciliation. Defaults to `600`.
     */
    @JvmName("kjnswlqfyuunhjks")
    public suspend fun retryIntervalInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retryIntervalInSeconds = mapped
    }

    /**
     * @param value The interval at which to re-reconcile the kustomization on the cluster. Defaults to `600`.
     */
    @JvmName("bvmvphlscltbhctf")
    public suspend fun syncIntervalInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.syncIntervalInSeconds = mapped
    }

    /**
     * @param value The maximum time to attempt to reconcile the kustomization on the cluster. Defaults to `600`.
     */
    @JvmName("ogjkkccbuuwlotqb")
    public suspend fun timeoutInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutInSeconds = mapped
    }

    internal fun build(): FluxConfigurationKustomizationArgs = FluxConfigurationKustomizationArgs(
        dependsOns = dependsOns,
        garbageCollectionEnabled = garbageCollectionEnabled,
        name = name ?: throw PulumiNullFieldException("name"),
        path = path,
        recreatingEnabled = recreatingEnabled,
        retryIntervalInSeconds = retryIntervalInSeconds,
        syncIntervalInSeconds = syncIntervalInSeconds,
        timeoutInSeconds = timeoutInSeconds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy