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 |
Update the properties of a repository.
Synopsis
- data UpdateRepository = UpdateRepository' {
- upstreams :: Maybe [UpstreamRepository]
- domainOwner :: Maybe Text
- description :: Maybe Text
- domain :: Text
- repository :: Text
- newUpdateRepository :: Text -> Text -> UpdateRepository
- updateRepository_upstreams :: Lens' UpdateRepository (Maybe [UpstreamRepository])
- updateRepository_domainOwner :: Lens' UpdateRepository (Maybe Text)
- updateRepository_description :: Lens' UpdateRepository (Maybe Text)
- updateRepository_domain :: Lens' UpdateRepository Text
- updateRepository_repository :: Lens' UpdateRepository Text
- data UpdateRepositoryResponse = UpdateRepositoryResponse' {}
- newUpdateRepositoryResponse :: Int -> UpdateRepositoryResponse
- updateRepositoryResponse_repository :: Lens' UpdateRepositoryResponse (Maybe RepositoryDescription)
- updateRepositoryResponse_httpStatus :: Lens' UpdateRepositoryResponse Int
Creating a Request
data UpdateRepository Source #
See: newUpdateRepository
smart constructor.
UpdateRepository' | |
|
Instances
Create a value of UpdateRepository
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:UpdateRepository'
, updateRepository_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:UpdateRepository'
, updateRepository_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:description:UpdateRepository'
, updateRepository_description
- An updated repository description.
$sel:domain:UpdateRepository'
, updateRepository_domain
- The name of the domain associated with the repository to update.
$sel:repository:UpdateRepository'
, updateRepository_repository
- The name of the repository to update.
Request Lenses
updateRepository_upstreams :: Lens' UpdateRepository (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.
updateRepository_domainOwner :: Lens' UpdateRepository (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
updateRepository_description :: Lens' UpdateRepository (Maybe Text) Source #
An updated repository description.
updateRepository_domain :: Lens' UpdateRepository Text Source #
The name of the domain associated with the repository to update.
updateRepository_repository :: Lens' UpdateRepository Text Source #
The name of the repository to update.
Destructuring the Response
data UpdateRepositoryResponse Source #
See: newUpdateRepositoryResponse
smart constructor.
UpdateRepositoryResponse' | |
|
Instances
newUpdateRepositoryResponse Source #
Create a value of UpdateRepositoryResponse
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:UpdateRepository'
, updateRepositoryResponse_repository
- The updated repository.
$sel:httpStatus:UpdateRepositoryResponse'
, updateRepositoryResponse_httpStatus
- The response's http status code.
Response Lenses
updateRepositoryResponse_repository :: Lens' UpdateRepositoryResponse (Maybe RepositoryDescription) Source #
The updated repository.
updateRepositoryResponse_httpStatus :: Lens' UpdateRepositoryResponse Int Source #
The response's http status code.