AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.4.0 published on Wednesday, May 4, 2022 by Pulumi

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/v5/go/aws/ssm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ssm.LookupPatchBaseline(ctx, &ssm.LookupPatchBaselineArgs{
			NamePrefix:      pulumi.StringRef("AWS-"),
			OperatingSystem: pulumi.StringRef("CENTOS"),
			Owner:           "AWS",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var centos = Output.of(SsmFunctions.getPatchBaseline(GetPatchBaselineArgs.builder()
            .namePrefix("AWS-")
            .operatingSystem("CENTOS")
            .owner("AWS")
            .build()));

        }
}
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",
}));
variables:
  centos:
    Fn::Invoke:
      Function: aws:ssm:getPatchBaseline
      Arguments:
        namePrefix: AWS-
        operatingSystem: CENTOS
        owner: AWS

Using getPatchBaseline

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPatchBaseline(args: GetPatchBaselineArgs, opts?: InvokeOptions): Promise<GetPatchBaselineResult>
function getPatchBaselineOutput(args: GetPatchBaselineOutputArgs, opts?: InvokeOptions): Output<GetPatchBaselineResult>
def get_patch_baseline(default_baseline: Optional[bool] = None,
                       name_prefix: Optional[str] = None,
                       operating_system: Optional[str] = None,
                       owner: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPatchBaselineResult
def get_patch_baseline_output(default_baseline: Optional[pulumi.Input[bool]] = None,
                       name_prefix: Optional[pulumi.Input[str]] = None,
                       operating_system: Optional[pulumi.Input[str]] = None,
                       owner: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPatchBaselineResult]
func LookupPatchBaseline(ctx *Context, args *LookupPatchBaselineArgs, opts ...InvokeOption) (*LookupPatchBaselineResult, error)
func LookupPatchBaselineOutput(ctx *Context, args *LookupPatchBaselineOutputArgs, opts ...InvokeOption) LookupPatchBaselineResultOutput

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

public static class GetPatchBaseline 
{
    public static Task<GetPatchBaselineResult> InvokeAsync(GetPatchBaselineArgs args, InvokeOptions? opts = null)
    public static Output<GetPatchBaselineResult> Invoke(GetPatchBaselineInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPatchBaselineResult> getPatchBaseline(GetPatchBaselineArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:ssm/getPatchBaseline:getPatchBaseline
  Arguments:
    # Arguments dictionary

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 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.

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.

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

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.