Skip to main content

allowed_repositories_for_groups

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

Overview

Nameallowed_repositories_for_groups
TypeResource
Idaws.codeartifact.allowed_repositories_for_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
allowed_repositorystringThe list of allowed repositories for the package group and origin configuration restriction type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_allowed_repositories_for_groupselectdomain, package-group, originRestrictionType, regiondomain-owner, max-results, next-tokenLists the repositories in the added repositories list of the specified restriction type for a package group. For more information about restriction types and added repository lists, see Package group origin controls in the CodeArtifact User Guide.

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 package group from which to list allowed repositories.
originRestrictionTypestringThe origin configuration restriction type of which to list allowed repositories.
package-groupstringThe pattern of the package group from which to list allowed repositories.
regionstringAWS region (default: us-east-1)
domain-ownerstringThe 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
max-resultsintegerThe maximum number of results to return per page.
next-tokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Lists the repositories in the added repositories list of the specified restriction type for a package group. For more information about restriction types and added repository lists, see Package group origin controls in the CodeArtifact User Guide.

SELECT
allowed_repository
FROM aws.codeartifact.allowed_repositories_for_groups
WHERE domain = '{{ domain }}' -- required
AND `package-group` = '{{ package-group }}' -- required
AND originRestrictionType = '{{ originRestrictionType }}' -- required
AND region = '{{ region }}' -- required
AND `domain-owner` = '{{ domain-owner }}'
AND `max-results` = '{{ max-results }}'
AND `next-token` = '{{ next-token }}'
;