Class CfnPatchBaselineProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnPatchBaselineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPatchBaselineProps>
- Enclosing interface:
CfnPatchBaselineProps
@Stability(Stable)
public static final class CfnPatchBaselineProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPatchBaselineProps>
A builder for
CfnPatchBaselineProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprovalRules
(IResolvable approvalRules) Sets the value ofCfnPatchBaselineProps.getApprovalRules()
approvalRules
(CfnPatchBaseline.RuleGroupProperty approvalRules) Sets the value ofCfnPatchBaselineProps.getApprovalRules()
approvedPatches
(List<String> approvedPatches) Sets the value ofCfnPatchBaselineProps.getApprovedPatches()
approvedPatchesComplianceLevel
(String approvedPatchesComplianceLevel) Sets the value ofCfnPatchBaselineProps.getApprovedPatchesComplianceLevel()
approvedPatchesEnableNonSecurity
(Boolean approvedPatchesEnableNonSecurity) Sets the value ofCfnPatchBaselineProps.getApprovedPatchesEnableNonSecurity()
approvedPatchesEnableNonSecurity
(IResolvable approvedPatchesEnableNonSecurity) Sets the value ofCfnPatchBaselineProps.getApprovedPatchesEnableNonSecurity()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnPatchBaselineProps.getDescription()
globalFilters
(IResolvable globalFilters) Sets the value ofCfnPatchBaselineProps.getGlobalFilters()
globalFilters
(CfnPatchBaseline.PatchFilterGroupProperty globalFilters) Sets the value ofCfnPatchBaselineProps.getGlobalFilters()
Sets the value ofCfnPatchBaselineProps.getName()
operatingSystem
(String operatingSystem) Sets the value ofCfnPatchBaselineProps.getOperatingSystem()
patchGroups
(List<String> patchGroups) Sets the value ofCfnPatchBaselineProps.getPatchGroups()
rejectedPatches
(List<String> rejectedPatches) Sets the value ofCfnPatchBaselineProps.getRejectedPatches()
rejectedPatchesAction
(String rejectedPatchesAction) Sets the value ofCfnPatchBaselineProps.getRejectedPatchesAction()
Sets the value ofCfnPatchBaselineProps.getSources()
sources
(IResolvable sources) Sets the value ofCfnPatchBaselineProps.getSources()
Sets the value ofCfnPatchBaselineProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnPatchBaselineProps.getName()
- Parameters:
name
- The name of the patch baseline. This parameter is required.- Returns:
this
-
approvalRules
Sets the value ofCfnPatchBaselineProps.getApprovalRules()
- Parameters:
approvalRules
- A set of rules used to include patches in the baseline.- Returns:
this
-
approvalRules
@Stability(Stable) public CfnPatchBaselineProps.Builder approvalRules(CfnPatchBaseline.RuleGroupProperty approvalRules) Sets the value ofCfnPatchBaselineProps.getApprovalRules()
- Parameters:
approvalRules
- A set of rules used to include patches in the baseline.- Returns:
this
-
approvedPatches
@Stability(Stable) public CfnPatchBaselineProps.Builder approvedPatches(List<String> approvedPatches) Sets the value ofCfnPatchBaselineProps.getApprovedPatches()
- Parameters:
approvedPatches
- A list of explicitly approved patches for the baseline. For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the AWS Systems Manager User Guide .- Returns:
this
-
approvedPatchesComplianceLevel
@Stability(Stable) public CfnPatchBaselineProps.Builder approvedPatchesComplianceLevel(String approvedPatchesComplianceLevel) Sets the value ofCfnPatchBaselineProps.getApprovedPatchesComplianceLevel()
- Parameters:
approvedPatchesComplianceLevel
- Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value isUNSPECIFIED
.- Returns:
this
-
approvedPatchesEnableNonSecurity
@Stability(Stable) public CfnPatchBaselineProps.Builder approvedPatchesEnableNonSecurity(Boolean approvedPatchesEnableNonSecurity) Sets the value ofCfnPatchBaselineProps.getApprovedPatchesEnableNonSecurity()
- Parameters:
approvedPatchesEnableNonSecurity
- Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value isfalse
. Applies to Linux managed nodes only.- Returns:
this
-
approvedPatchesEnableNonSecurity
@Stability(Stable) public CfnPatchBaselineProps.Builder approvedPatchesEnableNonSecurity(IResolvable approvedPatchesEnableNonSecurity) Sets the value ofCfnPatchBaselineProps.getApprovedPatchesEnableNonSecurity()
- Parameters:
approvedPatchesEnableNonSecurity
- Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value isfalse
. Applies to Linux managed nodes only.- Returns:
this
-
description
Sets the value ofCfnPatchBaselineProps.getDescription()
- Parameters:
description
- A description of the patch baseline.- Returns:
this
-
globalFilters
Sets the value ofCfnPatchBaselineProps.getGlobalFilters()
- Parameters:
globalFilters
- A set of global filters used to include patches in the baseline.- Returns:
this
-
globalFilters
@Stability(Stable) public CfnPatchBaselineProps.Builder globalFilters(CfnPatchBaseline.PatchFilterGroupProperty globalFilters) Sets the value ofCfnPatchBaselineProps.getGlobalFilters()
- Parameters:
globalFilters
- A set of global filters used to include patches in the baseline.- Returns:
this
-
operatingSystem
Sets the value ofCfnPatchBaselineProps.getOperatingSystem()
- Parameters:
operatingSystem
- Defines the operating system the patch baseline applies to. The default value isWINDOWS
.- Returns:
this
-
patchGroups
Sets the value ofCfnPatchBaselineProps.getPatchGroups()
- Parameters:
patchGroups
- The name of the patch group to be registered with the patch baseline.- Returns:
this
-
rejectedPatches
@Stability(Stable) public CfnPatchBaselineProps.Builder rejectedPatches(List<String> rejectedPatches) Sets the value ofCfnPatchBaselineProps.getRejectedPatches()
- Parameters:
rejectedPatches
- A list of explicitly rejected patches for the baseline. For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the AWS Systems Manager User Guide .- Returns:
this
-
rejectedPatchesAction
@Stability(Stable) public CfnPatchBaselineProps.Builder rejectedPatchesAction(String rejectedPatchesAction) Sets the value ofCfnPatchBaselineProps.getRejectedPatchesAction()
- Parameters:
rejectedPatchesAction
- The action for Patch Manager to take on patches included in theRejectedPackages
list.ALLOW_AS_DEPENDENCY
: A package in theRejected
patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported asInstalledOther
. This is the default action if no option is specified.BLOCK
: Packages in theRejectedPatches
list, and packages that include them as dependencies, aren't installed under any circumstances. If a package was installed before it was added to the Rejected patches list, it is considered non-compliant with the patch baseline, and its status is reported asInstalledRejected
.
- Returns:
this
-
sources
Sets the value ofCfnPatchBaselineProps.getSources()
- Parameters:
sources
- Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.- Returns:
this
-
sources
Sets the value ofCfnPatchBaselineProps.getSources()
- Parameters:
sources
- Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.- Returns:
this
-
tags
Sets the value ofCfnPatchBaselineProps.getTags()
- Parameters:
tags
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPatchBaselineProps>
- Returns:
- a new instance of
CfnPatchBaselineProps
- Throws:
NullPointerException
- if any required attribute was not provided
-