Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateRepository = CreateRepository' {
- encryptionKey :: Maybe Text
- tags :: Maybe [Tag]
- connectionArn :: Text
- name :: Text
- provider :: RepositoryProvider
- newCreateRepository :: Text -> Text -> RepositoryProvider -> CreateRepository
- createRepository_encryptionKey :: Lens' CreateRepository (Maybe Text)
- createRepository_tags :: Lens' CreateRepository (Maybe [Tag])
- createRepository_connectionArn :: Lens' CreateRepository Text
- createRepository_name :: Lens' CreateRepository Text
- createRepository_provider :: Lens' CreateRepository RepositoryProvider
- data CreateRepositoryResponse = CreateRepositoryResponse' {}
- newCreateRepositoryResponse :: Int -> Repository -> CreateRepositoryResponse
- createRepositoryResponse_httpStatus :: Lens' CreateRepositoryResponse Int
- createRepositoryResponse_repository :: Lens' CreateRepositoryResponse Repository
Creating a Request
data CreateRepository Source #
See: newCreateRepository
smart constructor.
CreateRepository' | |
|
Instances
:: Text | |
-> Text | |
-> RepositoryProvider | |
-> CreateRepository |
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
).
createRepository_provider :: Lens' CreateRepository RepositoryProvider Source #
The repository provider.
Destructuring the Response
data CreateRepositoryResponse Source #
See: newCreateRepositoryResponse
smart constructor.
CreateRepositoryResponse' | |
|
Instances
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_httpStatus :: Lens' CreateRepositoryResponse Int Source #
The response's http status code.
createRepositoryResponse_repository :: Lens' CreateRepositoryResponse Repository Source #
The repository link's detail data that's returned by Proton.