30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import type { Construct } from 'constructs';
|
|
import type { InspectorScanActionBaseProps } from './scan-action-base';
|
|
import { InspectorScanActionBase } from './scan-action-base';
|
|
import type * as codepipeline from '../../../aws-codepipeline';
|
|
import type { IRepositoryRef } from '../../../interfaces/generated/aws-ecr-interfaces.generated';
|
|
/**
|
|
* Construction properties of the `InspectorEcrImageScanAction`.
|
|
*/
|
|
export interface InspectorEcrImageScanActionProps extends InspectorScanActionBaseProps {
|
|
/**
|
|
* The Amazon ECR repository where the image is pushed.
|
|
*/
|
|
readonly repository: IRepositoryRef;
|
|
/**
|
|
* The tag used for the image.
|
|
*
|
|
* @default 'latest'
|
|
*/
|
|
readonly imageTag?: string;
|
|
}
|
|
/**
|
|
* CodePipeline invoke action that uses AWS InspectorScan for ECR images.
|
|
*/
|
|
export declare class InspectorEcrImageScanAction extends InspectorScanActionBase {
|
|
private readonly ecrProps;
|
|
constructor(props: InspectorEcrImageScanActionProps);
|
|
protected renderActionConfiguration(): Record<string, any>;
|
|
protected bound(scope: Construct, stage: codepipeline.IStage, options: codepipeline.ActionBindOptions): codepipeline.ActionConfig;
|
|
}
|