Show / Hide Table of Contents

Class GetPatchBaseline

Inheritance
System.Object
GetPatchBaseline
Inherited Members
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 static class GetPatchBaseline

Methods

View Source

InvokeAsync(GetPatchBaselineArgs, InvokeOptions)

Provides an SSM Patch Baseline data source. Useful if you wish to reuse the default baselines provided.

{{% examples %}}

Example Usage

{{% example %}}

To retrieve a baseline provided by AWS:

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var centos = Output.Create(Aws.Ssm.GetPatchBaseline.InvokeAsync(new Aws.Ssm.GetPatchBaselineArgs
    {
        NamePrefix = "AWS-",
        OperatingSystem = "CENTOS",
        Owner = "AWS",
    }));
}

}

To retrieve a baseline on your account:

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var defaultCustom = Output.Create(Aws.Ssm.GetPatchBaseline.InvokeAsync(new Aws.Ssm.GetPatchBaselineArgs
    {
        DefaultBaseline = true,
        NamePrefix = "MyCustomBaseline",
        OperatingSystem = "WINDOWS",
        Owner = "Self",
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetPatchBaselineResult> InvokeAsync(GetPatchBaselineArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetPatchBaselineArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetPatchBaselineResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.