Skip to main content

external_connections

Creates, updates, deletes, gets or lists an external_connections resource.

Overview

Nameexternal_connections
TypeResource
Idaws.codeartifact.external_connections

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
associate_external_connectionupdatedomain, repository, external-connection, regiondomain-ownerAdds 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.
disassociate_external_connectionexecdomain, repository, external-connection, regiondomain-ownerRemoves an existing external connection from a repository.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domainstringThe name of the domain that contains the repository from which to remove the external repository.
external-connectionstringThe name of the external connection to be removed from the repository.
regionstringAWS region (default: us-east-1)
repositorystringThe name of the repository from which the external connection will be removed.
domain-ownerstringThe 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

UPDATE examples

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.

UPDATE aws.codeartifact.external_connections
SET
-- No updatable properties
WHERE
domain = '{{ domain }}' --required
AND repository = '{{ repository }}' --required
AND `external-connection` = '{{ external-connection }}' --required
AND region = '{{ region }}' --required
AND `domain-owner` = '{{ domain-owner}}'
RETURNING
repository;

Lifecycle Methods

Removes an existing external connection from a repository.

EXEC aws.codeartifact.external_connections.disassociate_external_connection
@domain='{{ domain }}' --required,
@repository='{{ repository }}' --required,
@external-connection='{{ external-connection }}' --required,
@region='{{ region }}' --required,
@domain-owner='{{ domain-owner }}'
;