:doc:`CloudDirectory <../../clouddirectory>` / Client / get_facet

*********
get_facet
*********



.. py:method:: CloudDirectory.Client.get_facet(**kwargs)

  

  Gets details of the  Facet, such as facet name, attributes,  Rules, or ``ObjectType``. You can call this on all kinds of schema facets -- published, development, or applied.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetFacet>`_  


  **Request Syntax**
  ::

    response = client.get_facet(
        SchemaArn='string',
        Name='string'
    )
    
  :type SchemaArn: string
  :param SchemaArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) that is associated with the  Facet. For more information, see  arns.

    

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

    The name of the facet to retrieve.

    

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

    
    ::

      {
          'Facet': {
              'Name': 'string',
              'ObjectType': 'NODE'|'LEAF_NODE'|'POLICY'|'INDEX',
              'FacetStyle': 'STATIC'|'DYNAMIC'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Facet** *(dict) --* 

        The  Facet structure that is associated with the facet.

        
        

        - **Name** *(string) --* 

          The name of the  Facet.

          
        

        - **ObjectType** *(string) --* 

          The object type that is associated with the facet. See  CreateFacetRequest$ObjectType for more details.

          
        

        - **FacetStyle** *(string) --* 

          There are two different styles that you can define on any given facet, ``Static`` and ``Dynamic``. For static facets, all attributes must be defined in the schema. For dynamic facets, attributes can be defined during data plane operations.

          
    
  
  **Exceptions**
  
  *   :py:class:`CloudDirectory.Client.exceptions.InternalServiceException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.InvalidArnException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.RetryableConflictException`

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

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

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

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

  
  *   :py:class:`CloudDirectory.Client.exceptions.FacetNotFoundException`

  