Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data StartImageScan = StartImageScan' {}
- newStartImageScan :: Text -> ImageIdentifier -> StartImageScan
- startImageScan_registryId :: Lens' StartImageScan (Maybe Text)
- startImageScan_repositoryName :: Lens' StartImageScan Text
- startImageScan_imageId :: Lens' StartImageScan ImageIdentifier
- data StartImageScanResponse = StartImageScanResponse' {}
- newStartImageScanResponse :: Int -> StartImageScanResponse
- startImageScanResponse_registryId :: Lens' StartImageScanResponse (Maybe Text)
- startImageScanResponse_imageScanStatus :: Lens' StartImageScanResponse (Maybe ImageScanStatus)
- startImageScanResponse_imageId :: Lens' StartImageScanResponse (Maybe ImageIdentifier)
- startImageScanResponse_repositoryName :: Lens' StartImageScanResponse (Maybe Text)
- startImageScanResponse_httpStatus :: Lens' StartImageScanResponse Int
Creating a Request
data StartImageScan Source #
See: newStartImageScan
smart constructor.
StartImageScan' | |
|
Instances
:: Text | |
-> ImageIdentifier | |
-> StartImageScan |
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.
startImageScan_imageId :: Lens' StartImageScan ImageIdentifier Source #
Undocumented member.
Destructuring the Response
data StartImageScanResponse Source #
See: newStartImageScanResponse
smart constructor.
StartImageScanResponse' | |
|
Instances
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_imageScanStatus :: Lens' StartImageScanResponse (Maybe ImageScanStatus) Source #
The current state of the scan.
startImageScanResponse_imageId :: Lens' StartImageScanResponse (Maybe ImageIdentifier) Source #
Undocumented member.
startImageScanResponse_repositoryName :: Lens' StartImageScanResponse (Maybe Text) Source #
The repository name associated with the request.
startImageScanResponse_httpStatus :: Lens' StartImageScanResponse Int Source #
The response's http status code.