:doc:`VPCLattice <../../vpc-lattice>` / Client / get_service

***********
get_service
***********



.. py:method:: VPCLattice.Client.get_service(**kwargs)

  

  Retrieves information about the specified service.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/vpc-lattice-2022-11-30/GetService>`_  


  **Request Syntax**
  ::

    response = client.get_service(
        serviceIdentifier='string'
    )
    
  :type serviceIdentifier: string
  :param serviceIdentifier: **[REQUIRED]** 

    The ID or ARN of the service.

    

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

    
    ::

      {
          'id': 'string',
          'name': 'string',
          'arn': 'string',
          'createdAt': datetime(2015, 1, 1),
          'lastUpdatedAt': datetime(2015, 1, 1),
          'dnsEntry': {
              'domainName': 'string',
              'hostedZoneId': 'string'
          },
          'customDomainName': 'string',
          'certificateArn': 'string',
          'status': 'ACTIVE'|'CREATE_IN_PROGRESS'|'DELETE_IN_PROGRESS'|'CREATE_FAILED'|'DELETE_FAILED',
          'authType': 'NONE'|'AWS_IAM',
          'failureCode': 'string',
          'failureMessage': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The ID of the service.

        
      

      - **name** *(string) --* 

        The name of the service.

        
      

      - **arn** *(string) --* 

        The Amazon Resource Name (ARN) of the service.

        
      

      - **createdAt** *(datetime) --* 

        The date and time that the service was created, in ISO-8601 format.

        
      

      - **lastUpdatedAt** *(datetime) --* 

        The date and time that the service was last updated, in ISO-8601 format.

        
      

      - **dnsEntry** *(dict) --* 

        The DNS name of the service.

        
        

        - **domainName** *(string) --* 

          The domain name of the service.

          
        

        - **hostedZoneId** *(string) --* 

          The ID of the hosted zone.

          
    
      

      - **customDomainName** *(string) --* 

        The custom domain name of the service.

        
      

      - **certificateArn** *(string) --* 

        The Amazon Resource Name (ARN) of the certificate.

        
      

      - **status** *(string) --* 

        The status of the service.

        
      

      - **authType** *(string) --* 

        The type of IAM policy.

        
      

      - **failureCode** *(string) --* 

        The failure code.

        
      

      - **failureMessage** *(string) --* 

        The failure message.

        
  
  **Exceptions**
  
  *   :py:class:`VPCLattice.Client.exceptions.ValidationException`

  
  *   :py:class:`VPCLattice.Client.exceptions.AccessDeniedException`

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

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

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

  