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

com.pulumi.gcp.osconfig.kotlin.inputs.PatchDeploymentPatchConfigYumArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.osconfig.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigYumArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property excludes List of packages to exclude from update. These packages will be excluded.
 * @property exclusivePackages An exclusive list of packages to be updated. These are the only packages that will be updated.
 * If these packages are not installed, they will be ignored. This field cannot be specified with
 * any other patch configuration fields.
 * @property minimal Will cause patch to run yum update-minimal instead.
 * @property security Adds the --security flag to yum update. Not supported on all platforms.
 */
public data class PatchDeploymentPatchConfigYumArgs(
    public val excludes: Output>? = null,
    public val exclusivePackages: Output>? = null,
    public val minimal: Output? = null,
    public val security: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigYumArgs =
        com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigYumArgs.builder()
            .excludes(excludes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .exclusivePackages(exclusivePackages?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .minimal(minimal?.applyValue({ args0 -> args0 }))
            .security(security?.applyValue({ args0 -> args0 })).build()
}

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

    private var exclusivePackages: Output>? = null

    private var minimal: Output? = null

    private var security: Output? = null

    /**
     * @param value List of packages to exclude from update. These packages will be excluded.
     */
    @JvmName("ywkcbfohhwkidtkk")
    public suspend fun excludes(`value`: Output>) {
        this.excludes = value
    }

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

    /**
     * @param values List of packages to exclude from update. These packages will be excluded.
     */
    @JvmName("vvsopxajmviwvvru")
    public suspend fun excludes(values: List>) {
        this.excludes = Output.all(values)
    }

    /**
     * @param value An exclusive list of packages to be updated. These are the only packages that will be updated.
     * If these packages are not installed, they will be ignored. This field cannot be specified with
     * any other patch configuration fields.
     */
    @JvmName("kxxbiabcodudtahl")
    public suspend fun exclusivePackages(`value`: Output>) {
        this.exclusivePackages = value
    }

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

    /**
     * @param values An exclusive list of packages to be updated. These are the only packages that will be updated.
     * If these packages are not installed, they will be ignored. This field cannot be specified with
     * any other patch configuration fields.
     */
    @JvmName("nvjsinjlcwhdfrrc")
    public suspend fun exclusivePackages(values: List>) {
        this.exclusivePackages = Output.all(values)
    }

    /**
     * @param value Will cause patch to run yum update-minimal instead.
     */
    @JvmName("cidtgpbqgehjwphs")
    public suspend fun minimal(`value`: Output) {
        this.minimal = value
    }

    /**
     * @param value Adds the --security flag to yum update. Not supported on all platforms.
     */
    @JvmName("yelnetxvgyqtvpwd")
    public suspend fun security(`value`: Output) {
        this.security = value
    }

    /**
     * @param value List of packages to exclude from update. These packages will be excluded.
     */
    @JvmName("wmaygycaqnivqrbl")
    public suspend fun excludes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param values List of packages to exclude from update. These packages will be excluded.
     */
    @JvmName("fkeicgkbthvmrbat")
    public suspend fun excludes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param value An exclusive list of packages to be updated. These are the only packages that will be updated.
     * If these packages are not installed, they will be ignored. This field cannot be specified with
     * any other patch configuration fields.
     */
    @JvmName("rigdjswvwlswrnnl")
    public suspend fun exclusivePackages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusivePackages = mapped
    }

    /**
     * @param values An exclusive list of packages to be updated. These are the only packages that will be updated.
     * If these packages are not installed, they will be ignored. This field cannot be specified with
     * any other patch configuration fields.
     */
    @JvmName("cqsvsfrgfhcqhknd")
    public suspend fun exclusivePackages(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusivePackages = mapped
    }

    /**
     * @param value Will cause patch to run yum update-minimal instead.
     */
    @JvmName("wiiuhxnfpudblbon")
    public suspend fun minimal(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimal = mapped
    }

    /**
     * @param value Adds the --security flag to yum update. Not supported on all platforms.
     */
    @JvmName("smghaaomwubnexta")
    public suspend fun security(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.security = mapped
    }

    internal fun build(): PatchDeploymentPatchConfigYumArgs = PatchDeploymentPatchConfigYumArgs(
        excludes = excludes,
        exclusivePackages = exclusivePackages,
        minimal = minimal,
        security = security,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy