amazonka-codecommit-1.4.0: Amazon CodeCommit 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.CodeCommit.CreateRepository

Contents

Description

Creates a new, empty repository.

Synopsis

Creating a Request

createRepository Source

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:

Request Lenses

crRepositoryDescription :: 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 web page could 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 web page.

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 limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide. 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:

Response Lenses

crrsRepositoryMetadata :: Lens' CreateRepositoryResponse (Maybe RepositoryMetadata) Source

Information about the newly created repository.