amazonka-codeartifact-2.0: Amazon CodeArtifact SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data GetRepositoryEndpoint Source #

See: newGetRepositoryEndpoint smart constructor.

Constructors

GetRepositoryEndpoint' 

Fields

  • domainOwner :: Maybe Text

    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.

  • domain :: Text

    The name of the domain that contains the repository.

  • repository :: Text

    The name of the repository.

  • format :: PackageFormat

    Returns which endpoint of a repository to return. A repository has one endpoint for each package format.

Instances

Instances details
ToHeaders GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

ToPath GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

ToQuery GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

AWSRequest GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

Associated Types

type AWSResponse GetRepositoryEndpoint #

Generic GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

Associated Types

type Rep GetRepositoryEndpoint :: Type -> Type #

Read GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

Show GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

NFData GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

Methods

rnf :: GetRepositoryEndpoint -> () #

Eq GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

Hashable GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

type AWSResponse GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

type Rep GetRepositoryEndpoint Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

type Rep GetRepositoryEndpoint = D1 ('MetaData "GetRepositoryEndpoint" "Amazonka.CodeArtifact.GetRepositoryEndpoint" "amazonka-codeartifact-2.0-CskMABZQLQJDgej73fXQxp" 'False) (C1 ('MetaCons "GetRepositoryEndpoint'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "domainOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "domain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PackageFormat))))

newGetRepositoryEndpoint Source #

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_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

Instances details
Generic GetRepositoryEndpointResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

Associated Types

type Rep GetRepositoryEndpointResponse :: Type -> Type #

Read GetRepositoryEndpointResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

Show GetRepositoryEndpointResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

NFData GetRepositoryEndpointResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

Eq GetRepositoryEndpointResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

type Rep GetRepositoryEndpointResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.GetRepositoryEndpoint

type Rep GetRepositoryEndpointResponse = D1 ('MetaData "GetRepositoryEndpointResponse" "Amazonka.CodeArtifact.GetRepositoryEndpoint" "amazonka-codeartifact-2.0-CskMABZQLQJDgej73fXQxp" 'False) (C1 ('MetaCons "GetRepositoryEndpointResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.