Skip to content
v2.278.0

PackageFilterProperty Struct ​

Contains information on the details of a package filter.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_inspectorv2 as inspectorv2 } from 'aws-cdk-lib';
const packageFilterProperty: inspectorv2.CfnFilter.PackageFilterProperty = {
  architecture: {
    comparison: 'comparison',
    value: 'value',
  },
  epoch: {
    lowerInclusive: 123,
    upperInclusive: 123,
  },
  filePath: {
    comparison: 'comparison',
    value: 'value',
  },
  name: {
    comparison: 'comparison',
    value: 'value',
  },
  release: {
    comparison: 'comparison',
    value: 'value',
  },
  sourceLambdaLayerArn: {
    comparison: 'comparison',
    value: 'value',
  },
  sourceLayerHash: {
    comparison: 'comparison',
    value: 'value',
  },
  version: {
    comparison: 'comparison',
    value: 'value',
  },
};
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_inspectorv2 as inspectorv2

package_filter_property = inspectorv2.CfnFilter.PackageFilterProperty(
    architecture=inspectorv2.CfnFilter.StringFilterProperty(
        comparison="comparison",
        value="value"
    ),
    epoch=inspectorv2.CfnFilter.NumberFilterProperty(
        lower_inclusive=123,
        upper_inclusive=123
    ),
    file_path=inspectorv2.CfnFilter.StringFilterProperty(
        comparison="comparison",
        value="value"
    ),
    name=inspectorv2.CfnFilter.StringFilterProperty(
        comparison="comparison",
        value="value"
    ),
    release=inspectorv2.CfnFilter.StringFilterProperty(
        comparison="comparison",
        value="value"
    ),
    source_lambda_layer_arn=inspectorv2.CfnFilter.StringFilterProperty(
        comparison="comparison",
        value="value"
    ),
    source_layer_hash=inspectorv2.CfnFilter.StringFilterProperty(
        comparison="comparison",
        value="value"
    ),
    version=inspectorv2.CfnFilter.StringFilterProperty(
        comparison="comparison",
        value="value"
    )
)
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.inspectorv2.*;

PackageFilterProperty packageFilterProperty = PackageFilterProperty.builder()
        .architecture(StringFilterProperty.builder()
                .comparison("comparison")
                .value("value")
                .build())
        .epoch(NumberFilterProperty.builder()
                .lowerInclusive(123)
                .upperInclusive(123)
                .build())
        .filePath(StringFilterProperty.builder()
                .comparison("comparison")
                .value("value")
                .build())
        .name(StringFilterProperty.builder()
                .comparison("comparison")
                .value("value")
                .build())
        .release(StringFilterProperty.builder()
                .comparison("comparison")
                .value("value")
                .build())
        .sourceLambdaLayerArn(StringFilterProperty.builder()
                .comparison("comparison")
                .value("value")
                .build())
        .sourceLayerHash(StringFilterProperty.builder()
                .comparison("comparison")
                .value("value")
                .build())
        .version(StringFilterProperty.builder()
                .comparison("comparison")
                .value("value")
                .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.InspectorV2;

var packageFilterProperty = new PackageFilterProperty {
    Architecture = new StringFilterProperty {
        Comparison = "comparison",
        Value = "value"
    },
    Epoch = new NumberFilterProperty {
        LowerInclusive = 123,
        UpperInclusive = 123
    },
    FilePath = new StringFilterProperty {
        Comparison = "comparison",
        Value = "value"
    },
    Name = new StringFilterProperty {
        Comparison = "comparison",
        Value = "value"
    },
    Release = new StringFilterProperty {
        Comparison = "comparison",
        Value = "value"
    },
    SourceLambdaLayerArn = new StringFilterProperty {
        Comparison = "comparison",
        Value = "value"
    },
    SourceLayerHash = new StringFilterProperty {
        Comparison = "comparison",
        Value = "value"
    },
    Version = new StringFilterProperty {
        Comparison = "comparison",
        Value = "value"
    }
};
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"

packageFilterProperty := &PackageFilterProperty{
	Architecture: &StringFilterProperty{
		Comparison: jsii.String("comparison"),
		Value: jsii.String("value"),
	},
	Epoch: &NumberFilterProperty{
		LowerInclusive: jsii.Number(123),
		UpperInclusive: jsii.Number(123),
	},
	FilePath: &StringFilterProperty{
		Comparison: jsii.String("comparison"),
		Value: jsii.String("value"),
	},
	Name: &StringFilterProperty{
		Comparison: jsii.String("comparison"),
		Value: jsii.String("value"),
	},
	Release: &StringFilterProperty{
		Comparison: jsii.String("comparison"),
		Value: jsii.String("value"),
	},
	SourceLambdaLayerArn: &StringFilterProperty{
		Comparison: jsii.String("comparison"),
		Value: jsii.String("value"),
	},
	SourceLayerHash: &StringFilterProperty{
		Comparison: jsii.String("comparison"),
		Value: jsii.String("value"),
	},
	Version: &StringFilterProperty{
		Comparison: jsii.String("comparison"),
		Value: jsii.String("value"),
	},
}

Properties ​

architectureoptionalIResolvable | CfnFilter.StringFilterPropertyarchitectureoptionaltyping.Union[IResolvable, StringFilterProperty]architectureoptionalIResolvableArchitectureoptionalIResolvableArchitectureoptionalinterface{} #
An object that contains details on the package architecture type to filter on.
epochoptionalIResolvable | CfnFilter.NumberFilterPropertyepochoptionaltyping.Union[IResolvable, NumberFilterProperty]epochoptionalIResolvableEpochoptionalIResolvableEpochoptionalinterface{} #
An object that contains details on the package epoch to filter on.
filePathoptionalIResolvable | CfnFilter.StringFilterPropertyfile_pathoptionaltyping.Union[IResolvable, StringFilterProperty]filePathoptionalIResolvableFilePathoptionalIResolvableFilePathoptionalinterface{} #
nameoptionalIResolvable | CfnFilter.StringFilterPropertynameoptionaltyping.Union[IResolvable, StringFilterProperty]nameoptionalIResolvableNameoptionalIResolvableNameoptionalinterface{} #
An object that contains details on the name of the package to filter on.
releaseoptionalIResolvable | CfnFilter.StringFilterPropertyreleaseoptionaltyping.Union[IResolvable, StringFilterProperty]releaseoptionalIResolvableReleaseoptionalIResolvableReleaseoptionalinterface{} #
An object that contains details on the package release to filter on.
sourceLambdaLayerArnoptionalIResolvable | CfnFilter.StringFilterPropertysource_lambda_layer_arnoptionaltyping.Union[IResolvable, StringFilterProperty]sourceLambdaLayerArnoptionalIResolvableSourceLambdaLayerArnoptionalIResolvableSourceLambdaLayerArnoptionalinterface{} #
sourceLayerHashoptionalIResolvable | CfnFilter.StringFilterPropertysource_layer_hashoptionaltyping.Union[IResolvable, StringFilterProperty]sourceLayerHashoptionalIResolvableSourceLayerHashoptionalIResolvableSourceLayerHashoptionalinterface{} #
An object that contains details on the source layer hash to filter on.
versionoptionalIResolvable | CfnFilter.StringFilterPropertyversionoptionaltyping.Union[IResolvable, StringFilterProperty]versionoptionalIResolvableVersionoptionalIResolvableVersionoptionalinterface{} #
The package version to filter on.