amazonka-proton-2.0: Amazon Proton 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.Proton.CreateRepository

Description

Create and register a link to a repository. Proton uses the link to repeatedly access the repository, to either push to it (self-managed provisioning) or pull from it (template sync). You can share a linked repository across multiple resources (like environments using self-managed provisioning, or synced templates). When you create a repository link, Proton creates a service-linked role for you.

For more information, see Self-managed provisioning, Template bundles, and Template sync configurations in the Proton User Guide.

Synopsis

Creating a Request

data CreateRepository Source #

See: newCreateRepository smart constructor.

Constructors

CreateRepository' 

Fields

Instances

Instances details
ToJSON CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

ToHeaders CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

ToPath CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

ToQuery CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

AWSRequest CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

Associated Types

type AWSResponse CreateRepository #

Generic CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

Associated Types

type Rep CreateRepository :: Type -> Type #

Read CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

Show CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

NFData CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

Methods

rnf :: CreateRepository -> () #

Eq CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

Hashable CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

type AWSResponse CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

type Rep CreateRepository Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

type Rep CreateRepository = D1 ('MetaData "CreateRepository" "Amazonka.Proton.CreateRepository" "amazonka-proton-2.0-LlJ92rKPVfGGXHsLqGeI74" 'False) (C1 ('MetaCons "CreateRepository'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "encryptionKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "connectionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "provider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RepositoryProvider)))))

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_encryptionKey - The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.

$sel:tags:CreateRepository', createRepository_tags - An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.

For more information, see Proton resources and tagging in the Proton User Guide.

CreateRepository, createRepository_connectionArn - The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account. For more information, see Setting up for Proton in the Proton User Guide.

CreateRepository, createRepository_name - The repository name (for example, myrepos/myrepo).

CreateRepository, createRepository_provider - The repository provider.

Request Lenses

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

The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.

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

An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.

For more information, see Proton resources and tagging in the Proton User Guide.

createRepository_connectionArn :: Lens' CreateRepository Text Source #

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account. For more information, see Setting up for Proton in the Proton User Guide.

createRepository_name :: Lens' CreateRepository Text Source #

The repository name (for example, myrepos/myrepo).

Destructuring the Response

data CreateRepositoryResponse Source #

See: newCreateRepositoryResponse smart constructor.

Constructors

CreateRepositoryResponse' 

Fields

Instances

Instances details
Generic CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

Associated Types

type Rep CreateRepositoryResponse :: Type -> Type #

Read CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

Show CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

NFData CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

Eq CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

type Rep CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateRepository

type Rep CreateRepositoryResponse = D1 ('MetaData "CreateRepositoryResponse" "Amazonka.Proton.CreateRepository" "amazonka-proton-2.0-LlJ92rKPVfGGXHsLqGeI74" 'False) (C1 ('MetaCons "CreateRepositoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Repository)))

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:httpStatus:CreateRepositoryResponse', createRepositoryResponse_httpStatus - The response's http status code.

$sel:repository:CreateRepositoryResponse', createRepositoryResponse_repository - The repository link's detail data that's returned by Proton.

Response Lenses

createRepositoryResponse_repository :: Lens' CreateRepositoryResponse Repository Source #

The repository link's detail data that's returned by Proton.