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

Copyright(c) 2013-2017 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 Source #

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 Source #

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

See: batchDeleteImage smart constructor.

Instances

Eq BatchDeleteImage Source # 
Data BatchDeleteImage Source # 

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 Source # 
Show BatchDeleteImage Source # 
Generic BatchDeleteImage Source # 
Hashable BatchDeleteImage Source # 
ToJSON BatchDeleteImage Source # 
NFData BatchDeleteImage Source # 

Methods

rnf :: BatchDeleteImage -> () #

AWSRequest BatchDeleteImage Source # 
ToQuery BatchDeleteImage Source # 
ToPath BatchDeleteImage Source # 
ToHeaders BatchDeleteImage Source # 
type Rep BatchDeleteImage Source # 
type Rep BatchDeleteImage = D1 (MetaData "BatchDeleteImage" "Network.AWS.ECR.BatchDeleteImage" "amazonka-ecr-1.5.0-1vFH5BbiUOBDG4NzPySvaV" 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 Source # 

Request Lenses

bdiRegistryId :: Lens' BatchDeleteImage (Maybe Text) Source #

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 Source #

The repository that contains the image to delete.

bdiImageIds :: Lens' BatchDeleteImage [ImageIdentifier] Source #

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 Source #

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 Source #

See: batchDeleteImageResponse smart constructor.

Instances

Eq BatchDeleteImageResponse Source # 
Data BatchDeleteImageResponse Source # 

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 Source # 
Show BatchDeleteImageResponse Source # 
Generic BatchDeleteImageResponse Source # 
NFData BatchDeleteImageResponse Source # 
type Rep BatchDeleteImageResponse Source # 
type Rep BatchDeleteImageResponse = D1 (MetaData "BatchDeleteImageResponse" "Network.AWS.ECR.BatchDeleteImage" "amazonka-ecr-1.5.0-1vFH5BbiUOBDG4NzPySvaV" 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] Source #

Any failures associated with the call.

bdirsImageIds :: Lens' BatchDeleteImageResponse [ImageIdentifier] Source #

The image IDs of the deleted images.