Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new, empty repository.
See: AWS API Reference for CreateRepository.
- createRepository :: Text -> CreateRepository
- data CreateRepository
- crRepositoryDescription :: Lens' CreateRepository (Maybe Text)
- crRepositoryName :: Lens' CreateRepository Text
- createRepositoryResponse :: Int -> CreateRepositoryResponse
- data CreateRepositoryResponse
- crrsRepositoryMetadata :: Lens' CreateRepositoryResponse (Maybe RepositoryMetadata)
- crrsStatus :: Lens' CreateRepositoryResponse Int
Creating a Request
Creates a value of CreateRepository
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateRepository Source
Represents the input of a create repository operation.
See: createRepository
smart constructor.
Request Lenses
crRepositoryDescription :: Lens' CreateRepository (Maybe Text) Source
A comment or description about the new repository.
crRepositoryName :: Lens' CreateRepository Text Source
The name of the new repository to be created.
The repository name must be unique across the calling AWS account. In addition, repository names are restricted to alphanumeric characters. The suffix ".git" is prohibited.
Destructuring the Response
createRepositoryResponse Source
Creates a value of CreateRepositoryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateRepositoryResponse Source
Represents the output of a create repository operation.
See: createRepositoryResponse
smart constructor.
Response Lenses
crrsRepositoryMetadata :: Lens' CreateRepositoryResponse (Maybe RepositoryMetadata) Source
Information about the newly created repository.
crrsStatus :: Lens' CreateRepositoryResponse Int Source
The response status code.