Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a repository.
Synopsis
- data CreateRepository = CreateRepository' {
- upstreams :: Maybe [UpstreamRepository]
- domainOwner :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- domain :: Text
- repository :: Text
- newCreateRepository :: Text -> Text -> CreateRepository
- createRepository_upstreams :: Lens' CreateRepository (Maybe [UpstreamRepository])
- createRepository_domainOwner :: Lens' CreateRepository (Maybe Text)
- createRepository_description :: Lens' CreateRepository (Maybe Text)
- createRepository_tags :: Lens' CreateRepository (Maybe [Tag])
- createRepository_domain :: Lens' CreateRepository Text
- createRepository_repository :: Lens' CreateRepository Text
- data CreateRepositoryResponse = CreateRepositoryResponse' {}
- newCreateRepositoryResponse :: Int -> CreateRepositoryResponse
- createRepositoryResponse_repository :: Lens' CreateRepositoryResponse (Maybe RepositoryDescription)
- createRepositoryResponse_httpStatus :: Lens' CreateRepositoryResponse Int
Creating a Request
data CreateRepository Source #
See: newCreateRepository
smart constructor.
CreateRepository' | |
|
Instances
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:
$sel:upstreams: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 AWS CodeArtifact looks for a requested package version. For
more information, see
Working with upstream repositories.
$sel:domainOwner:CreateRepository'
, createRepository_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:description:CreateRepository'
, createRepository_description
- A description of the created repository.
$sel:tags:CreateRepository'
, createRepository_tags
- One or more tag key-value pairs for the repository.
$sel:domain:CreateRepository'
, createRepository_domain
- The name of the domain that contains the created repository.
$sel:repository:CreateRepository'
, createRepository_repository
- The name of the repository to create.
Request Lenses
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 AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
createRepository_domainOwner :: Lens' CreateRepository (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
createRepository_description :: Lens' CreateRepository (Maybe Text) Source #
A description of the created repository.
createRepository_tags :: Lens' CreateRepository (Maybe [Tag]) Source #
One or more tag key-value pairs for the repository.
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.
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:repository: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.
createRepositoryResponse_httpStatus :: Lens' CreateRepositoryResponse Int Source #
The response's http status code.