| 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 |
Amazonka.CodeArtifact.UpdateRepository
Description
Update the properties of a repository.
Synopsis
- data UpdateRepository = UpdateRepository' {
- description :: Maybe Text
- domainOwner :: Maybe Text
- upstreams :: Maybe [UpstreamRepository]
- domain :: Text
- repository :: Text
- newUpdateRepository :: Text -> Text -> UpdateRepository
- updateRepository_description :: Lens' UpdateRepository (Maybe Text)
- updateRepository_domainOwner :: Lens' UpdateRepository (Maybe Text)
- updateRepository_upstreams :: Lens' UpdateRepository (Maybe [UpstreamRepository])
- 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.
Constructors
| UpdateRepository' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateRepository |
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:
UpdateRepository, updateRepository_description - An updated repository description.
UpdateRepository, updateRepository_domainOwner - The 12-digit account number of the Amazon Web Services account that owns
the domain. It does not include dashes or spaces.
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 CodeArtifact looks for a requested package version. For more
information, see
Working with upstream repositories.
$sel:domain:UpdateRepository', updateRepository_domain - The name of the domain associated with the repository to update.
UpdateRepository, updateRepository_repository - The name of the repository to update.
Request Lenses
updateRepository_description :: Lens' UpdateRepository (Maybe Text) Source #
An updated repository description.
updateRepository_domainOwner :: Lens' UpdateRepository (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.
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 CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
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.
Constructors
| UpdateRepositoryResponse' | |
Fields
| |
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:
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.