Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ssm.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.ssm.PatchBaselineArgs.builder
import com.pulumi.awsnative.ssm.kotlin.enums.PatchBaselineApprovedPatchesComplianceLevel
import com.pulumi.awsnative.ssm.kotlin.enums.PatchBaselineOperatingSystem
import com.pulumi.awsnative.ssm.kotlin.enums.PatchBaselineRejectedPatchesAction
import com.pulumi.awsnative.ssm.kotlin.inputs.PatchBaselinePatchFilterGroupArgs
import com.pulumi.awsnative.ssm.kotlin.inputs.PatchBaselinePatchFilterGroupArgsBuilder
import com.pulumi.awsnative.ssm.kotlin.inputs.PatchBaselinePatchSourceArgs
import com.pulumi.awsnative.ssm.kotlin.inputs.PatchBaselinePatchSourceArgsBuilder
import com.pulumi.awsnative.ssm.kotlin.inputs.PatchBaselineRuleGroupArgs
import com.pulumi.awsnative.ssm.kotlin.inputs.PatchBaselineRuleGroupArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::SSM::PatchBaseline
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* @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 name The name of the patch baseline.
* @property operatingSystem Defines the operating system the patch baseline applies to. The Default value is WINDOWS.
* @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 PatchBaselineArgs(
public val approvalRules: Output? = null,
public val approvedPatches: Output>? = null,
public val approvedPatchesComplianceLevel: Output? =
null,
public val approvedPatchesEnableNonSecurity: Output? = null,
public val defaultBaseline: Output? = null,
public val description: Output? = null,
public val globalFilters: Output? = null,
public val name: Output? = null,
public val operatingSystem: Output? = null,
public val patchGroups: Output>? = null,
public val rejectedPatches: Output>? = null,
public val rejectedPatchesAction: Output? = null,
public val sources: Output>? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ssm.PatchBaselineArgs =
com.pulumi.awsnative.ssm.PatchBaselineArgs.builder()
.approvalRules(approvalRules?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.approvedPatches(approvedPatches?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.approvedPatchesComplianceLevel(
approvedPatchesComplianceLevel?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.approvedPatchesEnableNonSecurity(approvedPatchesEnableNonSecurity?.applyValue({ args0 -> args0 }))
.defaultBaseline(defaultBaseline?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.globalFilters(globalFilters?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 }))
.operatingSystem(operatingSystem?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.patchGroups(patchGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.rejectedPatches(rejectedPatches?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.rejectedPatchesAction(
rejectedPatchesAction?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.sources(
sources?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [PatchBaselineArgs].
*/
@PulumiTagMarker
public class PatchBaselineArgsBuilder internal constructor() {
private var approvalRules: Output? = null
private var approvedPatches: Output>? = null
private var approvedPatchesComplianceLevel: Output? =
null
private var approvedPatchesEnableNonSecurity: Output? = null
private var defaultBaseline: Output? = null
private var description: Output? = null
private var globalFilters: Output? = null
private var name: Output? = null
private var operatingSystem: Output? = null
private var patchGroups: Output>? = null
private var rejectedPatches: Output>? = null
private var rejectedPatchesAction: Output? = null
private var sources: Output>? = null
private var tags: Output>? = null
/**
* @param value A set of rules used to include patches in the baseline.
*/
@JvmName("vylrmpoybhyahdlm")
public suspend fun approvalRules(`value`: Output) {
this.approvalRules = value
}
/**
* @param value A list of explicitly approved patches for the baseline.
*/
@JvmName("egloaqiqmxyfvtgq")
public suspend fun approvedPatches(`value`: Output>) {
this.approvedPatches = value
}
@JvmName("naxcjqpqpmxqadps")
public suspend fun approvedPatches(vararg values: Output) {
this.approvedPatches = Output.all(values.asList())
}
/**
* @param values A list of explicitly approved patches for the baseline.
*/
@JvmName("hijikcbdcbpxxeiu")
public suspend fun approvedPatches(values: List