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

***********************
get_repository_endpoint
***********************



.. py:method:: CodeArtifact.Client.get_repository_endpoint(**kwargs)

  

  Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:

   

  
  * ``cargo``
   
  * ``generic``
   
  * ``maven``
   
  * ``npm``
   
  * ``nuget``
   
  * ``pypi``
   
  * ``ruby``
   
  * ``swift``
  

  

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


  **Request Syntax**
  ::

    response = client.get_repository_endpoint(
        domain='string',
        domainOwner='string',
        repository='string',
        format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo',
        endpointType='dualstack'|'ipv4'
    )
    
  :type domain: string
  :param domain: **[REQUIRED]** 

    The name of the domain that contains the repository.

    

  
  :type domainOwner: string
  :param domainOwner: 

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

    

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

    The name of the repository.

    

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

    Returns which endpoint of a repository to return. A repository has one endpoint for each package format.

    

  
  :type endpointType: string
  :param endpointType: 

    A string that specifies the type of endpoint.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'repositoryEndpoint': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **repositoryEndpoint** *(string) --* 

        A string that specifies the URL of the returned endpoint.

        
  
  **Exceptions**
  
  *   :py:class:`CodeArtifact.Client.exceptions.AccessDeniedException`

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

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

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

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

  