:doc:`CodeArtifact <../../codeartifact>` / Client / list_allowed_repositories_for_group

***********************************
list_allowed_repositories_for_group
***********************************



.. py:method:: 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 <https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-origin-controls.html>`__ in the *CodeArtifact User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListAllowedRepositoriesForGroup>`_  


  **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'
    )
    
  :type domain: string
  :param domain: **[REQUIRED]** 

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

    

  
  :type domainOwner: string
  :param domainOwner: 

    The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

    

  
  :type packageGroup: string
  :param packageGroup: **[REQUIRED]** 

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

    

  
  :type originRestrictionType: string
  :param originRestrictionType: **[REQUIRED]** 

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

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return per page.

    

  
  :type nextToken: string
  :param nextToken: 

    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.

    

  
  
  :rtype: 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**
  
  *   :py:class:`CodeArtifact.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`CodeArtifact.Client.exceptions.InternalServerException`

  
  *   :py:class:`CodeArtifact.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`CodeArtifact.Client.exceptions.ThrottlingException`

  
  *   :py:class:`CodeArtifact.Client.exceptions.ValidationException`

  
  *   :py:class:`CodeArtifact.Client.exceptions.ResourceNotFoundException`

  