amazonka-ecr-1.6.0: Amazon EC2 Container Registry SDK.

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

Network.AWS.ECR.BatchDeleteImage

Contents

Description

Deletes a list of specified images within a specified repository. Images are specified with either imageTag or imageDigest .

You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.

You can completely delete an image (and all of its tags) by specifying the image's digest in your request.

Synopsis

Creating a Request

batchDeleteImage #

Creates a value of BatchDeleteImage with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • bdiRegistryId - The AWS account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default registry is assumed.
  • bdiRepositoryName - The repository that contains the image to delete.
  • bdiImageIds - A list of image ID references that correspond to images to delete. The format of the imageIds reference is imageTag=tag or imageDigest=digest .

data BatchDeleteImage #

Deletes specified images within a specified repository. Images are specified with either the imageTag or imageDigest .

See: batchDeleteImage smart constructor.

Instances

Eq BatchDeleteImage # 
Data BatchDeleteImage # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BatchDeleteImage -> c BatchDeleteImage #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BatchDeleteImage #

toConstr :: BatchDeleteImage -> Constr #

dataTypeOf :: BatchDeleteImage -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BatchDeleteImage) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BatchDeleteImage) #

gmapT :: (forall b. Data b => b -> b) -> BatchDeleteImage -> BatchDeleteImage #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BatchDeleteImage -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BatchDeleteImage -> r #

gmapQ :: (forall d. Data d => d -> u) -> BatchDeleteImage -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BatchDeleteImage -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BatchDeleteImage -> m BatchDeleteImage #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchDeleteImage -> m BatchDeleteImage #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchDeleteImage -> m BatchDeleteImage #

Read BatchDeleteImage # 
Show BatchDeleteImage # 
Generic BatchDeleteImage # 
Hashable BatchDeleteImage # 
ToJSON BatchDeleteImage # 
NFData BatchDeleteImage # 

Methods

rnf :: BatchDeleteImage -> () #

AWSRequest BatchDeleteImage # 
ToHeaders BatchDeleteImage # 
ToPath BatchDeleteImage # 
ToQuery BatchDeleteImage # 
type Rep BatchDeleteImage # 
type Rep BatchDeleteImage = D1 * (MetaData "BatchDeleteImage" "Network.AWS.ECR.BatchDeleteImage" "amazonka-ecr-1.6.0-964uJhj0eFs4nfpWm7TvpC" False) (C1 * (MetaCons "BatchDeleteImage'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdiRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdiRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_bdiImageIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [ImageIdentifier])))))
type Rs BatchDeleteImage # 

Request Lenses

bdiRegistryId :: Lens' BatchDeleteImage (Maybe Text) #

The AWS account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default registry is assumed.

bdiRepositoryName :: Lens' BatchDeleteImage Text #

The repository that contains the image to delete.

bdiImageIds :: Lens' BatchDeleteImage [ImageIdentifier] #

A list of image ID references that correspond to images to delete. The format of the imageIds reference is imageTag=tag or imageDigest=digest .

Destructuring the Response

batchDeleteImageResponse #

Creates a value of BatchDeleteImageResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data BatchDeleteImageResponse #

See: batchDeleteImageResponse smart constructor.

Instances

Eq BatchDeleteImageResponse # 
Data BatchDeleteImageResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BatchDeleteImageResponse -> c BatchDeleteImageResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BatchDeleteImageResponse #

toConstr :: BatchDeleteImageResponse -> Constr #

dataTypeOf :: BatchDeleteImageResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BatchDeleteImageResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BatchDeleteImageResponse) #

gmapT :: (forall b. Data b => b -> b) -> BatchDeleteImageResponse -> BatchDeleteImageResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BatchDeleteImageResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BatchDeleteImageResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> BatchDeleteImageResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BatchDeleteImageResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BatchDeleteImageResponse -> m BatchDeleteImageResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchDeleteImageResponse -> m BatchDeleteImageResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchDeleteImageResponse -> m BatchDeleteImageResponse #

Read BatchDeleteImageResponse # 
Show BatchDeleteImageResponse # 
Generic BatchDeleteImageResponse # 
NFData BatchDeleteImageResponse # 
type Rep BatchDeleteImageResponse # 
type Rep BatchDeleteImageResponse = D1 * (MetaData "BatchDeleteImageResponse" "Network.AWS.ECR.BatchDeleteImage" "amazonka-ecr-1.6.0-964uJhj0eFs4nfpWm7TvpC" False) (C1 * (MetaCons "BatchDeleteImageResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdirsFailures") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ImageFailure]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdirsImageIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ImageIdentifier]))) (S1 * (MetaSel (Just Symbol "_bdirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

bdirsFailures :: Lens' BatchDeleteImageResponse [ImageFailure] #

Any failures associated with the call.

bdirsImageIds :: Lens' BatchDeleteImageResponse [ImageIdentifier] #

The image IDs of the deleted images.

bdirsResponseStatus :: Lens' BatchDeleteImageResponse Int #

  • - | The response status code.