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 the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:
npm
pypi
maven
Synopsis
- data GetRepositoryEndpoint = GetRepositoryEndpoint' {
- domainOwner :: Maybe Text
- domain :: Text
- repository :: Text
- format :: PackageFormat
- newGetRepositoryEndpoint :: Text -> Text -> PackageFormat -> GetRepositoryEndpoint
- getRepositoryEndpoint_domainOwner :: Lens' GetRepositoryEndpoint (Maybe Text)
- getRepositoryEndpoint_domain :: Lens' GetRepositoryEndpoint Text
- getRepositoryEndpoint_repository :: Lens' GetRepositoryEndpoint Text
- getRepositoryEndpoint_format :: Lens' GetRepositoryEndpoint PackageFormat
- data GetRepositoryEndpointResponse = GetRepositoryEndpointResponse' {}
- newGetRepositoryEndpointResponse :: Int -> GetRepositoryEndpointResponse
- getRepositoryEndpointResponse_repositoryEndpoint :: Lens' GetRepositoryEndpointResponse (Maybe Text)
- getRepositoryEndpointResponse_httpStatus :: Lens' GetRepositoryEndpointResponse Int
Creating a Request
data GetRepositoryEndpoint Source #
See: newGetRepositoryEndpoint
smart constructor.
GetRepositoryEndpoint' | |
|
Instances
newGetRepositoryEndpoint Source #
:: Text | |
-> Text | |
-> PackageFormat | |
-> GetRepositoryEndpoint |
Create a value of GetRepositoryEndpoint
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:domainOwner:GetRepositoryEndpoint'
, getRepositoryEndpoint_domainOwner
- The 12-digit account number of the AWS account that owns the domain that
contains the repository. It does not include dashes or spaces.
$sel:domain:GetRepositoryEndpoint'
, getRepositoryEndpoint_domain
- The name of the domain that contains the repository.
$sel:repository:GetRepositoryEndpoint'
, getRepositoryEndpoint_repository
- The name of the repository.
$sel:format:GetRepositoryEndpoint'
, getRepositoryEndpoint_format
- Returns which endpoint of a repository to return. A repository has one
endpoint for each package format:
npm
pypi
maven
Request Lenses
getRepositoryEndpoint_domainOwner :: Lens' GetRepositoryEndpoint (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
getRepositoryEndpoint_domain :: Lens' GetRepositoryEndpoint Text Source #
The name of the domain that contains the repository.
getRepositoryEndpoint_repository :: Lens' GetRepositoryEndpoint Text Source #
The name of the repository.
getRepositoryEndpoint_format :: Lens' GetRepositoryEndpoint PackageFormat Source #
Returns which endpoint of a repository to return. A repository has one endpoint for each package format:
npm
pypi
maven
Destructuring the Response
data GetRepositoryEndpointResponse Source #
See: newGetRepositoryEndpointResponse
smart constructor.
GetRepositoryEndpointResponse' | |
|
Instances
newGetRepositoryEndpointResponse Source #
Create a value of GetRepositoryEndpointResponse
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:repositoryEndpoint:GetRepositoryEndpointResponse'
, getRepositoryEndpointResponse_repositoryEndpoint
- A string that specifies the URL of the returned endpoint.
$sel:httpStatus:GetRepositoryEndpointResponse'
, getRepositoryEndpointResponse_httpStatus
- The response's http status code.
Response Lenses
getRepositoryEndpointResponse_repositoryEndpoint :: Lens' GetRepositoryEndpointResponse (Maybe Text) Source #
A string that specifies the URL of the returned endpoint.
getRepositoryEndpointResponse_httpStatus :: Lens' GetRepositoryEndpointResponse Int Source #
The response's http status code.