AWS Native is in preview. AWS Classic is fully supported.
aws-native.ssm.getPatchBaseline
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::SSM::PatchBaseline
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(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPatchBaselineResult
def get_patch_baseline_output(id: 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-native:ssm:getPatchBaseline
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of the patch baseline.
- Id string
- The ID of the patch baseline.
- id String
- The ID of the patch baseline.
- id string
- The ID of the patch baseline.
- id str
- The ID of the patch baseline.
- id String
- The ID of the patch baseline.
getPatchBaseline Result
The following output properties are available:
- Approval
Rules Pulumi.Aws Native. Ssm. Outputs. Patch Baseline Rule Group - A set of rules used to include patches in the baseline.
- Approved
Patches List<string> - A list of explicitly approved patches for the baseline.
- Approved
Patches Pulumi.Compliance Level Aws Native. Ssm. Patch Baseline Approved Patches Compliance Level - Defines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. The default value is UNSPECIFIED.
- Approved
Patches boolEnable Non Security - Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. The default value is 'false'. Applies to Linux instances only.
- Default
Baseline bool - Set the baseline as default baseline. Only registering to default patch baseline is allowed.
- Description string
- The description of the patch baseline.
- Global
Filters Pulumi.Aws Native. Ssm. Outputs. Patch Baseline Patch Filter Group - A set of global filters used to include patches in the baseline.
- Id string
- The ID of the patch baseline.
- Name string
- The name of the patch baseline.
- Patch
Groups List<string> - PatchGroups is used to associate instances with a specific patch baseline
- Rejected
Patches List<string> - A list of explicitly rejected patches for the baseline.
- Rejected
Patches Pulumi.Action Aws Native. Ssm. Patch Baseline Rejected Patches Action - The action for Patch Manager to take on patches included in the RejectedPackages list.
- Sources
List<Pulumi.
Aws Native. Ssm. Outputs. Patch Baseline Patch Source> - Information about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
- List<Pulumi.
Aws Native. Outputs. Tag> - Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways.
- Approval
Rules PatchBaseline Rule Group - A set of rules used to include patches in the baseline.
- Approved
Patches []string - A list of explicitly approved patches for the baseline.
- Approved
Patches PatchCompliance Level Baseline Approved Patches Compliance Level - Defines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. The default value is UNSPECIFIED.
- Approved
Patches boolEnable Non Security - Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. The default value is 'false'. Applies to Linux instances only.
- Default
Baseline bool - Set the baseline as default baseline. Only registering to default patch baseline is allowed.
- Description string
- The description of the patch baseline.
- Global
Filters PatchBaseline Patch Filter Group - A set of global filters used to include patches in the baseline.
- Id string
- The ID of the patch baseline.
- Name string
- The name of the patch baseline.
- Patch
Groups []string - PatchGroups is used to associate instances with a specific patch baseline
- Rejected
Patches []string - A list of explicitly rejected patches for the baseline.
- Rejected
Patches PatchAction Baseline Rejected Patches Action - The action for Patch Manager to take on patches included in the RejectedPackages list.
- Sources
[]Patch
Baseline Patch Source - Information about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
- Tag
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways.
- approval
Rules PatchBaseline Rule Group - A set of rules used to include patches in the baseline.
- approved
Patches List<String> - A list of explicitly approved patches for the baseline.
- approved
Patches PatchCompliance Level Baseline Approved Patches Compliance Level - Defines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. The default value is UNSPECIFIED.
- approved
Patches BooleanEnable Non Security - Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. The default value is 'false'. Applies to Linux instances only.
- default
Baseline Boolean - Set the baseline as default baseline. Only registering to default patch baseline is allowed.
- description String
- The description of the patch baseline.
- global
Filters PatchBaseline Patch Filter Group - A set of global filters used to include patches in the baseline.
- id String
- The ID of the patch baseline.
- name String
- The name of the patch baseline.
- patch
Groups List<String> - PatchGroups is used to associate instances with a specific patch baseline
- rejected
Patches List<String> - A list of explicitly rejected patches for the baseline.
- rejected
Patches PatchAction Baseline Rejected Patches Action - The action for Patch Manager to take on patches included in the RejectedPackages list.
- sources
List<Patch
Baseline Patch Source> - Information about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
- List<Tag>
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways.
- approval
Rules PatchBaseline Rule Group - A set of rules used to include patches in the baseline.
- approved
Patches string[] - A list of explicitly approved patches for the baseline.
- approved
Patches PatchCompliance Level Baseline Approved Patches Compliance Level - Defines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. The default value is UNSPECIFIED.
- approved
Patches booleanEnable Non Security - Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. The default value is 'false'. Applies to Linux instances only.
- default
Baseline boolean - Set the baseline as default baseline. Only registering to default patch baseline is allowed.
- description string
- The description of the patch baseline.
- global
Filters PatchBaseline Patch Filter Group - A set of global filters used to include patches in the baseline.
- id string
- The ID of the patch baseline.
- name string
- The name of the patch baseline.
- patch
Groups string[] - PatchGroups is used to associate instances with a specific patch baseline
- rejected
Patches string[] - A list of explicitly rejected patches for the baseline.
- rejected
Patches PatchAction Baseline Rejected Patches Action - The action for Patch Manager to take on patches included in the RejectedPackages list.
- sources
Patch
Baseline Patch Source[] - Information about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
- Tag[]
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways.
- approval_
rules PatchBaseline Rule Group - A set of rules used to include patches in the baseline.
- approved_
patches Sequence[str] - A list of explicitly approved patches for the baseline.
- approved_
patches_ Patchcompliance_ level Baseline Approved Patches Compliance Level - Defines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. The default value is UNSPECIFIED.
- approved_
patches_ boolenable_ non_ security - Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. The default value is 'false'. Applies to Linux instances only.
- default_
baseline bool - Set the baseline as default baseline. Only registering to default patch baseline is allowed.
- description str
- The description of the patch baseline.
- global_
filters PatchBaseline Patch Filter Group - A set of global filters used to include patches in the baseline.
- id str
- The ID of the patch baseline.
- name str
- The name of the patch baseline.
- patch_
groups Sequence[str] - PatchGroups is used to associate instances with a specific patch baseline
- rejected_
patches Sequence[str] - A list of explicitly rejected patches for the baseline.
- rejected_
patches_ Patchaction Baseline Rejected Patches Action - The action for Patch Manager to take on patches included in the RejectedPackages list.
- sources
Sequence[Patch
Baseline Patch Source] - Information about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
- Sequence[root_Tag]
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways.
- approval
Rules Property Map - A set of rules used to include patches in the baseline.
- approved
Patches List<String> - A list of explicitly approved patches for the baseline.
- approved
Patches "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFORMATIONAL" | "UNSPECIFIED"Compliance Level - Defines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. The default value is UNSPECIFIED.
- approved
Patches BooleanEnable Non Security - Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. The default value is 'false'. Applies to Linux instances only.
- default
Baseline Boolean - Set the baseline as default baseline. Only registering to default patch baseline is allowed.
- description String
- The description of the patch baseline.
- global
Filters Property Map - A set of global filters used to include patches in the baseline.
- id String
- The ID of the patch baseline.
- name String
- The name of the patch baseline.
- patch
Groups List<String> - PatchGroups is used to associate instances with a specific patch baseline
- rejected
Patches List<String> - A list of explicitly rejected patches for the baseline.
- rejected
Patches "ALLOW_AS_DEPENDENCY" | "BLOCK"Action - The action for Patch Manager to take on patches included in the RejectedPackages list.
- sources List<Property Map>
- Information about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
- List<Property Map>
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways.
Supporting Types
PatchBaselineApprovedPatchesComplianceLevel
PatchBaselinePatchFilter
- Key
Pulumi.
Aws Native. Ssm. Patch Baseline Patch Filter Key The key for the filter.
For information about valid keys, see PatchFilter in the AWS Systems Manager API Reference .
- Values List<string>
The value for the filter key.
For information about valid values for each key based on operating system type, see PatchFilter in the AWS Systems Manager API Reference .
- Key
Patch
Baseline Patch Filter Key The key for the filter.
For information about valid keys, see PatchFilter in the AWS Systems Manager API Reference .
- Values []string
The value for the filter key.
For information about valid values for each key based on operating system type, see PatchFilter in the AWS Systems Manager API Reference .
- key
Patch
Baseline Patch Filter Key The key for the filter.
For information about valid keys, see PatchFilter in the AWS Systems Manager API Reference .
- values List<String>
The value for the filter key.
For information about valid values for each key based on operating system type, see PatchFilter in the AWS Systems Manager API Reference .
- key
Patch
Baseline Patch Filter Key The key for the filter.
For information about valid keys, see PatchFilter in the AWS Systems Manager API Reference .
- values string[]
The value for the filter key.
For information about valid values for each key based on operating system type, see PatchFilter in the AWS Systems Manager API Reference .
- key
Patch
Baseline Patch Filter Key The key for the filter.
For information about valid keys, see PatchFilter in the AWS Systems Manager API Reference .
- values Sequence[str]
The value for the filter key.
For information about valid values for each key based on operating system type, see PatchFilter in the AWS Systems Manager API Reference .
- key "ADVISORY_ID" | "ARCH" | "BUGZILLA_ID" | "CLASSIFICATION" | "CVE_ID" | "EPOCH" | "MSRC_SEVERITY" | "NAME" | "PATCH_ID" | "PATCH_SET" | "PRIORITY" | "PRODUCT" | "PRODUCT_FAMILY" | "RELEASE" | "REPOSITORY" | "SECTION" | "SECURITY" | "SEVERITY" | "VERSION"
The key for the filter.
For information about valid keys, see PatchFilter in the AWS Systems Manager API Reference .
- values List<String>
The value for the filter key.
For information about valid values for each key based on operating system type, see PatchFilter in the AWS Systems Manager API Reference .
PatchBaselinePatchFilterGroup
- Patch
Filters List<Pulumi.Aws Native. Ssm. Inputs. Patch Baseline Patch Filter> - The set of patch filters that make up the group.
- Patch
Filters []PatchBaseline Patch Filter - The set of patch filters that make up the group.
- patch
Filters List<PatchBaseline Patch Filter> - The set of patch filters that make up the group.
- patch
Filters PatchBaseline Patch Filter[] - The set of patch filters that make up the group.
- patch_
filters Sequence[PatchBaseline Patch Filter] - The set of patch filters that make up the group.
- patch
Filters List<Property Map> - The set of patch filters that make up the group.
PatchBaselinePatchFilterKey
PatchBaselinePatchSource
- Configuration string
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) .
- Name string
- The name specified to identify the patch source.
- Products List<string>
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter in the AWS Systems Manager API Reference .
- Configuration string
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) .
- Name string
- The name specified to identify the patch source.
- Products []string
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter in the AWS Systems Manager API Reference .
- configuration String
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) .
- name String
- The name specified to identify the patch source.
- products List<String>
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter in the AWS Systems Manager API Reference .
- configuration string
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) .
- name string
- The name specified to identify the patch source.
- products string[]
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter in the AWS Systems Manager API Reference .
- configuration str
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) .
- name str
- The name specified to identify the patch source.
- products Sequence[str]
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter in the AWS Systems Manager API Reference .
- configuration String
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) .
- name String
- The name specified to identify the patch source.
- products List<String>
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter in the AWS Systems Manager API Reference .
PatchBaselineRejectedPatchesAction
PatchBaselineRule
- Approve
After intDays The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of
7
means that patches are approved seven days after they are released.You must specify a value for
ApproveAfterDays
.Exception: Not supported on Debian Server or Ubuntu Server.
- Approve
Until stringDate The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format
YYYY-MM-DD
. For example,2021-12-31
.- Compliance
Level Pulumi.Aws Native. Ssm. Patch Baseline Rule Compliance Level - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following:
UNSPECIFIED
,CRITICAL
,HIGH
,MEDIUM
,LOW
, andINFORMATIONAL
. - Enable
Non boolSecurity - For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is
false
. Applies to Linux managed nodes only. - Patch
Filter Pulumi.Group Aws Native. Ssm. Inputs. Patch Baseline Patch Filter Group - The patch filter group that defines the criteria for the rule.
- Approve
After intDays The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of
7
means that patches are approved seven days after they are released.You must specify a value for
ApproveAfterDays
.Exception: Not supported on Debian Server or Ubuntu Server.
- Approve
Until stringDate The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format
YYYY-MM-DD
. For example,2021-12-31
.- Compliance
Level PatchBaseline Rule Compliance Level - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following:
UNSPECIFIED
,CRITICAL
,HIGH
,MEDIUM
,LOW
, andINFORMATIONAL
. - Enable
Non boolSecurity - For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is
false
. Applies to Linux managed nodes only. - Patch
Filter PatchGroup Baseline Patch Filter Group - The patch filter group that defines the criteria for the rule.
- approve
After IntegerDays The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of
7
means that patches are approved seven days after they are released.You must specify a value for
ApproveAfterDays
.Exception: Not supported on Debian Server or Ubuntu Server.
- approve
Until StringDate The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format
YYYY-MM-DD
. For example,2021-12-31
.- compliance
Level PatchBaseline Rule Compliance Level - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following:
UNSPECIFIED
,CRITICAL
,HIGH
,MEDIUM
,LOW
, andINFORMATIONAL
. - enable
Non BooleanSecurity - For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is
false
. Applies to Linux managed nodes only. - patch
Filter PatchGroup Baseline Patch Filter Group - The patch filter group that defines the criteria for the rule.
- approve
After numberDays The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of
7
means that patches are approved seven days after they are released.You must specify a value for
ApproveAfterDays
.Exception: Not supported on Debian Server or Ubuntu Server.
- approve
Until stringDate The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format
YYYY-MM-DD
. For example,2021-12-31
.- compliance
Level PatchBaseline Rule Compliance Level - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following:
UNSPECIFIED
,CRITICAL
,HIGH
,MEDIUM
,LOW
, andINFORMATIONAL
. - enable
Non booleanSecurity - For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is
false
. Applies to Linux managed nodes only. - patch
Filter PatchGroup Baseline Patch Filter Group - The patch filter group that defines the criteria for the rule.
- approve_
after_ intdays The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of
7
means that patches are approved seven days after they are released.You must specify a value for
ApproveAfterDays
.Exception: Not supported on Debian Server or Ubuntu Server.
- approve_
until_ strdate The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format
YYYY-MM-DD
. For example,2021-12-31
.- compliance_
level PatchBaseline Rule Compliance Level - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following:
UNSPECIFIED
,CRITICAL
,HIGH
,MEDIUM
,LOW
, andINFORMATIONAL
. - enable_
non_ boolsecurity - For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is
false
. Applies to Linux managed nodes only. - patch_
filter_ Patchgroup Baseline Patch Filter Group - The patch filter group that defines the criteria for the rule.
- approve
After NumberDays The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of
7
means that patches are approved seven days after they are released.You must specify a value for
ApproveAfterDays
.Exception: Not supported on Debian Server or Ubuntu Server.
- approve
Until StringDate The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format
YYYY-MM-DD
. For example,2021-12-31
.- compliance
Level "CRITICAL" | "HIGH" | "INFORMATIONAL" | "LOW" | "MEDIUM" | "UNSPECIFIED" - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following:
UNSPECIFIED
,CRITICAL
,HIGH
,MEDIUM
,LOW
, andINFORMATIONAL
. - enable
Non BooleanSecurity - For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is
false
. Applies to Linux managed nodes only. - patch
Filter Property MapGroup - The patch filter group that defines the criteria for the rule.
PatchBaselineRuleComplianceLevel
PatchBaselineRuleGroup
- Patch
Rules List<Pulumi.Aws Native. Ssm. Inputs. Patch Baseline Rule> - The rules that make up the rule group.
- Patch
Rules []PatchBaseline Rule - The rules that make up the rule group.
- patch
Rules List<PatchBaseline Rule> - The rules that make up the rule group.
- patch
Rules PatchBaseline Rule[] - The rules that make up the rule group.
- patch_
rules Sequence[PatchBaseline Rule] - The rules that make up the rule group.
- patch
Rules List<Property Map> - The rules that make up the rule group.
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.