amazonka-codecommit-1.4.2: 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:

data CreateRepository Source #

Represents the input of a create repository operation.

See: createRepository smart constructor.

Instances

Eq CreateRepository Source # 
Data CreateRepository Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateRepository -> c CreateRepository #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateRepository #

toConstr :: CreateRepository -> Constr #

dataTypeOf :: CreateRepository -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateRepository) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateRepository) #

gmapT :: (forall b. Data b => b -> b) -> CreateRepository -> CreateRepository #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateRepository -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateRepository -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateRepository -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateRepository -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateRepository -> m CreateRepository #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRepository -> m CreateRepository #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRepository -> m CreateRepository #

Read CreateRepository Source # 
Show CreateRepository Source # 
Generic CreateRepository Source # 
ToJSON CreateRepository Source # 
Hashable CreateRepository Source # 
NFData CreateRepository Source # 

Methods

rnf :: CreateRepository -> () #

AWSRequest CreateRepository Source # 
ToPath CreateRepository Source # 
ToHeaders CreateRepository Source # 
ToQuery CreateRepository Source # 
type Rep CreateRepository Source # 
type Rep CreateRepository = D1 (MetaData "CreateRepository" "Network.AWS.CodeCommit.CreateRepository" "amazonka-codecommit-1.4.2-6rTg36NbrSs15dWzQRfbbi" False) (C1 (MetaCons "CreateRepository'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_crRepositoryDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_crRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateRepository Source # 

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:

data CreateRepositoryResponse Source #

Represents the output of a create repository operation.

See: createRepositoryResponse smart constructor.

Instances

Eq CreateRepositoryResponse Source # 
Data CreateRepositoryResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateRepositoryResponse -> c CreateRepositoryResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateRepositoryResponse #

toConstr :: CreateRepositoryResponse -> Constr #

dataTypeOf :: CreateRepositoryResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateRepositoryResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateRepositoryResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateRepositoryResponse -> CreateRepositoryResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateRepositoryResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateRepositoryResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateRepositoryResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateRepositoryResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateRepositoryResponse -> m CreateRepositoryResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRepositoryResponse -> m CreateRepositoryResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRepositoryResponse -> m CreateRepositoryResponse #

Read CreateRepositoryResponse Source # 
Show CreateRepositoryResponse Source # 
Generic CreateRepositoryResponse Source # 
NFData CreateRepositoryResponse Source # 
type Rep CreateRepositoryResponse Source # 
type Rep CreateRepositoryResponse = D1 (MetaData "CreateRepositoryResponse" "Network.AWS.CodeCommit.CreateRepository" "amazonka-codecommit-1.4.2-6rTg36NbrSs15dWzQRfbbi" False) (C1 (MetaCons "CreateRepositoryResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_crrsRepositoryMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RepositoryMetadata))) (S1 (MetaSel (Just Symbol "_crrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

crrsRepositoryMetadata :: Lens' CreateRepositoryResponse (Maybe RepositoryMetadata) Source #

Information about the newly created repository.