getPatchBaseline

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

Example Usage

To retrieve a baseline provided by AWS:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssm.SsmFunctions;
import com.pulumi.aws.ssm.inputs.GetPatchBaselineArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var centos = SsmFunctions.getPatchBaseline(GetPatchBaselineArgs.builder()
.namePrefix("AWS-")
.operatingSystem("CENTOS")
.owner("AWS")
.build());
}
}

Return

A collection of values returned by getPatchBaseline.

Parameters

argument

A collection of arguments for invoking getPatchBaseline.


suspend fun getPatchBaseline(defaultBaseline: Boolean? = null, namePrefix: String? = null, operatingSystem: String? = null, owner: String): GetPatchBaselineResult

Return

A collection of values returned by getPatchBaseline.

Parameters

defaultBaseline

Filters the results against the baselines default_baseline field.

namePrefix

Filter results by the baseline name prefix.

operatingSystem

Specified OS for the baseline. Valid values: AMAZON_LINUX, AMAZON_LINUX_2, UBUNTU, REDHAT_ENTERPRISE_LINUX, SUSE, CENTOS, ORACLE_LINUX, DEBIAN, MACOS, RASPBIAN and ROCKY_LINUX.

owner

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

See also


Return

A collection of values returned by getPatchBaseline.

Parameters

argument

Builder for com.pulumi.aws.ssm.kotlin.inputs.GetPatchBaselinePlainArgs.

See also