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

com.pulumi.awsnative.ssm.kotlin.inputs.PatchBaselinePatchSourceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ssm.kotlin.inputs

import com.pulumi.awsnative.ssm.inputs.PatchBaselinePatchSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Information about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
 * @property configuration The value of the yum repo configuration. For example:
 * `[main]`
 * `name=MyCustomRepository`
 * `baseurl=https://my-custom-repository`
 * `enabled=1`
 * > For information about other options available for your yum repository configuration, see [dnf.conf(5)](https://docs.aws.amazon.com/https://man7.org/linux/man-pages/man5/dnf.conf.5.html) .
 * @property name The name specified to identify the patch source.
 * @property products The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see [PatchFilter](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PatchFilter.html) in the *AWS Systems Manager API Reference* .
 */
public data class PatchBaselinePatchSourceArgs(
    public val configuration: Output? = null,
    public val name: Output? = null,
    public val products: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssm.inputs.PatchBaselinePatchSourceArgs =
        com.pulumi.awsnative.ssm.inputs.PatchBaselinePatchSourceArgs.builder()
            .configuration(configuration?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .products(products?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [PatchBaselinePatchSourceArgs].
 */
@PulumiTagMarker
public class PatchBaselinePatchSourceArgsBuilder internal constructor() {
    private var configuration: Output? = null

    private var name: Output? = null

    private var products: Output>? = null

    /**
     * @param value The value of the yum repo configuration. For example:
     * `[main]`
     * `name=MyCustomRepository`
     * `baseurl=https://my-custom-repository`
     * `enabled=1`
     * > For information about other options available for your yum repository configuration, see [dnf.conf(5)](https://docs.aws.amazon.com/https://man7.org/linux/man-pages/man5/dnf.conf.5.html) .
     */
    @JvmName("kfrxnifuxxrgcmlt")
    public suspend fun configuration(`value`: Output) {
        this.configuration = value
    }

    /**
     * @param value The name specified to identify the patch source.
     */
    @JvmName("srdquftagbxvpxfp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see [PatchFilter](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PatchFilter.html) in the *AWS Systems Manager API Reference* .
     */
    @JvmName("pxbqddyxilurfixt")
    public suspend fun products(`value`: Output>) {
        this.products = value
    }

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

    /**
     * @param values The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see [PatchFilter](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PatchFilter.html) in the *AWS Systems Manager API Reference* .
     */
    @JvmName("irybpebtngnqbnrj")
    public suspend fun products(values: List>) {
        this.products = Output.all(values)
    }

    /**
     * @param value The value of the yum repo configuration. For example:
     * `[main]`
     * `name=MyCustomRepository`
     * `baseurl=https://my-custom-repository`
     * `enabled=1`
     * > For information about other options available for your yum repository configuration, see [dnf.conf(5)](https://docs.aws.amazon.com/https://man7.org/linux/man-pages/man5/dnf.conf.5.html) .
     */
    @JvmName("fsynjosxyoylgqvk")
    public suspend fun configuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value The name specified to identify the patch source.
     */
    @JvmName("pnxmiekxiqpefmcg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see [PatchFilter](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PatchFilter.html) in the *AWS Systems Manager API Reference* .
     */
    @JvmName("vcitgsqatnayxjgq")
    public suspend fun products(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.products = mapped
    }

    /**
     * @param values The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see [PatchFilter](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PatchFilter.html) in the *AWS Systems Manager API Reference* .
     */
    @JvmName("pviujygmxxbctsim")
    public suspend fun products(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.products = mapped
    }

    internal fun build(): PatchBaselinePatchSourceArgs = PatchBaselinePatchSourceArgs(
        configuration = configuration,
        name = name,
        products = products,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy