CmdID / aws / aws codeartifact
aws codeartifact disassociate-external-connection
Removes an existing external connection from a repository. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To remove an external connection from a repository
The following disassociate-external-connection example removes an external connection to npmjs.com from a repository named test-repo.
aws codeartifact disassociate-external-connection --repository test-repo --domain test-domain --external-connection public:npmjsIdentify--repositoryThe name of the repository from which the external connection will be removed.--domainThe name of the domain that contains the repository from which to remove the external repository.--external-connectionThe name of the external connection to be removed from the repository.Its output
{
"repository": {
"name": "test-repo",
"administratorAccount": "123456789012",
"domainName": "test-domain",
"domainOwner": "123456789012",
"arn": "arn:aws:codeartifact:us-west-2:123456789012:repository/test-domain/test-repo",
"upstreams": [],
"externalConnections": []
}
}For more information, see Remove an external connection in the AWS CodeArtifact User Guide.
Options
--domain-ownerThe 12-digit account number of the Amazon Web Services account that owns the domain.--domainThe name of the domain that contains the repository from which to remove the external repository.--external-connectionThe name of the external connection to be removed from the repository.--repositoryThe name of the repository from which the external connection will be removed.