GetPatchBaseline

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

Example Usage

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",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ssm"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "AWS-"
        opt1 := "CENTOS"
        _, err := ssm.LookupPatchBaseline(ctx, &ssm.LookupPatchBaselineArgs{
            NamePrefix:      &opt0,
            OperatingSystem: &opt1,
            Owner:           "AWS",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

centos = aws.ssm.get_patch_baseline(name_prefix="AWS-",
    operating_system="CENTOS",
    owner="AWS")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const centos = pulumi.output(aws.ssm.getPatchBaseline({
    namePrefix: "AWS-",
    operatingSystem: "CENTOS",
    owner: "AWS",
}, { async: true }));

Using GetPatchBaseline

function getPatchBaseline(args: GetPatchBaselineArgs, opts?: InvokeOptions): Promise<GetPatchBaselineResult>
function  get_patch_baseline(default_baseline=None, name_prefix=None, operating_system=None, owner=None, opts=None)
func LookupPatchBaseline(ctx *Context, args *LookupPatchBaselineArgs, opts ...InvokeOption) (*LookupPatchBaselineResult, error)

Note: This function is named LookupPatchBaseline in the Go SDK.

public static class GetPatchBaseline {
    public static Task<GetPatchBaselineResult> InvokeAsync(GetPatchBaselineArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Owner string

The owner of the baseline. Valid values: All, AWS, Self (the current account).

DefaultBaseline bool

Filters the results against the baselines default_baseline field.

NamePrefix string

Filter results by the baseline name prefix.

OperatingSystem string

The specified OS for the baseline.

Owner string

The owner of the baseline. Valid values: All, AWS, Self (the current account).

DefaultBaseline bool

Filters the results against the baselines default_baseline field.

NamePrefix string

Filter results by the baseline name prefix.

OperatingSystem string

The specified OS for the baseline.

owner string

The owner of the baseline. Valid values: All, AWS, Self (the current account).

defaultBaseline boolean

Filters the results against the baselines default_baseline field.

namePrefix string

Filter results by the baseline name prefix.

operatingSystem string

The specified OS for the baseline.

owner str

The owner of the baseline. Valid values: All, AWS, Self (the current account).

default_baseline bool

Filters the results against the baselines default_baseline field.

name_prefix str

Filter results by the baseline name prefix.

operating_system str

The specified OS for the baseline.

GetPatchBaseline Result

The following output properties are available:

Description string

The description of the baseline.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the baseline.

Owner string
DefaultBaseline bool
NamePrefix string
OperatingSystem string
Description string

The description of the baseline.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the baseline.

Owner string
DefaultBaseline bool
NamePrefix string
OperatingSystem string
description string

The description of the baseline.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the baseline.

owner string
defaultBaseline boolean
namePrefix string
operatingSystem string
description str

The description of the baseline.

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the baseline.

owner str
default_baseline bool
name_prefix str
operating_system str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.