Skip to main content

repository

Gets an individual repository resource

Overview

Namerepository
TypeResource
Descriptionrepository
Idawscc.codeartifact.repository

Fields

NameDatatypeDescription
repository_namestringThe name of the repository.
namestringThe name of the repository. This is used for GetAtt
domain_namestringThe name of the domain that contains the repository.
domain_ownerstringThe 12-digit account ID of the AWS account that owns the domain.
descriptionstringA text description of the repository.
arnstringThe ARN of the repository.
external_connectionsarrayA list of external connections associated with the repository.
upstreamsarrayA list of upstream repositories associated with the repository.
permissions_policy_documentobjectThe access control resource policy on the provided repository.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
repository_name,
name,
domain_name,
domain_owner,
description,
arn,
external_connections,
upstreams,
permissions_policy_document,
tags
FROM awscc.codeartifact.repository
WHERE data__Identifier = '<Arn>';

Permissions

To operate on the repository resource, the following permissions are required:

Read

codeartifact:DescribeRepository,
codeartifact:GetRepositoryPermissionsPolicy,
codeartifact:ListTagsForResource

Update

codeartifact:PutRepositoryPermissionsPolicy,
codeartifact:DeleteRepositoryPermissionsPolicy,
codeartifact:AssociateExternalConnection,
codeartifact:DisassociateExternalConnection,
codeartifact:UpdateRepository,
codeartifact:DescribeRepository,
codeartifact:AssociateWithDownstreamRepository,
codeartifact:TagResource,
codeartifact:UntagResource

Delete

codeartifact:DeleteRepository,
codeartifact:DescribeRepository