Class CfnPatchBaseline
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ssm.CfnPatchBaseline
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IPatchBaselineRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:46.085Z")
@Stability(Stable)
public class CfnPatchBaseline
extends CfnResource
implements IInspectable, IPatchBaselineRef, ITaggable
The
AWS::SSM::PatchBaseline resource defines the basic information for an AWS Systems Manager patch baseline.
A patch baseline defines which patches are approved for installation on your instances.
For more information, see CreatePatchBaseline in the AWS Systems Manager API Reference .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;
CfnPatchBaseline cfnPatchBaseline = CfnPatchBaseline.Builder.create(this, "MyCfnPatchBaseline")
.name("name")
// the properties below are optional
.approvalRules(RuleGroupProperty.builder()
.patchRules(List.of(RuleProperty.builder()
.approveAfterDays(123)
.approveUntilDate("approveUntilDate")
.complianceLevel("complianceLevel")
.enableNonSecurity(false)
.patchFilterGroup(PatchFilterGroupProperty.builder()
.patchFilters(List.of(PatchFilterProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.build())
.build()))
.build())
.approvedPatches(List.of("approvedPatches"))
.approvedPatchesComplianceLevel("approvedPatchesComplianceLevel")
.approvedPatchesEnableNonSecurity(false)
.availableSecurityUpdatesComplianceStatus("availableSecurityUpdatesComplianceStatus")
.defaultBaseline(false)
.description("description")
.globalFilters(PatchFilterGroupProperty.builder()
.patchFilters(List.of(PatchFilterProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.build())
.operatingSystem("operatingSystem")
.patchGroups(List.of("patchGroups"))
.rejectedPatches(List.of("rejectedPatches"))
.rejectedPatchesAction("rejectedPatchesAction")
.sources(List.of(PatchSourceProperty.builder()
.configuration("configuration")
.name("name")
.products(List.of("products"))
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPatchBaseline.static interfaceThePatchFilterGroupproperty type specifies a set of patch filters for an AWS Systems Manager patch baseline, typically used for approval rules for a Systems Manager patch baseline.static interfaceThePatchFilterproperty type defines a patch filter for an AWS Systems Manager patch baseline.static interfacestatic interfaceTheRuleGroupproperty type specifies a set of rules that define the approval rules for an AWS Systems Manager patch baseline.static interfaceTheRuleproperty type specifies an approval rule for a Systems Manager patch baseline.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ssm.IPatchBaselineRef
IPatchBaselineRef.Jsii$Default, IPatchBaselineRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPatchBaseline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPatchBaseline(software.amazon.jsii.JsiiObjectRef objRef) CfnPatchBaseline(software.constructs.Construct scope, String id, CfnPatchBaselineProps props) Create a newAWS::SSM::PatchBaseline. -
Method Summary
Modifier and TypeMethodDescriptionA set of rules used to include patches in the baseline.A list of explicitly approved patches for the baseline.Defines the compliance level for approved patches.Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.The ID of the patch baseline.Indicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline.Indicates whether this is the default baseline.A description of the patch baseline.A set of global filters used to include patches in the baseline.getName()The name of the patch baseline.Defines the operating system the patch baseline applies to.A reference to a PatchBaseline resource.The name of the patch group to be registered with the patch baseline.A list of explicitly rejected patches for the baseline.The action for Patch Manager to take on patches included in theRejectedPackageslist.Information about the patches to use to update the managed nodes, including target operating systems and source repositories.getTags()Tag Manager which manages the tags for this resource.Optional metadata that you assign to a resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPatchBaseline.renderProperties(Map<String, Object> props) voidsetApprovalRules(IResolvable value) A set of rules used to include patches in the baseline.voidA set of rules used to include patches in the baseline.voidsetApprovedPatches(List<String> value) A list of explicitly approved patches for the baseline.voidDefines the compliance level for approved patches.voidIndicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.voidIndicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.voidIndicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline.voidsetDefaultBaseline(Boolean value) Indicates whether this is the default baseline.voidsetDefaultBaseline(IResolvable value) Indicates whether this is the default baseline.voidsetDescription(String value) A description of the patch baseline.voidsetGlobalFilters(IResolvable value) A set of global filters used to include patches in the baseline.voidA set of global filters used to include patches in the baseline.voidThe name of the patch baseline.voidsetOperatingSystem(String value) Defines the operating system the patch baseline applies to.voidsetPatchGroups(List<String> value) The name of the patch group to be registered with the patch baseline.voidsetRejectedPatches(List<String> value) A list of explicitly rejected patches for the baseline.voidsetRejectedPatchesAction(String value) The action for Patch Manager to take on patches included in theRejectedPackageslist.voidsetSources(List<Object> value) Information about the patches to use to update the managed nodes, including target operating systems and source repositories.voidsetSources(IResolvable value) Information about the patches to use to update the managed nodes, including target operating systems and source repositories.voidsetTagsRaw(List<CfnTag> value) Optional metadata that you assign to a resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPatchBaseline
protected CfnPatchBaseline(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPatchBaseline
protected CfnPatchBaseline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPatchBaseline
@Stability(Stable) public CfnPatchBaseline(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPatchBaselineProps props) Create a newAWS::SSM::PatchBaseline.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnPatchBaseline
Checks whether the given object is a CfnPatchBaseline.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
The ID of the patch baseline. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPatchBaselineRef
A reference to a PatchBaseline resource.- Specified by:
getPatchBaselineRefin interfaceIPatchBaselineRef
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The name of the patch baseline. -
setName
The name of the patch baseline. -
getApprovalRules
A set of rules used to include patches in the baseline.Returns union: either
IResolvableorCfnPatchBaseline.RuleGroupProperty -
setApprovalRules
A set of rules used to include patches in the baseline. -
setApprovalRules
A set of rules used to include patches in the baseline. -
getApprovedPatches
A list of explicitly approved patches for the baseline. -
setApprovedPatches
A list of explicitly approved patches for the baseline. -
getApprovedPatchesComplianceLevel
Defines the compliance level for approved patches. -
setApprovedPatchesComplianceLevel
Defines the compliance level for approved patches. -
getApprovedPatchesEnableNonSecurity
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.Returns union: either
BooleanorIResolvable -
setApprovedPatchesEnableNonSecurity
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. -
setApprovedPatchesEnableNonSecurity
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. -
getAvailableSecurityUpdatesComplianceStatus
Indicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline. -
setAvailableSecurityUpdatesComplianceStatus
Indicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline. -
getDefaultBaseline
Indicates whether this is the default baseline.Returns union: either
BooleanorIResolvable -
setDefaultBaseline
Indicates whether this is the default baseline. -
setDefaultBaseline
Indicates whether this is the default baseline. -
getDescription
A description of the patch baseline. -
setDescription
A description of the patch baseline. -
getGlobalFilters
A set of global filters used to include patches in the baseline.Returns union: either
IResolvableorCfnPatchBaseline.PatchFilterGroupProperty -
setGlobalFilters
A set of global filters used to include patches in the baseline. -
setGlobalFilters
@Stability(Stable) public void setGlobalFilters(@Nullable CfnPatchBaseline.PatchFilterGroupProperty value) A set of global filters used to include patches in the baseline. -
getOperatingSystem
Defines the operating system the patch baseline applies to. -
setOperatingSystem
Defines the operating system the patch baseline applies to. -
getPatchGroups
The name of the patch group to be registered with the patch baseline. -
setPatchGroups
The name of the patch group to be registered with the patch baseline. -
getRejectedPatches
A list of explicitly rejected patches for the baseline. -
setRejectedPatches
A list of explicitly rejected patches for the baseline. -
getRejectedPatchesAction
The action for Patch Manager to take on patches included in theRejectedPackageslist. -
setRejectedPatchesAction
The action for Patch Manager to take on patches included in theRejectedPackageslist. -
getSources
Information about the patches to use to update the managed nodes, including target operating systems and source repositories.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPatchBaseline.PatchSourceProperty> -
setSources
Information about the patches to use to update the managed nodes, including target operating systems and source repositories. -
setSources
Information about the patches to use to update the managed nodes, including target operating systems and source repositories. -
getTagsRaw
Optional metadata that you assign to a resource. -
setTagsRaw
Optional metadata that you assign to a resource.
-