Class CfnPatchBaselineProps
Properties for defining a CfnPatchBaseline
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SSM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPatchBaselineProps : Object, ICfnPatchBaselineProps
Syntax (vb)
Public Class CfnPatchBaselineProps
Inherits Object
Implements ICfnPatchBaselineProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SSM;
var cfnPatchBaselineProps = new CfnPatchBaselineProps {
Name = "name",
// the properties below are optional
ApprovalRules = new RuleGroupProperty {
PatchRules = new [] { new RuleProperty {
ApproveAfterDays = 123,
ApproveUntilDate = "approveUntilDate",
ComplianceLevel = "complianceLevel",
EnableNonSecurity = false,
PatchFilterGroup = new PatchFilterGroupProperty {
PatchFilters = new [] { new PatchFilterProperty {
Key = "key",
Values = new [] { "values" }
} }
}
} }
},
ApprovedPatches = new [] { "approvedPatches" },
ApprovedPatchesComplianceLevel = "approvedPatchesComplianceLevel",
ApprovedPatchesEnableNonSecurity = false,
DefaultBaseline = false,
Description = "description",
GlobalFilters = new PatchFilterGroupProperty {
PatchFilters = new [] { new PatchFilterProperty {
Key = "key",
Values = new [] { "values" }
} }
},
OperatingSystem = "operatingSystem",
PatchGroups = new [] { "patchGroups" },
RejectedPatches = new [] { "rejectedPatches" },
RejectedPatchesAction = "rejectedPatchesAction",
Sources = new [] { new PatchSourceProperty {
Configuration = "configuration",
Name = "name",
Products = new [] { "products" }
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnPatchBaselineProps() |
Properties
ApprovalRules | A set of rules used to include patches in the baseline. |
ApprovedPatches | A list of explicitly approved patches for the baseline. |
ApprovedPatchesComplianceLevel | Defines the compliance level for approved patches. |
ApprovedPatchesEnableNonSecurity | Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. |
DefaultBaseline | Set the baseline as default baseline. |
Description | A description of the patch baseline. |
GlobalFilters | A set of global filters used to include patches in the baseline. |
Name | The name of the patch baseline. |
OperatingSystem | Defines the operating system the patch baseline applies to. |
PatchGroups | The name of the patch group to be registered with the patch baseline. |
RejectedPatches | A list of explicitly rejected patches for the baseline. |
RejectedPatchesAction | The action for Patch Manager to take on patches included in the |
Sources | Information about the patches to use to update the managed nodes, including target operating systems and source repositories. |
Tags | Optional metadata that you assign to a resource. |
Constructors
CfnPatchBaselineProps()
public CfnPatchBaselineProps()
Properties
ApprovalRules
A set of rules used to include patches in the baseline.
public object ApprovalRules { get; set; }
Property Value
System.Object
Remarks
ApprovedPatches
A list of explicitly approved patches for the baseline.
public string[] ApprovedPatches { get; set; }
Property Value
System.String[]
Remarks
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 .
ApprovedPatchesComplianceLevel
Defines the compliance level for approved patches.
public string ApprovedPatchesComplianceLevel { get; set; }
Property Value
System.String
Remarks
When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is UNSPECIFIED
.
Default: - "UNSPECIFIED"
ApprovedPatchesEnableNonSecurity
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.
public object ApprovedPatchesEnableNonSecurity { get; set; }
Property Value
System.Object
Remarks
The default value is false
. Applies to Linux managed nodes only.
Default: - false
DefaultBaseline
Set the baseline as default baseline.
public object DefaultBaseline { get; set; }
Property Value
System.Object
Remarks
Only registering to default patch baseline is allowed.
Default: - false
Description
A description of the patch baseline.
public string Description { get; set; }
Property Value
System.String
Remarks
GlobalFilters
A set of global filters used to include patches in the baseline.
public object GlobalFilters { get; set; }
Property Value
System.Object
Remarks
Name
The name of the patch baseline.
public string Name { get; set; }
Property Value
System.String
Remarks
OperatingSystem
Defines the operating system the patch baseline applies to.
public string OperatingSystem { get; set; }
Property Value
System.String
Remarks
The default value is WINDOWS
.
Default: - "WINDOWS"
PatchGroups
The name of the patch group to be registered with the patch baseline.
public string[] PatchGroups { get; set; }
Property Value
System.String[]
Remarks
RejectedPatches
A list of explicitly rejected patches for the baseline.
public string[] RejectedPatches { get; set; }
Property Value
System.String[]
Remarks
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 .
RejectedPatchesAction
The action for Patch Manager to take on patches included in the RejectedPackages
list.
public string RejectedPatchesAction { get; set; }
Property Value
System.String
Remarks
Default: - "ALLOW_AS_DEPENDENCY"
Sources
Information about the patches to use to update the managed nodes, including target operating systems and source repositories.
public object Sources { get; set; }
Property Value
System.Object
Remarks
Applies to Linux managed nodes only.
Tags
Optional metadata that you assign to a resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
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.