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 |
Deletes a repository. If the repository contains images, you must either
delete all images in the repository or use the force
option to delete
the repository.
Synopsis
- data DeleteRepository = DeleteRepository' {
- force :: Maybe Bool
- registryId :: Maybe Text
- repositoryName :: Text
- newDeleteRepository :: Text -> DeleteRepository
- deleteRepository_force :: Lens' DeleteRepository (Maybe Bool)
- deleteRepository_registryId :: Lens' DeleteRepository (Maybe Text)
- deleteRepository_repositoryName :: Lens' DeleteRepository Text
- data DeleteRepositoryResponse = DeleteRepositoryResponse' {}
- newDeleteRepositoryResponse :: Int -> DeleteRepositoryResponse
- deleteRepositoryResponse_repository :: Lens' DeleteRepositoryResponse (Maybe Repository)
- deleteRepositoryResponse_httpStatus :: Lens' DeleteRepositoryResponse Int
Creating a Request
data DeleteRepository Source #
See: newDeleteRepository
smart constructor.
DeleteRepository' | |
|
Instances
Create a value of DeleteRepository
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:force:DeleteRepository'
, deleteRepository_force
- If a repository contains images, forces the deletion.
$sel:registryId:DeleteRepository'
, deleteRepository_registryId
- The Amazon Web Services account ID associated with the registry that
contains the repository to delete. If you do not specify a registry, the
default registry is assumed.
$sel:repositoryName:DeleteRepository'
, deleteRepository_repositoryName
- The name of the repository to delete.
Request Lenses
deleteRepository_force :: Lens' DeleteRepository (Maybe Bool) Source #
If a repository contains images, forces the deletion.
deleteRepository_registryId :: Lens' DeleteRepository (Maybe Text) Source #
The Amazon Web Services account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.
deleteRepository_repositoryName :: Lens' DeleteRepository Text Source #
The name of the repository to delete.
Destructuring the Response
data DeleteRepositoryResponse Source #
See: newDeleteRepositoryResponse
smart constructor.
DeleteRepositoryResponse' | |
|
Instances
newDeleteRepositoryResponse Source #
Create a value of DeleteRepositoryResponse
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:repository:DeleteRepositoryResponse'
, deleteRepositoryResponse_repository
- The repository that was deleted.
$sel:httpStatus:DeleteRepositoryResponse'
, deleteRepositoryResponse_httpStatus
- The response's http status code.
Response Lenses
deleteRepositoryResponse_repository :: Lens' DeleteRepositoryResponse (Maybe Repository) Source #
The repository that was deleted.
deleteRepositoryResponse_httpStatus :: Lens' DeleteRepositoryResponse Int Source #
The response's http status code.