Class CfnPatchBaseline
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::SSM::PatchBaseline.
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)
.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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnPatchBaseline(Construct scope, String id, CfnPatchBaselineProps props) Create a newAWS::SSM::PatchBaseline.protectedCfnPatchBaseline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPatchBaseline(software.amazon.jsii.JsiiObjectRef objRef) -
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.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.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()Optional metadata that you assign to a resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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.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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnPatchBaselineProps props) Create a newAWS::SSM::PatchBaseline.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
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.
-
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. -
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.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 .
-
setApprovedPatches
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 .
-
getApprovedPatchesComplianceLevel
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 is
UNSPECIFIED. -
setApprovedPatchesComplianceLevel
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 is
UNSPECIFIED. -
getApprovedPatchesEnableNonSecurity
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.The default value is
false. Applies to Linux managed nodes only. -
setApprovedPatchesEnableNonSecurity
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.The default value is
false. Applies to Linux managed nodes only. -
setApprovedPatchesEnableNonSecurity
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.The default value is
false. Applies to Linux managed nodes only. -
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. -
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.The default value is
WINDOWS. -
setOperatingSystem
Defines the operating system the patch baseline applies to.The default value is
WINDOWS. -
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.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 .
-
setRejectedPatches
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 .
-
getRejectedPatchesAction
The action for Patch Manager to take on patches included in theRejectedPackageslist.ALLOW_AS_DEPENDENCY: A package in theRejectedpatches 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 theRejectedPatcheslist, 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.
-
setRejectedPatchesAction
The action for Patch Manager to take on patches included in theRejectedPackageslist.ALLOW_AS_DEPENDENCY: A package in theRejectedpatches 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 theRejectedPatcheslist, 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.
-
getSources
Information about the patches to use to update the managed nodes, including target operating systems and source repositories.Applies to Linux managed nodes only.
-
setSources
Information about the patches to use to update the managed nodes, including target operating systems and source repositories.Applies to Linux managed nodes only.
-
setSources
Information about the patches to use to update the managed nodes, including target operating systems and source repositories.Applies to Linux managed nodes only.
-