libZSservicesZSamazonka-codeartifactZSamazonka-codeartifact
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeArtifact.AssociateExternalConnection

Description

Adds an existing external connection to a repository. One external connection is allowed per repository.

A repository can have one or more upstream repositories, or an external connection.

Synopsis

Creating a Request

data AssociateExternalConnection Source #

See: newAssociateExternalConnection smart constructor.

Constructors

AssociateExternalConnection' 

Fields

  • domainOwner :: Maybe Text

    The 12-digit account number of the AWS account that owns the domain. 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 to which the external connection is added.

  • externalConnection :: Text

    The name of the external connection to add to the repository. The following values are supported:

    • public:npmjs - for the npm public repository.
    • public:pypi - for the Python Package Index.
    • public:maven-central - for Maven Central.
    • public:maven-googleandroid - for the Google Android repository.
    • public:maven-gradleplugins - for the Gradle plugins repository.
    • public:maven-commonsware - for the CommonsWare Android repository.

Instances

Instances details
Eq AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

Read AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

Show AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

Generic AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

Associated Types

type Rep AssociateExternalConnection :: Type -> Type #

NFData AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

Hashable AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

ToJSON AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

AWSRequest AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

ToHeaders AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

ToPath AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

ToQuery AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

type Rep AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

type Rep AssociateExternalConnection = D1 ('MetaData "AssociateExternalConnection" "Amazonka.CodeArtifact.AssociateExternalConnection" "libZSservicesZSamazonka-codeartifactZSamazonka-codeartifact" 'False) (C1 ('MetaCons "AssociateExternalConnection'" '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 "externalConnection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AssociateExternalConnection Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

newAssociateExternalConnection Source #

Create a value of AssociateExternalConnection 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:AssociateExternalConnection', associateExternalConnection_domainOwner - The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.

$sel:domain:AssociateExternalConnection', associateExternalConnection_domain - The name of the domain that contains the repository.

$sel:repository:AssociateExternalConnection', associateExternalConnection_repository - The name of the repository to which the external connection is added.

$sel:externalConnection:AssociateExternalConnection', associateExternalConnection_externalConnection - The name of the external connection to add to the repository. The following values are supported:

  • public:npmjs - for the npm public repository.
  • public:pypi - for the Python Package Index.
  • public:maven-central - for Maven Central.
  • public:maven-googleandroid - for the Google Android repository.
  • public:maven-gradleplugins - for the Gradle plugins repository.
  • public:maven-commonsware - for the CommonsWare Android repository.

Request Lenses

associateExternalConnection_domainOwner :: Lens' AssociateExternalConnection (Maybe Text) Source #

The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.

associateExternalConnection_domain :: Lens' AssociateExternalConnection Text Source #

The name of the domain that contains the repository.

associateExternalConnection_repository :: Lens' AssociateExternalConnection Text Source #

The name of the repository to which the external connection is added.

associateExternalConnection_externalConnection :: Lens' AssociateExternalConnection Text Source #

The name of the external connection to add to the repository. The following values are supported:

  • public:npmjs - for the npm public repository.
  • public:pypi - for the Python Package Index.
  • public:maven-central - for Maven Central.
  • public:maven-googleandroid - for the Google Android repository.
  • public:maven-gradleplugins - for the Gradle plugins repository.
  • public:maven-commonsware - for the CommonsWare Android repository.

Destructuring the Response

data AssociateExternalConnectionResponse Source #

Constructors

AssociateExternalConnectionResponse' 

Fields

Instances

Instances details
Eq AssociateExternalConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

Read AssociateExternalConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

Show AssociateExternalConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

Generic AssociateExternalConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

NFData AssociateExternalConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

type Rep AssociateExternalConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.AssociateExternalConnection

type Rep AssociateExternalConnectionResponse = D1 ('MetaData "AssociateExternalConnectionResponse" "Amazonka.CodeArtifact.AssociateExternalConnection" "libZSservicesZSamazonka-codeartifactZSamazonka-codeartifact" 'False) (C1 ('MetaCons "AssociateExternalConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RepositoryDescription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssociateExternalConnectionResponse Source #

Create a value of AssociateExternalConnectionResponse 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:repository:AssociateExternalConnection', associateExternalConnectionResponse_repository - Information about the connected repository after processing the request.

$sel:httpStatus:AssociateExternalConnectionResponse', associateExternalConnectionResponse_httpStatus - The response's http status code.

Response Lenses

associateExternalConnectionResponse_repository :: Lens' AssociateExternalConnectionResponse (Maybe RepositoryDescription) Source #

Information about the connected repository after processing the request.