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 |
Creates a new, empty repository.
Synopsis
- data CreateRepository = CreateRepository' {
- repositoryDescription :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- repositoryName :: Text
- newCreateRepository :: Text -> CreateRepository
- createRepository_repositoryDescription :: Lens' CreateRepository (Maybe Text)
- createRepository_tags :: Lens' CreateRepository (Maybe (HashMap Text Text))
- createRepository_repositoryName :: Lens' CreateRepository Text
- data CreateRepositoryResponse = CreateRepositoryResponse' {}
- newCreateRepositoryResponse :: Int -> CreateRepositoryResponse
- createRepositoryResponse_repositoryMetadata :: Lens' CreateRepositoryResponse (Maybe RepositoryMetadata)
- createRepositoryResponse_httpStatus :: Lens' CreateRepositoryResponse Int
Creating a Request
data CreateRepository Source #
Represents the input of a create repository operation.
See: newCreateRepository
smart constructor.
CreateRepository' | |
|
Instances
Create a value of CreateRepository
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:repositoryDescription:CreateRepository'
, createRepository_repositoryDescription
- A comment or description about the new repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
$sel:tags:CreateRepository'
, createRepository_tags
- One or more tag key-value pairs to use when tagging this repository.
$sel:repositoryName:CreateRepository'
, createRepository_repositoryName
- The name of the new repository to be created.
The repository name must be unique across the calling AWS account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix .git is prohibited.
Request Lenses
createRepository_repositoryDescription :: Lens' CreateRepository (Maybe Text) Source #
A comment or description about the new repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
createRepository_tags :: Lens' CreateRepository (Maybe (HashMap Text Text)) Source #
One or more tag key-value pairs to use when tagging this repository.
createRepository_repositoryName :: Lens' CreateRepository Text Source #
The name of the new repository to be created.
The repository name must be unique across the calling AWS account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix .git is prohibited.
Destructuring the Response
data CreateRepositoryResponse Source #
Represents the output of a create repository operation.
See: newCreateRepositoryResponse
smart constructor.
CreateRepositoryResponse' | |
|
Instances
newCreateRepositoryResponse Source #
Create a value of CreateRepositoryResponse
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:repositoryMetadata:CreateRepositoryResponse'
, createRepositoryResponse_repositoryMetadata
- Information about the newly created repository.
$sel:httpStatus:CreateRepositoryResponse'
, createRepositoryResponse_httpStatus
- The response's http status code.
Response Lenses
createRepositoryResponse_repositoryMetadata :: Lens' CreateRepositoryResponse (Maybe RepositoryMetadata) Source #
Information about the newly created repository.
createRepositoryResponse_httpStatus :: Lens' CreateRepositoryResponse Int Source #
The response's http status code.