interface ECRImageScanProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECR.Events.RepositoryEvents.ECRImageScan.ECRImageScanProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecr/events#RepositoryEvents_ECRImageScan_ECRImageScanProps |
Java | software.amazon.awscdk.mixins.preview.services.ecr.events.RepositoryEvents.ECRImageScan.ECRImageScanProps |
Python | aws_cdk.mixins_preview.aws_ecr.events.RepositoryEvents.ECRImageScan.ECRImageScanProps |
TypeScript | @aws-cdk/mixins-preview ยป aws_ecr ยป events ยป RepositoryEvents ยป ECRImageScan ยป ECRImageScanProps |
Props type for Repository aws.ecr@ECRImageScan event.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as ecr_events } from '@aws-cdk/mixins-preview/aws-ecr';
const eCRImageScanProps: ecr_events.RepositoryEvents.ECRImageScan.ECRImageScanProps = {
eventMetadata: {
region: ['region'],
resources: ['resources'],
version: ['version'],
},
findingSeverityCounts: {
critical: ['critical'],
high: ['high'],
informational: ['informational'],
low: ['low'],
medium: ['medium'],
undefined: ['undefined'],
},
imageDigest: ['imageDigest'],
imageTags: ['imageTags'],
repositoryName: ['repositoryName'],
scanStatus: ['scanStatus'],
};
Properties
| Name | Type | Description |
|---|---|---|
| event | AWSEvent | EventBridge event metadata. |
| finding | Finding | finding-severity-counts property. |
| image | string[] | image-digest property. |
| image | string[] | image-tags property. |
| repository | string[] | repository-name property. |
| scan | string[] | scan-status property. |
eventMetadata?
Type:
AWSEvent
(optional, default: -)
EventBridge event metadata.
findingSeverityCounts?
Type:
Finding
(optional, default: Do not filter on this field)
finding-severity-counts property.
Specify an array of string values to match this event if the actual value of finding-severity-counts is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
imageDigest?
Type:
string[]
(optional, default: Do not filter on this field)
image-digest property.
Specify an array of string values to match this event if the actual value of image-digest is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
imageTags?
Type:
string[]
(optional, default: Do not filter on this field)
image-tags property.
Specify an array of string values to match this event if the actual value of image-tags is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
repositoryName?
Type:
string[]
(optional, default: Filter with the Repository reference)
repository-name property.
Specify an array of string values to match this event if the actual value of repository-name is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
scanStatus?
Type:
string[]
(optional, default: Do not filter on this field)
scan-status property.
Specify an array of string values to match this event if the actual value of scan-status is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

.NET
Go
Java
Python
TypeScript