amazonka-ecr-2.0: Amazon EC2 Container Registry SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ECR.StartImageScan

Description

Starts an image vulnerability scan. An image scan can only be started once per 24 hours on an individual image. This limit includes if an image was scanned on initial push. For more information, see Image scanning in the Amazon Elastic Container Registry User Guide.

Synopsis

Creating a Request

data StartImageScan Source #

See: newStartImageScan smart constructor.

Constructors

StartImageScan' 

Fields

  • registryId :: Maybe Text

    The Amazon Web Services account ID associated with the registry that contains the repository in which to start an image scan request. If you do not specify a registry, the default registry is assumed.

  • repositoryName :: Text

    The name of the repository that contains the images to scan.

  • imageId :: ImageIdentifier
     

Instances

Instances details
ToJSON StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

ToHeaders StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

ToPath StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

ToQuery StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

AWSRequest StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Associated Types

type AWSResponse StartImageScan #

Generic StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Associated Types

type Rep StartImageScan :: Type -> Type #

Read StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Show StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

NFData StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Methods

rnf :: StartImageScan -> () #

Eq StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Hashable StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

type AWSResponse StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

type Rep StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

type Rep StartImageScan = D1 ('MetaData "StartImageScan" "Amazonka.ECR.StartImageScan" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "StartImageScan'" 'PrefixI 'True) (S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ImageIdentifier))))

newStartImageScan Source #

Create a value of StartImageScan with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

StartImageScan, startImageScan_registryId - The Amazon Web Services account ID associated with the registry that contains the repository in which to start an image scan request. If you do not specify a registry, the default registry is assumed.

StartImageScan, startImageScan_repositoryName - The name of the repository that contains the images to scan.

StartImageScan, startImageScan_imageId - Undocumented member.

Request Lenses

startImageScan_registryId :: Lens' StartImageScan (Maybe Text) Source #

The Amazon Web Services account ID associated with the registry that contains the repository in which to start an image scan request. If you do not specify a registry, the default registry is assumed.

startImageScan_repositoryName :: Lens' StartImageScan Text Source #

The name of the repository that contains the images to scan.

Destructuring the Response

data StartImageScanResponse Source #

See: newStartImageScanResponse smart constructor.

Constructors

StartImageScanResponse' 

Fields

Instances

Instances details
Generic StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Associated Types

type Rep StartImageScanResponse :: Type -> Type #

Read StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Show StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

NFData StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Methods

rnf :: StartImageScanResponse -> () #

Eq StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

type Rep StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

type Rep StartImageScanResponse = D1 ('MetaData "StartImageScanResponse" "Amazonka.ECR.StartImageScan" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "StartImageScanResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageIdentifier)) :*: S1 ('MetaSel ('Just "imageScanStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageScanStatus))) :*: (S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newStartImageScanResponse Source #

Create a value of StartImageScanResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

StartImageScan, startImageScanResponse_imageId - Undocumented member.

StartImageScanResponse, startImageScanResponse_imageScanStatus - The current state of the scan.

StartImageScan, startImageScanResponse_registryId - The registry ID associated with the request.

StartImageScan, startImageScanResponse_repositoryName - The repository name associated with the request.

$sel:httpStatus:StartImageScanResponse', startImageScanResponse_httpStatus - The response's http status code.

Response Lenses

startImageScanResponse_registryId :: Lens' StartImageScanResponse (Maybe Text) Source #

The registry ID associated with the request.

startImageScanResponse_repositoryName :: Lens' StartImageScanResponse (Maybe Text) Source #

The repository name associated with the request.