:doc:`S3Control <../../s3control>` / Client / get_access_point_policy_status

******************************
get_access_point_policy_status
******************************



.. py:method:: S3Control.Client.get_access_point_policy_status(**kwargs)

  

  .. note::

    

    This operation is not supported by directory buckets.

    

   

  Indicates whether the specified access point currently has a policy that allows public access. For more information about public access through access points, see `Managing Data Access with Amazon S3 access points <https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html>`__ in the *Amazon S3 User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetAccessPointPolicyStatus>`_  


  **Request Syntax**
  ::

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

    The account ID for the account that owns the specified access point.

    

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

    The name of the access point whose policy status you want to retrieve.

    

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

    
    ::

      {
          'PolicyStatus': {
              'IsPublic': True|False
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PolicyStatus** *(dict) --* 

        Indicates the current policy status of the specified access point.

        
        

        - **IsPublic** *(boolean) --* 
    
  