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

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

Network.AWS.ECR.DeleteRepository

Contents

Description

Deletes an existing image repository. If a repository contains images, you must use the force option to delete it.

Synopsis

Creating a Request

deleteRepository Source #

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

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

  • dForce - Force the deletion of the repository if it contains images.
  • dRegistryId - The AWS account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.
  • dRepositoryName - The name of the repository to delete.

data DeleteRepository Source #

See: deleteRepository smart constructor.

Instances

Eq DeleteRepository Source # 
Data DeleteRepository Source # 

Methods

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

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

toConstr :: DeleteRepository -> Constr #

dataTypeOf :: DeleteRepository -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRepository Source # 
Show DeleteRepository Source # 
Generic DeleteRepository Source # 
Hashable DeleteRepository Source # 
ToJSON DeleteRepository Source # 
NFData DeleteRepository Source # 

Methods

rnf :: DeleteRepository -> () #

AWSRequest DeleteRepository Source # 
ToPath DeleteRepository Source # 
ToHeaders DeleteRepository Source # 
ToQuery DeleteRepository Source # 
type Rep DeleteRepository Source # 
type Rep DeleteRepository = D1 (MetaData "DeleteRepository" "Network.AWS.ECR.DeleteRepository" "amazonka-ecr-1.4.5-CCdpOETgEgK6cFz60uVoIg" False) (C1 (MetaCons "DeleteRepository'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dForce") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_dRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DeleteRepository Source # 

Request Lenses

dForce :: Lens' DeleteRepository (Maybe Bool) Source #

Force the deletion of the repository if it contains images.

dRegistryId :: Lens' DeleteRepository (Maybe Text) Source #

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

dRepositoryName :: Lens' DeleteRepository Text Source #

The name of the repository to delete.

Destructuring the Response

deleteRepositoryResponse Source #

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

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

data DeleteRepositoryResponse Source #

See: deleteRepositoryResponse smart constructor.

Instances

Eq DeleteRepositoryResponse Source # 
Data DeleteRepositoryResponse Source # 

Methods

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

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

toConstr :: DeleteRepositoryResponse -> Constr #

dataTypeOf :: DeleteRepositoryResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRepositoryResponse Source # 
Show DeleteRepositoryResponse Source # 
Generic DeleteRepositoryResponse Source # 
NFData DeleteRepositoryResponse Source # 
type Rep DeleteRepositoryResponse Source # 
type Rep DeleteRepositoryResponse = D1 (MetaData "DeleteRepositoryResponse" "Network.AWS.ECR.DeleteRepository" "amazonka-ecr-1.4.5-CCdpOETgEgK6cFz60uVoIg" False) (C1 (MetaCons "DeleteRepositoryResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drsRepository") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Repository))) (S1 (MetaSel (Just Symbol "_drsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

drsRepository :: Lens' DeleteRepositoryResponse (Maybe Repository) Source #

The repository that was deleted.