| 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.GetRepositoryEndpoint
Description
Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:
maven
npm
nuget
pypi
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.
Constructors
| GetRepositoryEndpoint' | |
Fields
| |
Instances
newGetRepositoryEndpoint Source #
Arguments
| :: 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:
GetRepositoryEndpoint, getRepositoryEndpoint_domainOwner - The 12-digit account number of the Amazon Web Services 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.
GetRepositoryEndpoint, getRepositoryEndpoint_format - Returns which endpoint of a repository to return. A repository has one
endpoint for each package format.
Request Lenses
getRepositoryEndpoint_domainOwner :: Lens' GetRepositoryEndpoint (Maybe Text) Source #
The 12-digit account number of the Amazon Web Services 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.
Destructuring the Response
data GetRepositoryEndpointResponse Source #
See: newGetRepositoryEndpointResponse smart constructor.
Constructors
| GetRepositoryEndpointResponse' | |
Fields
| |
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.