def _control_response_put(self, request, body, query, headers):
    action = self.path.split('?')[0].split('/')[(- 1)]
    self._set_action('CONTROL', 'PUT', action)
    self._authenticate_and_authorize_s3_action()
    response_headers = {}
    if ('publicAccessBlock' in action):
        pab_config = self._parse_pab_config(body)
        self.backend.put_account_public_access_block(headers['x-amz-account-id'], pab_config['PublicAccessBlockConfiguration'])
        return (200, response_headers, '')
    raise NotImplementedError('Method {0} has not been implemented in the S3 backend yet'.format(action))
def _control_response_put(self, request, body, query, headers):
    action = self.path.split('?')[0].split('/')[(- 1)]
    self._set_action('CONTROL', 'PUT', action)
    self._authenticate_and_authorize_s3_action()
    response_headers = {}
    if ('publicAccessBlock' in action):
        pab_config = self._parse_pab_config(body)
        self.backend.put_account_public_access_block(headers['x-amz-account-id'], pab_config['PublicAccessBlockConfiguration'])
        return (200, response_headers, )
    raise NotImplementedError('Method {0} has not been implemented in the S3 backend yet'.format(action))