Class CfnPatchBaselineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPatchBaselineProps>
- Enclosing interface:
CfnPatchBaselineProps
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.defaultBaseline
(Boolean defaultBaseline) Sets the value ofCfnPatchBaselineProps.getDefaultBaseline()
defaultBaseline
(IResolvable defaultBaseline) Sets the value ofCfnPatchBaselineProps.getDefaultBaseline()
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 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
-
defaultBaseline
Sets the value ofCfnPatchBaselineProps.getDefaultBaseline()
- Parameters:
defaultBaseline
- Set the baseline as default baseline. Only registering to default patch baseline is allowed.- Returns:
this
-
defaultBaseline
@Stability(Stable) public CfnPatchBaselineProps.Builder defaultBaseline(IResolvable defaultBaseline) Sets the value ofCfnPatchBaselineProps.getDefaultBaseline()
- Parameters:
defaultBaseline
- Set the baseline as default baseline. Only registering to default patch baseline is allowed.- 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.The
GlobalFilters
parameter can be configured only by using the AWS CLI or an AWS SDK. It can't be configured from the Patch Manager console, and its value isn't displayed in the console.- 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.The
GlobalFilters
parameter can be configured only by using the AWS CLI or an AWS SDK. It can't be configured from the Patch Manager console, and its value isn't displayed in the console.- 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 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 - Linux and macOS : A package in the rejected 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 as
INSTALLED_OTHER
. This is the default action if no option is specified.
Windows Server : Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as
INSTALLED_OTHER
. Any package not already installed on the node is skipped. This is the default action if no option is specified.- BLOCK - All OSs : Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances. If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as
INSTALLED_REJECTED
.
- ALLOW_AS_DEPENDENCY - Linux and macOS : A package in the rejected 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 as
- 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
-