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 class
A fluent builder forCfnPatchBaseline
.static interface
ThePatchFilterGroup
property 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 interface
ThePatchFilter
property type defines a patch filter for an AWS Systems Manager patch baseline.static interface
static interface
TheRuleGroup
property type specifies a set of rules that define the approval rules for an AWS Systems Manager patch baseline.static interface
TheRule
property 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnPatchBaseline
(Construct scope, String id, CfnPatchBaselineProps props) Create a newAWS::SSM::PatchBaseline
.protected
CfnPatchBaseline
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnPatchBaseline
(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 theRejectedPackages
list.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setApprovalRules
(IResolvable value) A set of rules used to include patches in the baseline.void
A set of rules used to include patches in the baseline.void
setApprovedPatches
(List<String> value) A list of explicitly approved patches for the baseline.void
Defines the compliance level for approved patches.void
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.void
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.void
setDescription
(String value) A description of the patch baseline.void
setGlobalFilters
(IResolvable value) A set of global filters used to include patches in the baseline.void
A set of global filters used to include patches in the baseline.void
The name of the patch baseline.void
setOperatingSystem
(String value) Defines the operating system the patch baseline applies to.void
setPatchGroups
(List<String> value) The name of the patch group to be registered with the patch baseline.void
setRejectedPatches
(List<String> value) A list of explicitly rejected patches for the baseline.void
setRejectedPatchesAction
(String value) The action for Patch Manager to take on patches included in theRejectedPackages
list.void
setSources
(List<Object> value) Information about the patches to use to update the managed nodes, including target operating systems and source repositories.void
setSources
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in 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 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
.
-
setRejectedPatchesAction
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
.
-
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.
-