amazonka-ecr-1.6.1: 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 # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Data BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.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 # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Show BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Generic BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Associated Types

type Rep BatchDeleteImage :: Type -> Type #

Hashable BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

ToJSON BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

AWSRequest BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Associated Types

type Rs BatchDeleteImage :: Type #

ToHeaders BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

ToPath BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

ToQuery BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

NFData BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Methods

rnf :: BatchDeleteImage -> () #

type Rep BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

type Rep BatchDeleteImage = D1 (MetaData "BatchDeleteImage" "Network.AWS.ECR.BatchDeleteImage" "amazonka-ecr-1.6.1-Bw2yh5mlUIwFGPb6ojtX2U" False) (C1 (MetaCons "BatchDeleteImage'" PrefixI True) (S1 (MetaSel (Just "_bdiRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_bdiRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_bdiImageIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ImageIdentifier]))))
type Rs BatchDeleteImage # 
Instance details

Defined in Network.AWS.ECR.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 # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Data BatchDeleteImageResponse # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

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 # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Show BatchDeleteImageResponse # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Generic BatchDeleteImageResponse # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

Associated Types

type Rep BatchDeleteImageResponse :: Type -> Type #

NFData BatchDeleteImageResponse # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

type Rep BatchDeleteImageResponse # 
Instance details

Defined in Network.AWS.ECR.BatchDeleteImage

type Rep BatchDeleteImageResponse = D1 (MetaData "BatchDeleteImageResponse" "Network.AWS.ECR.BatchDeleteImage" "amazonka-ecr-1.6.1-Bw2yh5mlUIwFGPb6ojtX2U" False) (C1 (MetaCons "BatchDeleteImageResponse'" PrefixI True) (S1 (MetaSel (Just "_bdirsFailures") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ImageFailure])) :*: (S1 (MetaSel (Just "_bdirsImageIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ImageIdentifier])) :*: S1 (MetaSel (Just "_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.