def _control_response_get(self, request, query, headers):
    action = self.path.split('?')[0].split('/')[(- 1)]
    self._set_action('CONTROL', 'GET', action)
    self._authenticate_and_authorize_s3_action()
    response_headers = {}
    if ('publicAccessBlock' in action):
        public_block_config = self.backend.get_account_public_access_block(headers['x-amz-account-id'])
        template = self.response_template(S3_PUBLIC_ACCESS_BLOCK_CONFIGURATION)
        return (200, response_headers, template.render(public_block_config=public_block_config))
    raise NotImplementedError('Method {0} has not been implemented in the S3 backend yet'.format(action))
def _control_response_get(self, request, query, headers):
    action = self.path.split('?')[0].split('/')[(- 1)]
    self._set_action('CONTROL', 'GET', action)
    self._authenticate_and_authorize_s3_action()
    response_headers = {}
    if ('publicAccessBlock' in action):
        public_block_config = self.backend.get_account_public_access_block(headers['x-amz-account-id'])
        template = self.response_template(S3_PUBLIC_ACCESS_BLOCK_CONFIGURATION)
        return (200, response_headers, template.render(public_block_config=public_block_config))
    raise NotImplementedError('Method {0} has not been implemented in the S3 backend yet'.format(action))