:doc:`Omics <../../omics>` / Client / put_s3_access_policy

********************
put_s3_access_policy
********************



.. py:method:: Omics.Client.put_s3_access_policy(**kwargs)

  

  Adds an access policy to the specified store.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/omics-2022-11-28/PutS3AccessPolicy>`_  


  **Request Syntax**
  ::

    response = client.put_s3_access_policy(
        s3AccessPointArn='string',
        s3AccessPolicy='string'
    )
    
  :type s3AccessPointArn: string
  :param s3AccessPointArn: **[REQUIRED]** 

    The S3 access point ARN where you want to put the access policy.

    

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

    The resource policy that controls S3 access to the store.

    

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

    
    ::

      {
          's3AccessPointArn': 'string',
          'storeId': 'string',
          'storeType': 'SEQUENCE_STORE'|'REFERENCE_STORE'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **s3AccessPointArn** *(string) --* 

        The S3 access point ARN that now has the access policy.

        
      

      - **storeId** *(string) --* 

        The Amazon Web Services-generated Sequence Store or Reference Store ID.

        
      

      - **storeType** *(string) --* 

        The type of store associated with the access point.

        
  
  **Exceptions**
  
  *   :py:class:`Omics.Client.exceptions.NotSupportedOperationException`

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

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

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

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

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

  
  *   :py:class:`Omics.Client.exceptions.RequestTimeoutException`

  