Show / Hide Table of Contents

Class PatchBaseline

Provides an SSM Patch Baseline resource

NOTE on Patch Baselines: The approved_patches and approval_rule are 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",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
PatchBaseline
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ssm
Assembly: Pulumi.Aws.dll
Syntax
public class PatchBaseline : CustomResource

Constructors

View Source

PatchBaseline(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 Source

ApprovalRules

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>>
View Source

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>>
View Source

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>
View Source

Description

The description of the patch baseline.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

Name

The name of the patch baseline.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

RejectedPatches

A list of rejected patches.

Declaration
public Output<ImmutableArray<string>> RejectedPatches { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.