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 |
Returns information about a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
Synopsis
- data GetRepository = GetRepository' {}
- newGetRepository :: Text -> GetRepository
- getRepository_repositoryName :: Lens' GetRepository Text
- data GetRepositoryResponse = GetRepositoryResponse' {}
- newGetRepositoryResponse :: Int -> GetRepositoryResponse
- getRepositoryResponse_repositoryMetadata :: Lens' GetRepositoryResponse (Maybe RepositoryMetadata)
- getRepositoryResponse_httpStatus :: Lens' GetRepositoryResponse Int
Creating a Request
data GetRepository Source #
Represents the input of a get repository operation.
See: newGetRepository
smart constructor.
GetRepository' | |
|
Instances
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:
$sel:repositoryName:GetRepository'
, getRepository_repositoryName
- The name of the repository to get information about.
Request Lenses
getRepository_repositoryName :: Lens' GetRepository Text Source #
The name of the repository to get information about.
Destructuring the Response
data GetRepositoryResponse Source #
Represents the output of a get repository operation.
See: newGetRepositoryResponse
smart constructor.
GetRepositoryResponse' | |
|
Instances
newGetRepositoryResponse Source #
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:repositoryMetadata:GetRepositoryResponse'
, getRepositoryResponse_repositoryMetadata
- Information about the repository.
$sel:httpStatus:GetRepositoryResponse'
, getRepositoryResponse_httpStatus
- The response's http status code.
Response Lenses
getRepositoryResponse_repositoryMetadata :: Lens' GetRepositoryResponse (Maybe RepositoryMetadata) Source #
Information about the repository.
getRepositoryResponse_httpStatus :: Lens' GetRepositoryResponse Int Source #
The response's http status code.