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 a specified repository was already deleted, a null repository ID is returned.
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.
Synopsis
- data DeleteRepository = DeleteRepository' {}
- newDeleteRepository :: Text -> DeleteRepository
- deleteRepository_repositoryName :: Lens' DeleteRepository Text
- data DeleteRepositoryResponse = DeleteRepositoryResponse' {
- repositoryId :: Maybe Text
- httpStatus :: Int
- newDeleteRepositoryResponse :: Int -> DeleteRepositoryResponse
- deleteRepositoryResponse_repositoryId :: Lens' DeleteRepositoryResponse (Maybe Text)
- deleteRepositoryResponse_httpStatus :: Lens' DeleteRepositoryResponse Int
Creating a Request
data DeleteRepository Source #
Represents the input of a delete repository operation.
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:repositoryName:DeleteRepository'
, deleteRepository_repositoryName
- The name of the repository to delete.
Request Lenses
deleteRepository_repositoryName :: Lens' DeleteRepository Text Source #
The name of the repository to delete.
Destructuring the Response
data DeleteRepositoryResponse Source #
Represents the output of a delete repository operation.
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:repositoryId:DeleteRepositoryResponse'
, deleteRepositoryResponse_repositoryId
- The ID of the repository that was deleted.
$sel:httpStatus:DeleteRepositoryResponse'
, deleteRepositoryResponse_httpStatus
- The response's http status code.
Response Lenses
deleteRepositoryResponse_repositoryId :: Lens' DeleteRepositoryResponse (Maybe Text) Source #
The ID of the repository that was deleted.
deleteRepositoryResponse_httpStatus :: Lens' DeleteRepositoryResponse Int Source #
The response's http status code.