amazonka-codeartifact-2.0: Amazon CodeArtifact 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.CodeArtifact.CreateRepository

Description

Creates a repository.

Synopsis

Creating a Request

data CreateRepository Source #

See: newCreateRepository smart constructor.

Constructors

CreateRepository' 

Fields

  • description :: Maybe Text

    A description of the created repository.

  • domainOwner :: Maybe Text

    The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

  • tags :: Maybe [Tag]

    One or more tag key-value pairs for the repository.

  • upstreams :: Maybe [UpstreamRepository]

    A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.

  • domain :: Text

    The name of the domain that contains the created repository.

  • repository :: Text

    The name of the repository to create.

Instances

Instances details
ToJSON CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

ToHeaders CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

ToPath CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

ToQuery CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

AWSRequest CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

Associated Types

type AWSResponse CreateRepository #

Generic CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

Associated Types

type Rep CreateRepository :: Type -> Type #

Read CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

Show CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

NFData CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

Methods

rnf :: CreateRepository -> () #

Eq CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

Hashable CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

type AWSResponse CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

type Rep CreateRepository Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

type Rep CreateRepository = D1 ('MetaData "CreateRepository" "Amazonka.CodeArtifact.CreateRepository" "amazonka-codeartifact-2.0-CskMABZQLQJDgej73fXQxp" 'False) (C1 ('MetaCons "CreateRepository'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "domainOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: (S1 ('MetaSel ('Just "upstreams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UpstreamRepository])) :*: (S1 ('MetaSel ('Just "domain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "repository") '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_description - A description of the created repository.

CreateRepository, createRepository_domainOwner - The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

$sel:tags:CreateRepository', createRepository_tags - One or more tag key-value pairs for the repository.

CreateRepository, createRepository_upstreams - A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.

$sel:domain:CreateRepository', createRepository_domain - The name of the domain that contains the created repository.

CreateRepository, createRepository_repository - The name of the repository to create.

Request Lenses

createRepository_description :: Lens' CreateRepository (Maybe Text) Source #

A description of the created repository.

createRepository_domainOwner :: Lens' CreateRepository (Maybe Text) Source #

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

createRepository_tags :: Lens' CreateRepository (Maybe [Tag]) Source #

One or more tag key-value pairs for the repository.

createRepository_upstreams :: Lens' CreateRepository (Maybe [UpstreamRepository]) Source #

A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.

createRepository_domain :: Lens' CreateRepository Text Source #

The name of the domain that contains the created repository.

createRepository_repository :: Lens' CreateRepository Text Source #

The name of the repository to create.

Destructuring the Response

data CreateRepositoryResponse Source #

See: newCreateRepositoryResponse smart constructor.

Constructors

CreateRepositoryResponse' 

Fields

Instances

Instances details
Generic CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

Associated Types

type Rep CreateRepositoryResponse :: Type -> Type #

Read CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

Show CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

NFData CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

Eq CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

type Rep CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.CreateRepository

type Rep CreateRepositoryResponse = D1 ('MetaData "CreateRepositoryResponse" "Amazonka.CodeArtifact.CreateRepository" "amazonka-codeartifact-2.0-CskMABZQLQJDgej73fXQxp" 'False) (C1 ('MetaCons "CreateRepositoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RepositoryDescription)) :*: 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:

CreateRepository, createRepositoryResponse_repository - Information about the created repository after processing the request.

$sel:httpStatus:CreateRepositoryResponse', createRepositoryResponse_httpStatus - The response's http status code.

Response Lenses

createRepositoryResponse_repository :: Lens' CreateRepositoryResponse (Maybe RepositoryDescription) Source #

Information about the created repository after processing the request.