Class CfnPatchBaseline
The AWS::SSM::PatchBaseline
resource defines the basic information for an AWS Systems Manager patch baseline.
Inherited Members
Namespace: Amazon.CDK.AWS.SSM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPatchBaseline : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnPatchBaseline
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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 .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html
CloudformationResource: AWS::SSM::PatchBaseline
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 cfnPatchBaseline = new CfnPatchBaseline(this, "MyCfnPatchBaseline", 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
CfnPatchBaseline(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPatchBaseline(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnPatchBaseline(Construct, String, ICfnPatchBaselineProps) |
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. |
AttrId | The ID of the patch baseline. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | Optional metadata that you assign to a resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPatchBaseline(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPatchBaseline(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPatchBaseline(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPatchBaseline(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnPatchBaseline(Construct, String, ICfnPatchBaselineProps)
public CfnPatchBaseline(Construct scope, string id, ICfnPatchBaselineProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnPatchBaselineProps
Resource properties.
Properties
ApprovalRules
A set of rules used to include patches in the baseline.
public virtual object ApprovalRules { get; set; }
Property Value
System.Object
ApprovedPatches
A list of explicitly approved patches for the baseline.
public virtual string[] ApprovedPatches { get; set; }
Property Value
System.String[]
ApprovedPatchesComplianceLevel
Defines the compliance level for approved patches.
public virtual string ApprovedPatchesComplianceLevel { get; set; }
Property Value
System.String
ApprovedPatchesEnableNonSecurity
Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.
public virtual object ApprovedPatchesEnableNonSecurity { get; set; }
Property Value
System.Object
AttrId
The ID of the patch baseline.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DefaultBaseline
Set the baseline as default baseline.
public virtual object DefaultBaseline { get; set; }
Property Value
System.Object
Description
A description of the patch baseline.
public virtual string Description { get; set; }
Property Value
System.String
GlobalFilters
A set of global filters used to include patches in the baseline.
public virtual object GlobalFilters { get; set; }
Property Value
System.Object
Name
The name of the patch baseline.
public virtual string Name { get; set; }
Property Value
System.String
OperatingSystem
Defines the operating system the patch baseline applies to.
public virtual string OperatingSystem { get; set; }
Property Value
System.String
PatchGroups
The name of the patch group to be registered with the patch baseline.
public virtual string[] PatchGroups { get; set; }
Property Value
System.String[]
RejectedPatches
A list of explicitly rejected patches for the baseline.
public virtual string[] RejectedPatches { get; set; }
Property Value
System.String[]
RejectedPatchesAction
The action for Patch Manager to take on patches included in the RejectedPackages
list.
public virtual string RejectedPatchesAction { get; set; }
Property Value
System.String
Sources
Information about the patches to use to update the managed nodes, including target operating systems and source repositories.
public virtual object Sources { get; set; }
Property Value
System.Object
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
Optional metadata that you assign to a resource.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>