libZSservicesZSamazonka-ecrZSamazonka-ecr
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Read StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Show StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Generic StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Associated Types

type Rep StartImageScan :: Type -> Type #

NFData StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Methods

rnf :: StartImageScan -> () #

Hashable StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

ToJSON StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

AWSRequest StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Associated Types

type AWSResponse 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

type Rep StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

type Rep StartImageScan = D1 ('MetaData "StartImageScan" "Amazonka.ECR.StartImageScan" "libZSservicesZSamazonka-ecrZSamazonka-ecr" '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))))
type AWSResponse StartImageScan Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

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:

$sel:registryId: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.

$sel:repositoryName:StartImageScan', startImageScan_repositoryName - The name of the repository that contains the images to scan.

$sel:imageId: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
Eq StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Read StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Show StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Generic StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Associated Types

type Rep StartImageScanResponse :: Type -> Type #

NFData StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

Methods

rnf :: StartImageScanResponse -> () #

type Rep StartImageScanResponse Source # 
Instance details

Defined in Amazonka.ECR.StartImageScan

type Rep StartImageScanResponse = D1 ('MetaData "StartImageScanResponse" "Amazonka.ECR.StartImageScan" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "StartImageScanResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "imageScanStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageScanStatus))) :*: (S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageIdentifier)) :*: (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:

$sel:registryId:StartImageScan', startImageScanResponse_registryId - The registry ID associated with the request.

$sel:imageScanStatus:StartImageScanResponse', startImageScanResponse_imageScanStatus - The current state of the scan.

$sel:imageId:StartImageScan', startImageScanResponse_imageId - Undocumented member.

$sel:repositoryName: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.