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

com.pulumi.awsnative.ssm.kotlin.outputs.GetPatchBaselineResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ssm.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.ssm.kotlin.enums.PatchBaselineApprovedPatchesComplianceLevel
import com.pulumi.awsnative.ssm.kotlin.enums.PatchBaselineRejectedPatchesAction
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property approvalRules A set of rules used to include patches in the baseline.
 * @property approvedPatches A list of explicitly approved patches for the baseline.
 * @property approvedPatchesComplianceLevel Defines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. The default value is UNSPECIFIED.
 * @property approvedPatchesEnableNonSecurity Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. The default value is 'false'. Applies to Linux instances only.
 * @property defaultBaseline Set the baseline as default baseline. Only registering to default patch baseline is allowed.
 * @property description The description of the patch baseline.
 * @property globalFilters A set of global filters used to include patches in the baseline.
 * @property id The ID of the patch baseline.
 * @property name The name of the patch baseline.
 * @property patchGroups PatchGroups is used to associate instances with a specific patch baseline
 * @property rejectedPatches A list of explicitly rejected patches for the baseline.
 * @property rejectedPatchesAction The action for Patch Manager to take on patches included in the RejectedPackages list.
 * @property sources Information about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
 * @property tags Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways.
 */
public data class GetPatchBaselineResult(
    public val approvalRules: PatchBaselineRuleGroup? = null,
    public val approvedPatches: List? = null,
    public val approvedPatchesComplianceLevel: PatchBaselineApprovedPatchesComplianceLevel? = null,
    public val approvedPatchesEnableNonSecurity: Boolean? = null,
    public val defaultBaseline: Boolean? = null,
    public val description: String? = null,
    public val globalFilters: PatchBaselinePatchFilterGroup? = null,
    public val id: String? = null,
    public val name: String? = null,
    public val patchGroups: List? = null,
    public val rejectedPatches: List? = null,
    public val rejectedPatchesAction: PatchBaselineRejectedPatchesAction? = null,
    public val sources: List? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ssm.outputs.GetPatchBaselineResult): GetPatchBaselineResult = GetPatchBaselineResult(
            approvalRules = javaType.approvalRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ssm.kotlin.outputs.PatchBaselineRuleGroup.Companion.toKotlin(args0)
                })
            }).orElse(null),
            approvedPatches = javaType.approvedPatches().map({ args0 -> args0 }),
            approvedPatchesComplianceLevel = javaType.approvedPatchesComplianceLevel().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ssm.kotlin.enums.PatchBaselineApprovedPatchesComplianceLevel.Companion.toKotlin(args0)
                })
            }).orElse(null),
            approvedPatchesEnableNonSecurity = javaType.approvedPatchesEnableNonSecurity().map({ args0 ->
                args0
            }).orElse(null),
            defaultBaseline = javaType.defaultBaseline().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            globalFilters = javaType.globalFilters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ssm.kotlin.outputs.PatchBaselinePatchFilterGroup.Companion.toKotlin(args0)
                })
            }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            patchGroups = javaType.patchGroups().map({ args0 -> args0 }),
            rejectedPatches = javaType.rejectedPatches().map({ args0 -> args0 }),
            rejectedPatchesAction = javaType.rejectedPatchesAction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ssm.kotlin.enums.PatchBaselineRejectedPatchesAction.Companion.toKotlin(args0)
                })
            }).orElse(null),
            sources = javaType.sources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ssm.kotlin.outputs.PatchBaselinePatchSource.Companion.toKotlin(args0)
                })
            }),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy