CfnPatchBaselineProps

class aws_cdk.aws_ssm.CfnPatchBaselineProps(*, approval_rules=None, approved_patches=None, approved_patches_compliance_level=None, approved_patches_enable_non_security=None, description=None, global_filters=None, name, operating_system=None, patch_groups=None, rejected_patches=None, rejected_patches_action=None, sources=None, tags=None)

Bases: object

Properties for defining a AWS::SSM::PatchBaseline.

Parameters
  • approval_rules (Union[IResolvable, RuleGroupProperty, None]) – AWS::SSM::PatchBaseline.ApprovalRules.

  • approved_patches (Optional[Sequence[str]]) – AWS::SSM::PatchBaseline.ApprovedPatches.

  • approved_patches_compliance_level (Optional[str]) – AWS::SSM::PatchBaseline.ApprovedPatchesComplianceLevel.

  • approved_patches_enable_non_security (Union[bool, IResolvable, None]) – AWS::SSM::PatchBaseline.ApprovedPatchesEnableNonSecurity.

  • description (Optional[str]) – AWS::SSM::PatchBaseline.Description.

  • global_filters (Union[IResolvable, PatchFilterGroupProperty, None]) – AWS::SSM::PatchBaseline.GlobalFilters.

  • name (str) – AWS::SSM::PatchBaseline.Name.

  • operating_system (Optional[str]) – AWS::SSM::PatchBaseline.OperatingSystem.

  • patch_groups (Optional[Sequence[str]]) – AWS::SSM::PatchBaseline.PatchGroups.

  • rejected_patches (Optional[Sequence[str]]) – AWS::SSM::PatchBaseline.RejectedPatches.

  • rejected_patches_action (Optional[str]) – AWS::SSM::PatchBaseline.RejectedPatchesAction.

  • sources (Union[IResolvable, Sequence[Union[IResolvable, PatchSourceProperty]], None]) – AWS::SSM::PatchBaseline.Sources.

  • tags (Optional[Sequence[CfnTag]]) – AWS::SSM::PatchBaseline.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ssm as ssm

cfn_patch_baseline_props = ssm.CfnPatchBaselineProps(
    name="name",

    # the properties below are optional
    approval_rules=ssm.CfnPatchBaseline.RuleGroupProperty(
        patch_rules=[ssm.CfnPatchBaseline.RuleProperty(
            approve_after_days=123,
            approve_until_date="approveUntilDate",
            compliance_level="complianceLevel",
            enable_non_security=False,
            patch_filter_group=ssm.CfnPatchBaseline.PatchFilterGroupProperty(
                patch_filters=[ssm.CfnPatchBaseline.PatchFilterProperty(
                    key="key",
                    values=["values"]
                )]
            )
        )]
    ),
    approved_patches=["approvedPatches"],
    approved_patches_compliance_level="approvedPatchesComplianceLevel",
    approved_patches_enable_non_security=False,
    description="description",
    global_filters=ssm.CfnPatchBaseline.PatchFilterGroupProperty(
        patch_filters=[ssm.CfnPatchBaseline.PatchFilterProperty(
            key="key",
            values=["values"]
        )]
    ),
    operating_system="operatingSystem",
    patch_groups=["patchGroups"],
    rejected_patches=["rejectedPatches"],
    rejected_patches_action="rejectedPatchesAction",
    sources=[ssm.CfnPatchBaseline.PatchSourceProperty(
        configuration="configuration",
        name="name",
        products=["products"]
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

approval_rules

AWS::SSM::PatchBaseline.ApprovalRules.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-approvalrules

Return type

Union[IResolvable, RuleGroupProperty, None]

approved_patches

AWS::SSM::PatchBaseline.ApprovedPatches.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-approvedpatches

Return type

Optional[List[str]]

approved_patches_compliance_level

AWS::SSM::PatchBaseline.ApprovedPatchesComplianceLevel.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-approvedpatchescompliancelevel

Return type

Optional[str]

approved_patches_enable_non_security

AWS::SSM::PatchBaseline.ApprovedPatchesEnableNonSecurity.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-approvedpatchesenablenonsecurity

Return type

Union[bool, IResolvable, None]

description

AWS::SSM::PatchBaseline.Description.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-description

Return type

Optional[str]

global_filters

AWS::SSM::PatchBaseline.GlobalFilters.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-globalfilters

Return type

Union[IResolvable, PatchFilterGroupProperty, None]

name

AWS::SSM::PatchBaseline.Name.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-name

Return type

str

operating_system

AWS::SSM::PatchBaseline.OperatingSystem.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-operatingsystem

Return type

Optional[str]

patch_groups

AWS::SSM::PatchBaseline.PatchGroups.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-patchgroups

Return type

Optional[List[str]]

rejected_patches

AWS::SSM::PatchBaseline.RejectedPatches.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-rejectedpatches

Return type

Optional[List[str]]

rejected_patches_action

AWS::SSM::PatchBaseline.RejectedPatchesAction.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-rejectedpatchesaction

Return type

Optional[str]

sources

AWS::SSM::PatchBaseline.Sources.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-sources

Return type

Union[IResolvable, List[Union[IResolvable, PatchSourceProperty]], None]

tags

AWS::SSM::PatchBaseline.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-tags

Return type

Optional[List[CfnTag]]