| 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.Proton.GetRepository
Description
Get detail data for a linked repository.
Synopsis
- data GetRepository = GetRepository' {}
- newGetRepository :: Text -> RepositoryProvider -> GetRepository
- getRepository_name :: Lens' GetRepository Text
- getRepository_provider :: Lens' GetRepository RepositoryProvider
- data GetRepositoryResponse = GetRepositoryResponse' {}
- newGetRepositoryResponse :: Int -> Repository -> GetRepositoryResponse
- getRepositoryResponse_httpStatus :: Lens' GetRepositoryResponse Int
- getRepositoryResponse_repository :: Lens' GetRepositoryResponse Repository
Creating a Request
data GetRepository Source #
See: newGetRepository smart constructor.
Constructors
| GetRepository' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> RepositoryProvider | |
| -> GetRepository |
Create a value of GetRepository 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:
GetRepository, getRepository_name - The repository name, for example myrepos/myrepo.
GetRepository, getRepository_provider - The repository provider.
Request Lenses
getRepository_name :: Lens' GetRepository Text Source #
The repository name, for example myrepos/myrepo.
getRepository_provider :: Lens' GetRepository RepositoryProvider Source #
The repository provider.
Destructuring the Response
data GetRepositoryResponse Source #
See: newGetRepositoryResponse smart constructor.
Constructors
| GetRepositoryResponse' | |
Fields
| |
Instances
newGetRepositoryResponse Source #
Arguments
| :: Int | |
| -> Repository | |
| -> GetRepositoryResponse |
Create a value of GetRepositoryResponse 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:GetRepositoryResponse', getRepositoryResponse_httpStatus - The response's http status code.
$sel:repository:GetRepositoryResponse', getRepositoryResponse_repository - The repository link's detail data that's returned by Proton.
Response Lenses
getRepositoryResponse_httpStatus :: Lens' GetRepositoryResponse Int Source #
The response's http status code.
getRepositoryResponse_repository :: Lens' GetRepositoryResponse Repository Source #
The repository link's detail data that's returned by Proton.