amazonka-codecommit-2.0: Amazon CodeCommit SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeCommit.CreateRepository

Description

Creates a new, empty repository.

Synopsis

Creating a Request

data CreateRepository Source #

Represents the input of a create repository operation.

See: newCreateRepository smart constructor.

Constructors

CreateRepository' 

Fields

  • repositoryDescription :: Maybe Text

    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.

  • tags :: Maybe (HashMap Text Text)

    One or more tag key-value pairs to use when tagging this repository.

  • repositoryName :: Text

    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.

Instances

Instances details
ToJSON CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

ToHeaders CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

ToPath CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

ToQuery CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

AWSRequest CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

Associated Types

type AWSResponse CreateRepository #

Generic CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

Associated Types

type Rep CreateRepository :: Type -> Type #

Read CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

Show CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

NFData CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

Methods

rnf :: CreateRepository -> () #

Eq CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

Hashable CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

type AWSResponse CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

type Rep CreateRepository Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

type Rep CreateRepository = D1 ('MetaData "CreateRepository" "Amazonka.CodeCommit.CreateRepository" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "CreateRepository'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateRepository Source #

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:

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.

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.

Constructors

CreateRepositoryResponse' 

Fields

Instances

Instances details
Generic CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

Associated Types

type Rep CreateRepositoryResponse :: Type -> Type #

Read CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

Show CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

NFData CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

Eq CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

type Rep CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateRepository

type Rep CreateRepositoryResponse = D1 ('MetaData "CreateRepositoryResponse" "Amazonka.CodeCommit.CreateRepository" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "CreateRepositoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RepositoryMetadata)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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