Skip to content
v2.278.0

PatchFilterProperty Struct ​

The PatchFilter property type defines a patch filter for an AWS Systems Manager patch baseline.

The PatchFilters property of the PatchFilterGroup property type contains a list of PatchFilter property types.

You can view lists of valid values for the patch properties by running the DescribePatchProperties command. For more information, see DescribePatchProperties in the AWS Systems Manager API Reference .

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 patchFilterProperty: ssm.CfnPatchBaseline.PatchFilterProperty = {
  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

patch_filter_property = 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.*;

PatchFilterProperty patchFilterProperty = PatchFilterProperty.builder()
        .key("key")
        .values(List.of("values"))
        .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 patchFilterProperty = 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"

patchFilterProperty := &PatchFilterProperty{
	Key: jsii.String("key"),
	Values: []*string{
		jsii.String("values"),
	},
}

Properties ​

keyoptionalstringkeyoptionalstrkeyoptionalStringKeyoptionalstringKeyoptional*string #
The key for the filter.

For information about valid keys, see PatchFilter in the AWS Systems Manager API Reference .

valuesoptionalstring[]valuesoptionaltyping.List[str]valuesoptionalList<String>Valuesoptionalstring[]Valuesoptional*[]*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 .