:doc:`ElasticsearchService <../../es>` / Client / authorize_vpc_endpoint_access

*****************************
authorize_vpc_endpoint_access
*****************************



.. py:method:: ElasticsearchService.Client.authorize_vpc_endpoint_access(**kwargs)

  

  Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AuthorizeVpcEndpointAccess>`_  


  **Request Syntax**
  ::

    response = client.authorize_vpc_endpoint_access(
        DomainName='string',
        Account='string'
    )
    
  :type DomainName: string
  :param DomainName: **[REQUIRED]** 

    The name of the OpenSearch Service domain to provide access to.

    

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

    The account ID to grant access to.

    

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

    
    ::

      {
          'AuthorizedPrincipal': {
              'PrincipalType': 'AWS_ACCOUNT'|'AWS_SERVICE',
              'Principal': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Container for response parameters to the ``AuthorizeVpcEndpointAccess`` operation. Contains the account ID and the type of the account being authorized to access the VPC endpoint.

      
      

      - **AuthorizedPrincipal** *(dict) --* 

        Information about the account or service that was provided access to the domain.

        
        

        - **PrincipalType** *(string) --* 

          The type of principal.

          
        

        - **Principal** *(string) --* 

          The IAM principal that is allowed access to the domain.

          
    
  
  **Exceptions**
  
  *   :py:class:`ElasticsearchService.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.DisabledOperationException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.LimitExceededException`

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

  
  *   :py:class:`ElasticsearchService.Client.exceptions.InternalException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.BaseException`

  