Class PatchBaseline
Provides an SSM Patch Baseline resource
NOTE on Patch Baselines: The
approved_patchesandapproval_ruleare both marked as optional fields, but the Patch Baseline requires that at least one of them is specified.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var production = new Aws.Ssm.PatchBaseline("production", new Aws.Ssm.PatchBaselineArgs
{
ApprovedPatches =
{
"KB123456",
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ssm
Assembly: Pulumi.Aws.dll
Syntax
public class PatchBaseline : CustomResource
Constructors
View SourcePatchBaseline(String, PatchBaselineArgs, CustomResourceOptions)
Create a PatchBaseline resource with the given unique name, arguments, and options.
Declaration
public PatchBaseline(string name, PatchBaselineArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| PatchBaselineArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceApprovalRules
A set of rules used to include patches in the baseline. up to 10 approval rules can be specified. Each approval_rule block requires the fields documented below.
Declaration
public Output<ImmutableArray<PatchBaselineApprovalRule>> ApprovalRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<PatchBaselineApprovalRule>> |
ApprovedPatches
A list of explicitly approved patches for the baseline.
Declaration
public Output<ImmutableArray<string>> ApprovedPatches { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
ApprovedPatchesComplianceLevel
Defines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. Valid compliance levels include the following: CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED. The default value is UNSPECIFIED.
Declaration
public Output<string> ApprovedPatchesComplianceLevel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
The description of the patch baseline.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GlobalFilters
A set of global filters used to exclude patches from the baseline. Up to 4 global filters can be specified using Key/Value pairs. Valid Keys are PRODUCT | CLASSIFICATION | MSRC_SEVERITY | PATCH_ID.
Declaration
public Output<ImmutableArray<PatchBaselineGlobalFilter>> GlobalFilters { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<PatchBaselineGlobalFilter>> |
Name
The name of the patch baseline.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OperatingSystem
Defines the operating system the patch baseline applies to. Supported operating systems include WINDOWS, AMAZON_LINUX, AMAZON_LINUX_2, SUSE, UBUNTU, CENTOS, and REDHAT_ENTERPRISE_LINUX. The Default value is WINDOWS.
Declaration
public Output<string> OperatingSystem { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RejectedPatches
A list of rejected patches.
Declaration
public Output<ImmutableArray<string>> RejectedPatches { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, PatchBaselineState, CustomResourceOptions)
Get an existing PatchBaseline resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static PatchBaseline Get(string name, Input<string> id, PatchBaselineState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| PatchBaselineState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| PatchBaseline |