CodeArtifact / Client / list_allowed_repositories_for_group

list_allowed_repositories_for_group#

CodeArtifact.Client.list_allowed_repositories_for_group(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.list_allowed_repositories_for_group(
    domain='string',
    domainOwner='string',
    packageGroup='string',
    originRestrictionType='EXTERNAL_UPSTREAM'|'INTERNAL_UPSTREAM'|'PUBLISH',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • domain (string) –

    [REQUIRED]

    The name of the domain that contains the package group from which to list allowed repositories.

  • domainOwner (string) – The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

  • packageGroup (string) –

    [REQUIRED]

    The pattern of the package group from which to list allowed repositories.

  • originRestrictionType (string) –

    [REQUIRED]

    The origin configuration restriction type of which to list allowed repositories.

  • maxResults (integer) – The maximum number of results to return per page.

  • nextToken (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.

Return type:

dict

Returns:

Response Syntax

{
    'allowedRepositories': [
        'string',
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • allowedRepositories (list) –

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

      • (string) –

    • nextToken (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.

Exceptions

  • CodeArtifact.Client.exceptions.AccessDeniedException

  • CodeArtifact.Client.exceptions.InternalServerException

  • CodeArtifact.Client.exceptions.ServiceQuotaExceededException

  • CodeArtifact.Client.exceptions.ThrottlingException

  • CodeArtifact.Client.exceptions.ValidationException

  • CodeArtifact.Client.exceptions.ResourceNotFoundException