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 |
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
- data AssociateExternalConnection = AssociateExternalConnection' {
- domainOwner :: Maybe Text
- domain :: Text
- repository :: Text
- externalConnection :: Text
- newAssociateExternalConnection :: Text -> Text -> Text -> AssociateExternalConnection
- associateExternalConnection_domainOwner :: Lens' AssociateExternalConnection (Maybe Text)
- associateExternalConnection_domain :: Lens' AssociateExternalConnection Text
- associateExternalConnection_repository :: Lens' AssociateExternalConnection Text
- associateExternalConnection_externalConnection :: Lens' AssociateExternalConnection Text
- data AssociateExternalConnectionResponse = AssociateExternalConnectionResponse' {}
- newAssociateExternalConnectionResponse :: Int -> AssociateExternalConnectionResponse
- associateExternalConnectionResponse_repository :: Lens' AssociateExternalConnectionResponse (Maybe RepositoryDescription)
- associateExternalConnectionResponse_httpStatus :: Lens' AssociateExternalConnectionResponse Int
Creating a Request
data AssociateExternalConnection Source #
See: newAssociateExternalConnection
smart constructor.
AssociateExternalConnection' | |
|
Instances
newAssociateExternalConnection Source #
:: Text | |
-> Text | |
-> Text | |
-> AssociateExternalConnection |
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 #
See: newAssociateExternalConnectionResponse
smart constructor.
AssociateExternalConnectionResponse' | |
|
Instances
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.
associateExternalConnectionResponse_httpStatus :: Lens' AssociateExternalConnectionResponse Int Source #
The response's http status code.