allowed_repositories_for_groups
Creates, updates, deletes, gets or lists an allowed_repositories_for_groups resource.
Overview
| Name | allowed_repositories_for_groups |
| Type | Resource |
| Id | aws.codeartifact.allowed_repositories_for_groups |
Fields
The following fields are returned by SELECT queries:
- list_allowed_repositories_for_group
| Name | Datatype | Description |
|---|---|---|
allowed_repository | string | The list of allowed repositories for the package group and origin configuration restriction type. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_allowed_repositories_for_group | select | domain, package-group, originRestrictionType, region | domain-owner, max-results, next-token | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
domain | string | The name of the domain that contains the package group from which to list allowed repositories. |
originRestrictionType | string | The origin configuration restriction type of which to list allowed repositories. |
package-group | string | The pattern of the package group from which to list allowed repositories. |
region | string | AWS region (default: us-east-1) |
domain-owner | string | The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. |
max-results | integer | The maximum number of results to return per page. |
next-token | string | The 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
- list_allowed_repositories_for_group
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 }}'
;