Skip to content
v2.278.0

RuleGroupProperty Struct ​

The RuleGroup property type specifies a set of rules that define the approval rules for an AWS Systems Manager patch baseline.

RuleGroup is the property type for the ApprovalRules property of the AWS::SSM::PatchBaseline resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const ruleGroupProperty: ssm.CfnPatchBaseline.RuleGroupProperty = {
  patchRules: [{
    approveAfterDays: 123,
    approveUntilDate: 'approveUntilDate',
    complianceLevel: 'complianceLevel',
    enableNonSecurity: false,
    patchFilterGroup: {
      patchFilters: [{
        key: 'key',
        values: ['values'],
      }],
    },
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ssm as ssm

rule_group_property = 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"]
            )]
        )
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;

RuleGroupProperty ruleGroupProperty = RuleGroupProperty.builder()
        .patchRules(List.of(RuleProperty.builder()
                .approveAfterDays(123)
                .approveUntilDate("approveUntilDate")
                .complianceLevel("complianceLevel")
                .enableNonSecurity(false)
                .patchFilterGroup(PatchFilterGroupProperty.builder()
                        .patchFilters(List.of(PatchFilterProperty.builder()
                                .key("key")
                                .values(List.of("values"))
                                .build()))
                        .build())
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SSM;

var ruleGroupProperty = new RuleGroupProperty {
    PatchRules = new [] { new RuleProperty {
        ApproveAfterDays = 123,
        ApproveUntilDate = "approveUntilDate",
        ComplianceLevel = "complianceLevel",
        EnableNonSecurity = false,
        PatchFilterGroup = new PatchFilterGroupProperty {
            PatchFilters = new [] { new PatchFilterProperty {
                Key = "key",
                Values = new [] { "values" }
            } }
        }
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ruleGroupProperty := &RuleGroupProperty{
	PatchRules: []interface{}{
		&RuleProperty{
			ApproveAfterDays: jsii.Number(123),
			ApproveUntilDate: jsii.String("approveUntilDate"),
			ComplianceLevel: jsii.String("complianceLevel"),
			EnableNonSecurity: jsii.Boolean(false),
			PatchFilterGroup: &PatchFilterGroupProperty{
				PatchFilters: []interface{}{
					&PatchFilterProperty{
						Key: jsii.String("key"),
						Values: []*string{
							jsii.String("values"),
						},
					},
				},
			},
		},
	},
}

Properties ​

patchRulesoptionalIResolvable | IResolvable | CfnPatchBaseline.RuleProperty[]patch_rulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleProperty]]]patchRulesoptionalIResolvablePatchRulesoptionalIResolvablePatchRulesoptionalinterface{} #
The rules that make up the rule group.