AWS Classic
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).- 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 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.
- 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.
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 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
- 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
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.