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
LookupPatchBaselinein 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).- Default
Baseline bool Filters the results against the baselines default_baseline field.
- Name
Prefix string Filter results by the baseline name prefix.
- Operating
System string The specified OS for the baseline.
- Owner string
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 string Filter results by the baseline name prefix.
- Operating
System string The specified OS for the baseline.
- owner string
The owner of the baseline. Valid values:
All,AWS,Self(the current account).- default
Baseline boolean Filters the results against the baselines default_baseline field.
- name
Prefix string Filter results by the baseline name prefix.
- operating
System 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
- Default
Baseline bool - Name
Prefix string - Operating
System 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
- Default
Baseline bool - Name
Prefix string - Operating
System 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
- default
Baseline boolean - name
Prefix string - operating
System 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
awsTerraform Provider.